CVE-2026-31217: n/a
CVE-2026-31217 is a critical arbitrary code execution vulnerability in the optimate project's neural_magic_training.py script. The vulnerability arises because the _load_model() function executes the contents of a module.py file from a user-supplied directory without validation or sanitization. This allows an attacker controlling the input directory to run arbitrary Python code in the context of the running process. The vulnerability has a CVSS score of 9.8, indicating a high impact on confidentiality, integrity, and availability. No official patch or remediation guidance is currently available, and no known exploits have been reported in the wild.
AI Analysis
Technical Summary
The _load_model() function in the neural_magic_training.py script of the optimate project executes code from a module.py file located in a directory specified by the user via the --model command-line argument. Because the function uses Python's exec() on the file contents without validation, an attacker who can control the directory path can execute arbitrary Python code within the process context. This represents a CWE-94 (Improper Control of Generation of Code) vulnerability. The vulnerability was published on 2026-05-12 and carries a CVSS v3.1 score of 9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), indicating network exploitable, low attack complexity, no privileges or user interaction required, and full impact on confidentiality, integrity, and availability. There is no vendor advisory or patch information available at this time.
Potential Impact
Successful exploitation allows an unauthenticated attacker to execute arbitrary Python code remotely on the system running the vulnerable script. This can lead to complete system compromise, including full control over confidentiality, integrity, and availability of the affected system. Given the critical CVSS score and the nature of the vulnerability, the impact is severe.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid running the vulnerable script with untrusted input for the --model argument. Restrict access to the environment where the script runs to trusted users only and validate or sanitize input paths if possible to prevent supplying malicious directories.
CVE-2026-31217: n/a
Description
CVE-2026-31217 is a critical arbitrary code execution vulnerability in the optimate project's neural_magic_training.py script. The vulnerability arises because the _load_model() function executes the contents of a module.py file from a user-supplied directory without validation or sanitization. This allows an attacker controlling the input directory to run arbitrary Python code in the context of the running process. The vulnerability has a CVSS score of 9.8, indicating a high impact on confidentiality, integrity, and availability. No official patch or remediation guidance is currently available, and no known exploits have been reported in the wild.
CVSS v3.1
Score 9.8critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The _load_model() function in the neural_magic_training.py script of the optimate project executes code from a module.py file located in a directory specified by the user via the --model command-line argument. Because the function uses Python's exec() on the file contents without validation, an attacker who can control the directory path can execute arbitrary Python code within the process context. This represents a CWE-94 (Improper Control of Generation of Code) vulnerability. The vulnerability was published on 2026-05-12 and carries a CVSS v3.1 score of 9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), indicating network exploitable, low attack complexity, no privileges or user interaction required, and full impact on confidentiality, integrity, and availability. There is no vendor advisory or patch information available at this time.
Potential Impact
Successful exploitation allows an unauthenticated attacker to execute arbitrary Python code remotely on the system running the vulnerable script. This can lead to complete system compromise, including full control over confidentiality, integrity, and availability of the affected system. Given the critical CVSS score and the nature of the vulnerability, the impact is severe.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid running the vulnerable script with untrusted input for the --model argument. Restrict access to the environment where the script runs to trusted users only and validate or sanitize input paths if possible to prevent supplying malicious directories.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mitre
- Date Reserved
- 2026-03-09T00:00:00.000Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a034c84cbff5d8610fe99d6
Added to database: 05/12/2026, 15:51:32 UTC
Last enriched: 05/19/2026, 18:47:36 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 53
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.