Jane open-api-3の脆弱性3件、修正版7.12.0あり
Summary
PHPライブラリJaneのopen-api-3ジェネレーターに、生成したクライアントからPHPコードを実行される脆弱性が3件あり、7.12.0で修正されました。7.12.0未満を使う組織は更新し、生成済みのクライアントも作り直してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
PHPライブラリJaneのopen-api-3ジェネレーターに、生成したクライアントからPHPコードを実行される脆弱性が3件あり、7.12.0で修正されました。7.12.0未満を使う組織は更新し、生成済みのクライアントも作り直してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| janephpjanephp | — | Not listed |
| Packagistjane-php/open-api-3 |
< 7.12.0→ 7.12.0 |
7.12.0 |
Original description The description as published by the source.
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 header parameter name verbatim as an array key in generated Client/Endpoint method docblocks. A header 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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- web github.com