Deserialization of Untrusted Data in transformers - CVE-2026-1839

 

Deserialization of Untrusted Data in transformers - CVE-2026-1839

Published: July 28, 2026


Vulnerability identifier: #VU139816
CSH Severity: Low
CVSS v4: 7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-1839
CWE-ID: CWE-502
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to execute arbitrary code on the target system.

The vulnerability exists due to the `_load_rng_state()` method in `src/transformers/trainer.py` at line 3059 calls `torch.load()` without the `weights_only=True` parameter. A local user can pass a malicious checkpoint file, such as `rng_state.pth` to the application and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

transformers
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data

How to mitigate CVE-2026-1839

Install updates from vendor's website.

transformers - update to 5.0.0
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data - update to 5.4

External References

Related Security Bulletins