CVE-2026-31217
Analyzed Analyzed - Analysis Complete

BaseFortify

Vulnerability report for CVE-2026-31217, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-05-12

Last updated on: 2026-05-26

Assigner: MITRE

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-05-12
Last Modified
2026-05-26
Generated
2026-06-30
EPSS Evaluated
2026-06-28
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
nebuly optimate 2024-07-21

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-94 The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
AI Quick Actions have not been generated yet.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-31217. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart