A vulnerability in the HuggingFace Transformers library, specifically in the Trainer class, allows for arbitrary code execution. The _load_rng_state() method in src/transformers/trainer.py at line 3059 calls torch.load() without the weights_only=True parameter. This issue affects all versions of the library supporting torch>=2.2 when used with PyTorch versions below 2.6, as the safe_globals() context manager provides no protection in these versions. An attacker can exploit this vulnerability by supplying a malicious checkpoint file, such as rng_state.pth, which can execute arbitrary code when loaded. The issue is resolved in version v5.0.0rc3.
CVE-2026-1839
This high-severity CVE scores 7.8 under NVD CVSS v3. EPSS exploit probability: 0.3%, top 72% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 7.8
- EG Score
- 7.8HIGHmedium confidence
- EG Risk
- 51EG Risk 51/100
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity78% × 45%Exploitation40% × 40%Automatability0% × 15% - EPSS PROB
- 0.4%
- EPSS %ILE
- 30th
- KEV
- Not listed
Published
April 7, 2026
Last Modified
April 28, 2026
Advisory Details (2)
Auto-updated Jun 11, 2026huntr - The world's first bug bounty platform for AI/ML
https://huntr.com/bounties/3c77bb97-e493-493d-9a88-c57f5c536485commit 03c8082ba459 (huggingface/transformers)
Fix landed in huggingface/transformers commit 03c8082ba459 — awaiting tagged release
https://github.com/huggingface/transformers/commit/03c8082ba4594c9b8d6fe190ca9bed0e5f8ca396Affected Packages
(1 across 1 ecosystem)
PyPI(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| transformers | 0.1 ... 5.0.0rc3 (209 versions) |
| — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 6× in last 7d / 23× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 186 total refreshes for this CVE.
- 2026-10-09 20:06 UTCEPSS rescore
- 2026-10-08 17:11 UTCEPSS rescore
- 2026-10-07 23:47 UTCEPSS rescore
- 2026-10-06 15:17 UTCEPSS rescore
- 2026-10-05 17:42 UTCEPSS rescore
- 2026-10-04 23:21 UTCEPSS rescore
- 2026-10-01 19:49 UTCEPSS rescore
- 2026-09-30 15:03 UTCEPSS rescore
- 2026-09-29 15:21 UTCEPSS rescore
- 2026-09-28 13:51 UTCEPSS rescore
- 2026-09-27 13:47 UTCEPSS rescore
- 2026-09-26 15:58 UTCEPSS rescore
- 2026-09-26 00:26 UTCEPSS rescore
- 2026-09-24 14:03 UTCEPSS rescore
- 2026-09-21 12:19 UTCOSV refresh
- 2026-09-20 20:15 UTCEPSS rescore
- 2026-09-18 19:27 UTCEPSS rescore
- 2026-09-16 14:07 UTCEPSS rescore
- 2026-09-16 05:14 UTCEPSS rescore
- 2026-09-13 16:46 UTCEPSS rescore
- 2026-09-12 15:00 UTCEPSS rescore
- 2026-09-11 14:52 UTCEPSS rescore
- 2026-09-11 09:36 UTCEPSS rescore
- 2026-09-10 09:34 UTCEPSS rescore
- 2026-09-08 22:00 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-09-07 16:01 UTCEPSS rescore
- 2026-09-06 13:47 UTCEPSS rescore
- 2026-09-04 05:06 UTCEPSS rescore
- 2026-09-02 14:11 UTCEPSS rescore
- 2026-09-02 09:44 UTCOSV refresh
- 2026-09-01 13:53 UTCEPSS rescore
- 2026-09-01 04:39 UTCEPSS rescore
- 2026-08-30 19:17 UTCEPSS rescore
- 2026-08-30 01:22 UTCEPSS rescore
- 2026-08-28 21:41 UTCEPSS rescore
- 2026-08-27 14:25 UTCEPSS rescore
- 2026-08-26 14:46 UTCEPSS rescore
- 2026-08-25 13:48 UTCEPSS rescore
- 2026-08-23 00:19 UTCEPSS rescore
- 2026-08-21 23:49 UTCEPSS rescore
- 2026-08-20 22:55 UTCEPSS rescore
- 2026-08-19 17:03 UTCEPSS rescore
- 2026-08-18 13:48 UTCEPSS rescore
- 2026-08-17 13:47 UTCEPSS rescore
- 2026-08-16 14:56 UTCEPSS rescore
- 2026-08-16 08:20 UTCEG score recompute
- 2026-08-16 02:14 UTCEPSS rescore
- 2026-08-15 01:30 UTCEPSS rescore
- 2026-08-14 05:29 UTCEG score recompute
- 2026-08-13 22:00 UTCEPSS rescore
- 2026-08-12 19:43 UTCEG score recompute
- 2026-08-12 13:50 UTCEPSS rescore
- 2026-08-11 19:54 UTCEG score recompute
- 2026-08-11 13:42 UTCEPSS rescore
- 2026-08-11 03:16 UTCEG score recompute
- 2026-08-11 00:00 UTCEPSS rescore
- 2026-08-09 15:58 UTCEG score recompute
- 2026-08-09 13:46 UTCEPSS rescore
- 2026-08-09 04:59 UTCEG score recompute
- 2026-08-08 16:37 UTCEPSS rescore
- 2026-08-08 02:01 UTCEG score recompute
- 2026-08-07 15:01 UTCEG score recompute
- 2026-08-06 13:46 UTCEPSS rescore
- 2026-08-06 00:03 UTCEG score recompute
- 2026-08-05 19:17 UTCEPSS rescore
- 2026-08-04 15:10 UTCEPSS rescore
- 2026-08-04 10:38 UTCEPSS rescore
- 2026-08-03 22:25 UTCEG score recompute
- 2026-08-03 10:35 UTCEPSS rescore
- 2026-08-02 14:20 UTCEG score recompute
- 2026-08-02 02:26 UTCEPSS rescore
- 2026-08-01 04:15 UTCEPSS rescore
- 2026-07-30 01:30 UTCEPSS rescore
- 2026-07-27 14:13 UTCEPSS rescore
- 2026-07-26 14:54 UTCEPSS rescore
- 2026-07-26 14:54 UTCEPSS rescore
- 2026-07-25 14:17 UTCEPSS rescore
- 2026-07-25 14:17 UTCEPSS rescore
- 2026-07-24 14:17 UTCEPSS rescore
- 2026-07-23 14:18 UTCEPSS rescore
- 2026-07-23 14:18 UTCEPSS rescore
- 2026-07-23 03:06 UTCEG score recompute
- 2026-07-22 14:08 UTCEPSS rescore
- 2026-07-20 17:08 UTCEPSS rescore
- 2026-07-19 14:31 UTCEPSS rescore
- 2026-07-19 14:31 UTCEPSS rescore
- 2026-07-19 02:29 UTCEPSS rescore
- 2026-07-19 02:28 UTCEPSS rescore
- 2026-07-18 10:04 UTCEPSS rescore
- 2026-07-18 10:04 UTCEPSS rescore
- 2026-07-17 02:24 UTCOSV refresh
- 2026-07-16 17:03 UTCEPSS rescore
- 2026-07-16 17:03 UTCEPSS rescore
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 02:00 UTCEPSS rescore
- 2026-07-15 02:00 UTCEPSS rescore
- 2026-07-13 22:30 UTCEPSS rescore
- 2026-07-13 06:13 UTCEPSS rescore
- 2026-07-13 06:13 UTCEPSS rescore
Related CVEs(same product + same CWE)
Same product
10 shownPyPI:transformers
Frequently asked(5)
What is CVE-2026-1839?
When was CVE-2026-1839 disclosed?
Is CVE-2026-1839 actively exploited?
What is the CVSS score of CVE-2026-1839?
How do I remediate CVE-2026-1839?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-1839
Is Your Infrastructure Affected by CVE-2026-1839?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.