Patchwire CVEs, their patch status, and feeds to follow them

CVE-2026-1839

Fixed in a distro release EPSS <1%CVSS 6.5

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.

Published 2026-04-07 · CVE record · OSV

Products: huggingface/transformers

Fixed upstream

EcosystemPackageFixed in
PyPItransformers5.0.0rc3
PyPItransformers5.0.0

Distro releases

ReleasePackageFixed in
Chainguardlmcache-cuda-12.80.4.4-r0
Chainguardnemo2.7.3-r1
Chainguardpy3.10-transformers-4.510
Chainguardpy3.10-transformers-4.564.56.2-r2
Chainguardpy3.11-transformers-4.510
Chainguardpy3.11-transformers-4.564.56.2-r2
Chainguardpy3.12-transformers-4.510
Chainguardpy3.12-transformers-4.564.56.2-r2
Chainguardpy3.13-transformers-4.510
Chainguardpy3.13-transformers-4.564.56.2-r2
Chainguardtext-generation-inference3.3.7-r18
Chainguardtritonserver-backend-vllm-cuda-12.925.9.0_git20260617-r2
Chainguardtritonserver-backend-vllm-cuda-13.025.11-r7
Chainguardvllm-openai-cuda-12.90.19.1-r0