CVE-2026-31219

Source
https://cve.org/CVERecord?id=CVE-2026-31219
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31219.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-31219
Published
2026-05-12T00:00:00Z
Modified
2026-10-28T02:31:02Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

The _load_model() function in the neural_magic_training.py script of the optimate project in commit a6d302f912b481c94370811af6b11402f51d377f (2024-07-21) is vulnerable to insecure deserialization (CWE-502). When a user provides a single model file path (e.g., .pt or .pth) via the --model command-line argument, the function loads the file using torch.load() without enabling the weights_only=True security parameter. This allows the deserialization of arbitrary Python objects through the Pickle module. A remote attacker can exploit this by providing a maliciously crafted model file, leading to arbitrary code execution during deserialization on the victim's system.

Database specific
{
    "cna_assigner":  "mitre",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31219.json"
}
References

Affected packages

Git / github.com/nebuly-ai/optimate

Affected ranges

Type
GIT
Repo
https://github.com/nebuly-ai/optimate
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last Affected
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "0"
                },
                {
                    "last_affected":  "a6d302f912b481c94370811af6b11402f51d377f"
                }
            ],
            "source":  "DESCRIPTION"
        }
    ]
}

Affected versions

chatllama0.*
chatllama0.0.3
chatllama0.0.4
v0.*
v0.1.1
v0.1.2
v0.2.0
v0.2.1
v0.2.2
v0.3.0
v0.3.1
v0.3.2
v0.4.0
v0.4.1
v0.4.2
v0.4.3
v0.4.4
v0.5.0
v0.6.0
v0.7.0
v0.7.1
v0.7.2
v0.7.3
v0.8.0
v0.8.1
v0.9.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31219.json"