{"id":"CVE-2020-15142","aliases":["CVE-2020-15142","GHSA-9x4c-63pf-525f","PYSEC-2020-71"],"related":[],"kind":"vulnerability","state":"published","title":"Arbitrary Code Generation","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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)","format":"markdown","source":"ghsa"},{"lang":"es","text":"En openapi-python-client versiones anteriores a 0.5.3, los clientes generados con un Documento OpenAPI diseñado maliciosamente pueden generar código Python arbitrario. Una ejecución posterior de este cliente malicioso es una ejecución de código arbitraria.","source":"nvd"}],"published":"2020-08-14T16:20:13.000Z","modified":"2026-07-08T06:00:02.014Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","score":8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","score":8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","score":8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","score":9,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:S/C:P/I:P/A:P","score":6,"rating":"MEDIUM"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"version":"< 0.5.3","status":"affected"}],"vendor":"triaxtec","product":"openapi-python-client","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.5.3"}],"ecosystem":"PyPI","package":"openapi-python-client","purl":"pkg:pypi/openapi-python-client","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.5.3"}],"vendor":"openapi-python-client_project","product":"openapi-python-client","cpe":"cpe:2.3:a:openapi-python-client_project:openapi-python-client:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"f7a56aae32cba823a77a84a1f10400799b19c19a"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.5.3"}],"ecosystem":"PyPI","package":"openapi-python-client","purl":"pkg:pypi/openapi-python-client","repo":"https://github.com/triaxtec/openapi-python-client","source":"pysec"}],"references":[{"url":"https://github.com/triaxtec/openapi-python-client/security/advisories/GHSA-9x4c-63pf-525f","tags":["advisory","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/triaxtec/openapi-python-client/commit/f7a56aae32cba823a77a84a1f10400799b19c19a","tags":["fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/triaxtec/openapi-python-client/blob/main/CHANGELOG.md#053---2020-08-13","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://pypi.org/project/openapi-python-client/","tags":["package","product","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15142","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/openapi-generators/openapi-python-client/commit/f7a56aae32cba823a77a84a1f10400799b19c19a","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/openapi-generators/openapi-python-client","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/openapi-generators/openapi-python-client/releases/tag/v.0.5.3","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/openapi-python-client/PYSEC-2020-71.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/openapi-python-client","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-15142","url":"https://www.cve.org/CVERecord?id=CVE-2020-15142","licence":"CVE Terms of Use","modified":"2024-08-04T13:08:22.278Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9x4c-63pf-525f","url":"https://github.com/advisories/GHSA-9x4c-63pf-525f","licence":"CC-BY-4.0","modified":"2026-07-08T06:00:02.014Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-15142","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15142","licence":"Public domain","modified":"2026-06-17T02:56:08.187Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2020-71","url":"https://osv.dev/vulnerability/PYSEC-2020-71","licence":"CC-BY-4.0","modified":"2023-11-08T04:02:31.004Z"}],"updatedAt":"2026-11-25T22:57:54.189Z","epss":{"score":0.01849,"percentile":0.79712,"date":"2026-12-01T12:00:22.000Z"}}