CVE-2026-31217
Published:May 12, 2026
Updated:May 18, 2026
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.
Affected Packages
https://github.com/simplesamlphp/saml2.git (GITHUB):
Affected version(s) >=v5.0.0-alpha.1 <v5.0.0-alpha.20Fix Suggestion:
Update to version v5.0.0-alpha.20https://github.com/simplesamlphp/saml2.git (GITHUB):
Affected version(s) >=v0.1.0-alpha <v4.17.0Fix Suggestion:
Update to version v4.17.0simplesamlphp/saml2-legacy (PHP):
Affected version(s) >=v0.1.0-alpha <v4.17.0Fix Suggestion:
Update to version v4.17.0simplesamlphp/saml2 (PHP):
Affected version(s) >=v0.1.0-alpha <v4.17.0Fix Suggestion:
Update to version v4.17.0simplesamlphp/saml2 (PHP):
Affected version(s) >=v5.0.0-alpha.1 <v5.0.0-alpha.20Fix Suggestion:
Update to version v5.0.0-alpha.20Related Resources (2)
Do you need more information?
Contact UsCVSS v4
Base Score:
9.3
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
9.8
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Control of Generation of Code ('Code Injection')
EPSS
Base Score:
0.08