CVE-2026-31217

Source
https://cve.org/CVERecord?id=CVE-2026-31217
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31217.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-31217
Published
2026-05-12T00:00:00Z
Modified
2026-10-28T02:31:09Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/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) allows arbitrary code execution. When a user supplies a directory path via the --model command-line argument, the function reads a module.py file from that directory and executes its contents directly using Python's exec() function. This design does not validate or sanitize the file's content, allowing an attacker who controls the input directory to execute arbitrary Python code in the context of the process running the script.

Database specific
{
    "cna_assigner":  "mitre",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31217.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-31217.json"