NebulyのOptiMateにおけるコードインジェクションの脆弱性
| Title |
NebulyのOptiMateにおけるコードインジェクションの脆弱性
|
| Summary |
optimateプロジェクトのneural_magic_training.pyスクリプト内の_load_model()関数は、コミットa6d302f912b481c94370811af6b11402f51d377f(2024年7月21日)で任意のコード実行を許可します。ユーザーが--modelコマンドライン引数でディレクトリパスを指定すると、この関数はそのディレクトリ内のmodule.pyファイルを読み込み、Pythonのexec()関数を使ってその内容を直接実行します。この設計はファイルの内容を検証またはサニタイズしないため、入力ディレクトリを制御できる攻撃者はスクリプトを実行しているプロセスのコンテキストで任意のPythonコードを実行できます。
|
| Possible impacts |
当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 |
| Solution |
正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。 |
| Publication Date |
May 12, 2026, midnight |
| Registration Date |
May 28, 2026, 2:33 p.m. |
| Last Update |
May 28, 2026, 2:33 p.m. |
|
CVSS3.0 : 緊急
|
| Score |
9.8
|
| Vector |
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected System
| Nebuly |
|
OptiMate 2024-07-21
|
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
その他
Change Log
| No |
Changed Details |
Date of change |
| 1 |
[2026年05月28日] 掲載 |
May 28, 2026, 2:33 p.m. |
NVD Vulnerability Information
CVE-2026-31217
| 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.
|
| Publication Date |
May 13, 2026, 1:16 a.m. |
| Registration Date |
May 13, 2026, 4:12 a.m. |
| Last Update |
May 14, 2026, 12:52 a.m. |
Related information, measures and tools
Common Vulnerabilities List