CVE-2026-31217: The _load_model() function in the neural_magic_training.py script of the optimate project in commit a6d302f912
CVE-2026-31217 is a critical-severity flaw (CVSS 9.8) affecting optimate. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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, a
Why this priority
- Critical severity
- Remotely exploitable, no login, no user action
No fix is published yet: follow the downgrade or mitigation steps.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 0.4% (top 63%) |
| CISA exploited list | No |
| Weakness | CWE-94 |
| Published | 2026-05-12 |
| Last modified | 2026-10-19 |
Last updated 2026-10-19 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-31217?
optimate: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2026-31217 being exploited?
CVE-2026-31217 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-31217 affect?
CVE-2026-31217 affects optimate. Severity is critical (CVSS 9.8). 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
How urgent is CVE-2026-31217?
Priority 48/100. Critical severity; Remotely exploitable, no login, no user action