Critical
Security advisory
In openapi-python-client before version 0.5.3, clients generated with a maliciously crafted OpenAPI Document can generate arbitrary Python code. Subsequent execution of this malicious client is arbitrary code execution.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2020-15142
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 10:52 UTC · Revision 1
Source evidence
In openapi-python-client before version 0.5.3, clients generated with a maliciously crafted OpenAPI Document can generate arbitrary Python code. Subsequent execution of this malicious client is arbitrary code execution.
osv:CVE-2020-15142
Complete source record
{
"id": "f5505ab0fa1e4977fad4c361ec8ee4f23438f62de6db708b50fec265ed742c6e",
"url": "https://osv.dev/vulnerability/CVE-2020-15142",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2020-15142",
"summary": "In openapi-python-client before version 0.5.3, clients generated with a maliciously crafted OpenAPI Document can generate arbitrary Python code. Subsequent execution of this malicious client is arbitrary code execution.",
"evidence": "osv:CVE-2020-15142",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2020-15142",
"aliases": [
"CVE-2020-15142",
"GHSA-9x4c-63pf-525f",
"PYSEC-2020-71"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/openapi-generators/openapi-python-client",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "0230ec5a6c30480c0df0371c7f63bcd67841e3a3"
},
{
"fixed": "f7a56aae32cba823a77a84a1f10400799b19c19a"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:openapi-python-client_project:openapi-python-client:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "0.5.3"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "f7a56aae32cba823a77a84a1f10400799b19c19a"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v.0.5.2",
"v.0.5.1",
"v.0.5.0",
"v.0.4.2",
"v.0.4.1",
"v.0.4.0",
"v.0.4.0-rc.1",
"v.0.3.0",
"v.0.2.1",
"v.0.2.0",
"v.0.1.2",
"0.1.1",
"0.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-15142.json"
}
}
],
"modified": "2026-10-20T10:51:52.427901292Z",
"provider": "osv",
"references": [
"https://github.com/triaxtec/openapi-python-client/blob/main/CHANGELOG.md#053---2020-08-13",
"https://github.com/triaxtec/openapi-python-client/security/advisories/GHSA-9x4c-63pf-525f",
"https://github.com/triaxtec/openapi-python-client/commit/f7a56aae32cba823a77a84a1f10400799b19c19a",
"https://pypi.org/project/openapi-python-client/"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2020-15142",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 383059,
"published_at": "2020-08-14T17:15:14.157+00:00"
}