JSONSchema2PoPo2に任意のPythonコードを実行される脆弱性
Summary
JSONSchema2PoPo2の3.0.3以前には、JSON Schemaのdefaultやformatの値が無加工で書き出される問題があり、細工した値で任意のPythonコードを注入されるおそれがあります。注入されたコードは、生成されたモジュールを読み込んだ時点で実行されます。影響を受けるのは3.0.3までの版で、修正版の情報は公表されていないため、最新の情報を確認してください。
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.
JSONSchema2PoPo2の3.0.3以前には、JSON Schemaのdefaultやformatの値が無加工で書き出される問題があり、細工した値で任意のPythonコードを注入されるおそれがあります。注入されたコードは、生成されたモジュールを読み込んだ時点で実行されます。影響を受けるのは3.0.3までの版で、修正版の情報は公表されていないため、最新の情報を確認してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| MikeDomboJSONSchema2PoPo2 |
≤ 3.0.3→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
JSONSchema2PoPo2 through 3.0.3 contains a code injection vulnerability that allows attackers to inject Python code by supplying JSON Schema default or format values that are written unescaped. Attackers can place a single quote in a string property default to break out of the literal in the generated init signature, executing injected code when the generated module is imported.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- patch github.com
- report github.com
- web github.com
- web github.com