Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.4%top 65%

CVE-2026-31217: n/a

0
Critical
VulnerabilityCVE-2026-31217cvecve-2026-31217
Published: 05/12/2026 (05/12/2026, 00:00:00 UTC)
Source: CVE Database V5

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected software

GitHub Actionsmore threats →ai
nebuly-ai/optimate
pkg:github/nebuly-ai/optimate
Affected versions
*

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/19/2026, 18:47:36 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses