同じ製品で同じ時期に公表された 3 件の脆弱性の 1 つです。まとめた解説: Jane open-api-3の脆弱性3件、修正版7.12.0あり
Jane(PHPライブラリ)に任意のPHPコードを実行される脆弱性
概要
Janeは、JSON SchemaやOpenAPIの仕様からPHPのモデルとAPIクライアントを生成するライブラリです。7.12.0より前のバージョンでは、OpenAPIドキュメントのクエリパラメーター名に含まれる特定の文字列によって生成コードの構造が壊れ、攻撃者が指定したPHPコードが実行されるおそれがあります(CVSS v4は9.3)。修正版の7.12.0で対処されているため、7.12.0以降へ更新してください。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
Janeは、JSON SchemaやOpenAPIの仕様からPHPのモデルとAPIクライアントを生成するライブラリです。7.12.0より前のバージョンでは、OpenAPIドキュメントのクエリパラメーター名に含まれる特定の文字列によって生成コードの構造が壊れ、攻撃者が指定したPHPコードが実行されるおそれがあります(CVSS v4は9.3)。修正版の7.12.0で対処されているため、7.12.0以降へ更新してください。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| janephpjanephp | — | 記載なし |
| Packagistjane-php/open-api-3 |
7.12.0 未満→ 7.12.0 |
7.12.0 |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
Jane is a set of PHP libraries that generates models and API clients from JSON Schema and OpenAPI specifications. Prior to 7.12.0, the Jane open-api-3 generator emits an OpenAPI query parameter name verbatim as an array key in generated Client/Endpoint method docblocks. A query parameter name containing a PHPDoc closing delimiter can terminate the comment early and place attacker-controlled PHP in class-body position, including an __construct method that runs when the generated Client is instantiated. Exploitation requires generating a client from an attacker-influenced OpenAPI document and then using the generated SDK, and can execute arbitrary PHP with the consuming application's privileges. This issue is fixed in version 7.12.0.
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- web github.com