CVE Explorer
CVE-2026-1839
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 vul
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"huggingface/transformers","vendor":"huggingface","versions":[{"lessThan":"v5.0.0rc3","status":"affected","version":"unspecified","versionType":"custom"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:8efb79b228593558fe3ac7011ad770cd76c908f8feb66b28d6ef4932e38a829c · sha256:7f904cde9c9e815f… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.0/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:H","version":"3.0"},"metric_type":"cvssV3_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:8efb79b228593558fe3ac7011ad770cd76c908f8feb66b28d6ef4932e38a829c · sha256:7f904cde9c9e815f… · /containers/cna/metrics/0/cvssV3_0
CWE assertions
1 source assertion{"cweId":"CWE-502","description":"CWE-502 Deserialization of Untrusted Data","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:8efb79b228593558fe3ac7011ad770cd76c908f8feb66b28d6ef4932e38a829c · sha256:7f904cde9c9e815f… · /containers/cna/problemTypes/0/descriptions/0
Source references
3 source assertions{"url":"https://github.com/huggingface/transformers/commit/03c8082ba4594c9b8d6fe190ca9bed0e5f8ca396"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:8efb79b228593558fe3ac7011ad770cd76c908f8feb66b28d6ef4932e38a829c · sha256:7f904cde9c9e815f… · /containers/cna/references/1
{"tags":["exploit"],"url":"https://huntr.com/bounties/3c77bb97-e493-493d-9a88-c57f5c536485"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:8efb79b228593558fe3ac7011ad770cd76c908f8feb66b28d6ef4932e38a829c · sha256:7f904cde9c9e815f… · /containers/adp/0/references/0
{"url":"https://huntr.com/bounties/3c77bb97-e493-493d-9a88-c57f5c536485"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:8efb79b228593558fe3ac7011ad770cd76c908f8feb66b28d6ef4932e38a829c · sha256:7f904cde9c9e815f… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.