Openapi-generators openapi-python-client
openapi-python-client: Malicious OpenAPI Documents can cause Arbitrary Code Generation
openapi-python-client generates Python clients from OpenAPI documents. Prior to 0.29.1, the generator does not safely neutralize malicious OpenAPI document content before rendering string, docstring, and f-string contexts in generated Python. The generated Python client can contain attacker-controlled Python that executes when a user imports the client, affecting the importing environment's integrity and potentially its confidentiality and availability. This issue is fixed in version 0.29.1.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.4high · scored by CNA · CWE-94
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
openapi-generators openapi-python-client
- < 0.29.1
Fixed in 0.29.1
Mitigation
Upgrade openapi-python-client to 0.29.1 or later.
References
- Vendor advisory github.com/openapi-generators/openapi-python-c…
- Patch github.com/openapi-generators/openapi-python-c…
- Patch github.com/openapi-generators/openapi-python-c…
1 more
- Release notes github.com/openapi-generators/openapi-python-c…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.