CVE-2026-137998 Detoxify 0.5.3 through 0.5.4 Insecure Deserialization RCE via load_checkpoint

Published Updated

Attackers supplying a crafted checkpoint file can execute code when loaded with Detoxify's load_checkpoint; users loading untrusted checkpoints should care.

CVSS score

High

8.5/10

CVSS 4.0 · Scored by VulnCheck Breakdown
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
None known
No public exploit found
Fix
None listed
No fixed version published
Attack path
Local or same network
No login, a user must click or open something

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.

PackageAffectedFixed in
detoxify PyPI
pkg:pypi/detoxify
From 0.5.3 to 0.5.4None

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.

Is CVE-2026-137998 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free