What is CVE-2026-137998?
CVE-2026-137998 is a high-severity unsafe deserialization vulnerability in unitaryai Detoxify, published on 27 Nov 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
Detoxify 0.5.3 through 0.5.4 contains an insecure deserialization vulnerability in load_checkpoint that allows attackers to execute code by supplying a crafted checkpoint file. Attackers can embed a pickle __reduce__ gadget in a .ckpt file loaded via torch.load with weights_only=False to run code with the user's privileges.
Weakness: CWE-502
How severe is CVE-2026-137998?
CVE-2026-137998 scores 8.5 out of 10 under CVSS 4.0, which is high severity. It was scored by VulnCheck.
- Attack vector
- Local
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- None
- User interaction
- Passive
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Which versions are affected by CVE-2026-137998?
1 open source package ship an affected version, including detoxify.
An affected version is only exploitable if your software calls load_checkpoint or torch.load. Many projects that include it are not exposed.
| Package | Affected | Fixed in |
|---|---|---|
detoxify PyPIpkg:pypi/detoxify | From 0.5.3 to 0.5.4 | None |
How do I fix CVE-2026-137998?
No fix has been published for CVE-2026-137998 yet. Limit exposure of the affected software until one is available.
Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.
Is CVE-2026-137998 being exploited?
There is no known exploitation of CVE-2026-137998 in the wild and no public exploit code.
Sources
Also known as GHSA-58rq-hrhw-p349.