{"id":"CVE-2026-31217","aliases":["CVE-2026-31217"],"related":[],"kind":"vulnerability","state":"published","title":"The loadmodel() function in the neuralmagictraining.py script of the optimate project in commit a6d302f912b481c94370811af6b11402f51d377f (2…","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"La función _load_model() en el script neural_magic_training.py del proyecto optimate en el commit a6d302f912b481c94370811af6b11402f51d377f (2024-07-21) permite la ejecución de código arbitrario. Cuando un usuario proporciona una ruta de directorio a través del argumento de línea de comandos --model, la función lee un archivo module.py de ese directorio y ejecuta su contenido directamente utilizando la función exec() de Python. Este diseño no valida ni sanitiza el contenido del archivo, permitiendo a un atacante que controla el directorio de entrada ejecutar código Python arbitrario en el contexto del proceso que ejecuta el script.","source":"nvd"}],"published":"2026-05-12T00:00:00.000Z","modified":"2026-10-19T22:10:00.130Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"status":"affected","version":"2024-07-21"}],"vendor":"nebuly","product":"optimate","cpe":"cpe:2.3:a:nebuly:optimate:2024-07-21:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/nebuly-ai/optimate","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://www.notion.so/CVE-2026-31217-35d1e13931888179ae40dea5258d2db9","tags":["mitigation","third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-05-13T14:01:18.035Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31217","url":"https://www.cve.org/CVERecord?id=CVE-2026-31217","licence":"CVE Terms of Use","modified":"2026-05-13T14:01:54.734Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31217","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31217","licence":"Public domain","modified":"2026-10-19T22:10:00.130Z"}],"updatedAt":"2026-11-25T22:59:21.365Z","epss":{"score":0.00426,"percentile":0.3884,"date":"2026-12-01T12:00:22.000Z"}}