{"id":"CVE-2020-15142","aliases":["EUVD-2020-0122","GHSA-9x4c-63pf-525f","PYSEC-2020-71"],"status":"published","title":"Arbitrary Code Generation","description":"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.","severity":{"version":"3.1","score":8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.01849,"percentile":0.79251,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-94"],"published":"2020-08-14T16:20:13Z","modified":"2026-10-20T10:51:52Z","fixes":[{"ecosystem":"PyPI","package":"openapi-python-client","fixed_in":["0.5.3"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"openapi-python-client","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3"}]}]},{"source":"osv","ecosystem":"PyPI","package":"openapi-python-client","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3"}]}],"versions":["0.1.0","0.1.0.dev0","0.1.1","0.1.2","0.2.0","0.2.1","0.3.0","0.4.0","0.4.0rc1","0.4.1","0.4.2","0.5.0","0.5.1","0.5.2"]},{"source":"osv","ecosystem":"PyPI","package":"openapi-python-client","ranges":[{"type":"GIT","events":[{"introduced":"0"},{"fixed":"f7a56aae32cba823a77a84a1f10400799b19c19a"}]},{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3"}]}],"versions":["0.1.0.dev0","0.1.0","0.1.1","0.1.2","0.2.0","0.2.1","0.3.0","0.4.0rc1","0.4.0","0.4.1","0.4.2","0.5.0","0.5.1","0.5.2"]}],"products":[{"vendor":"openapi-python-client_project","product":"openapi-python-client"},{"vendor":"triaxtec","product":"openapi-python-client"}],"references":[{"url":"https://github.com/triaxtec/openapi-python-client/security/advisories/GHSA-9x4c-63pf-525f","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/triaxtec/openapi-python-client/commit/f7a56aae32cba823a77a84a1f10400799b19c19a","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/triaxtec/openapi-python-client/blob/main/CHANGELOG.md#053---2020-08-13","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","advisory","web"]},{"url":"https://pypi.org/project/openapi-python-client/","tags":["x_refsource_MISC","x_transferred","Product","Third Party Advisory","package"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15142","tags":["advisory"]},{"url":"https://github.com/openapi-generators/openapi-python-client/commit/f7a56aae32cba823a77a84a1f10400799b19c19a","tags":["web"]},{"url":"https://github.com/openapi-generators/openapi-python-client/releases/tag/v.0.5.3","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/openapi-python-client/PYSEC-2020-71.yaml","tags":["web"]},{"url":"https://pypi.org/project/openapi-python-client","tags":["web"]},{"url":"https://github.com/advisories/GHSA-9x4c-63pf-525f"},{"url":"https://github.com/openapi-generators/openapi-python-client","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2020-15142","title":"Arbitrary Code Generation","description":"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.","status":"published","published":"2020-08-14T16:20:13Z","modified":"2024-08-04T13:08:22.278Z","cvss":[{"version":"3.1","score":8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:35:49.879248Z"}],"euvd":[{"id":"EUVD-2020-0122","description":"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.","status":"published","published":"2020-08-14T16:20:13Z","modified":"2024-08-04T13:08:22Z","cvss":[{"version":"3.1","score":8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T03:07:33.100327Z"}],"ghsa":[{"id":"GHSA-9x4c-63pf-525f","title":"openapi-python-client Arbitrary Code Generation vulnerability","description":"### Impact\nClients generated with a maliciously crafted OpenAPI Document can generate arbitrary Python code. Subsequent execution of this malicious client is arbitrary code execution.\n\nGiving this a CVSS of 8.0 (high) with CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H/E:P/RL:U/RC:C .\n\n### Patches\nFix will be included in version 0.5.3\n\n### Workarounds\nInspect OpenAPI documents before generating, or inspect generated code before executing.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [openapi-python-client](https://github.com/triaxtec/openapi-python-client/issues)\n* Email us at [danthony@triaxtec.com](mailto:danthony@triaxtec.com)","status":"published","published":"2020-08-20T14:38:24Z","modified":"2024-10-07T16:47:54Z","cvss":[{"version":"4.0","score":8.8,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","level":"high"},{"version":"3.1","score":8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:38:08.742903Z"}],"nvd":[{"id":"CVE-2020-15142","description":"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.","status":"published","published":"2020-08-14T17:15:14.157Z","modified":"2026-06-17T02:56:08.187Z","cvss":[{"version":"3.1","score":8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":6,"vector":"AV:N/AC:M/Au:S/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:06:13.05572Z"}],"osv":[{"id":"CVE-2020-15142","description":"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.","status":"published","published":"2020-08-14T17:15:14.157Z","modified":"2026-10-20T10:51:52.427901292Z","cvss":[{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:14.828228Z"},{"id":"GHSA-9x4c-63pf-525f","title":"openapi-python-client Arbitrary Code Generation vulnerability","description":"### Impact\nClients generated with a maliciously crafted OpenAPI Document can generate arbitrary Python code. Subsequent execution of this malicious client is arbitrary code execution.\n\nGiving this a CVSS of 8.0 (high) with CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H/E:P/RL:U/RC:C .\n\n### Patches\nFix will be included in version 0.5.3\n\n### Workarounds\nInspect OpenAPI documents before generating, or inspect generated code before executing.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [openapi-python-client](https://github.com/triaxtec/openapi-python-client/issues)\n* Email us at [danthony@triaxtec.com](mailto:danthony@triaxtec.com)","status":"published","published":"2020-08-20T14:38:24Z","modified":"2026-07-08T06:00:02.014289122Z","cvss":[{"version":"3.1","score":8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","level":"high"},{"version":"4.0","score":8.8,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","level":"high"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T15:46:44.225359Z"},{"id":"PYSEC-2020-71","description":"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.","status":"published","published":"2020-08-14T17:15:00Z","modified":"2023-11-08T04:02:31.004919Z","updated_at":"2026-11-02T15:52:52.682031Z"}]}}
