| タイトル | Mauricio Poppe (mauriciopoppe)のmath-codegenにおけるコードインジェクションの脆弱性 |
|---|---|
| 概要 | math-codegenは数学的表現からコードを生成します。バージョン0.4.3以前では、cg.parse()に渡される文字列リテラルの内容がサニタイズされることなく新しいFunction()の本体にそのまま挿入されていました。これにより、攻撃者はユーザーが制御する入力がパーサーに到達した場合に任意のシステムコマンドを実行できる可能性がありました。ユーザー入力がcg.parse()に流れる数式評価のエンドポイントを公開しているアプリケーションは完全なリモートコード実行(RCE)の脆弱性を抱えていました。この問題はバージョン0.4.3で修正されています。 |
| 想定される影響 | 当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 |
| 対策 | 正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。 |
| 公表日 | 2026年5月8日0:00 |
| 登録日 | 2026年5月14日10:12 |
| 最終更新日 | 2026年5月14日10:12 |
| CVSS3.0 : 緊急 | |
| スコア | 9.8 |
|---|---|
| ベクター | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Mauricio Poppe (mauriciopoppe) |
| math-codegen 0.4.3 未満 |
| No | 変更内容 | 変更日 |
|---|---|---|
| 1 | [2026年05月14日] 掲載 |
2026年5月14日10:12 |
| 概要 | math-codegen generates code from mathematical expressions. Prior to version 0.4.3, string literal content passed to cg.parse() is injected verbatim into a new Function() body without sanitization. This allows an attacker to execute arbitrary system commands when user-controlled input reaches the parser. Any application exposing a math evaluation endpoint where user input flows into cg.parse() is vulnerable to full RCE. This issue has been patched in version 0.4.3. |
|---|---|
| 公表日 | 2026年5月8日23:16 |
| 登録日 | 2026年5月9日4:12 |
| 最終更新日 | 2026年5月12日23:26 |
| 構成1 | 以上 | 以下 | より上 | 未満 | |
| cpe:2.3:a:mauriciopoppe:math-codegen:*:*:*:*:*:*:*:* | 0.4.3 | ||||