{"id":"CVE-2020-15142","published":"2020-08-14T16:20:13Z","modified":"2024-08-04T13:08:22Z","title":"Arbitrary Code Generation","vendor":"triaxtec","product":"openapi-python-client","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01849,"percentile":0.7962,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/triaxtec/openapi-python-client/security/advisories/GHSA-9x4c-63pf-525f","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/triaxtec/openapi-python-client/commit/f7a56aae32cba823a77a84a1f10400799b19c19a","tags":["x_refsource_MISC"]},{"url":"https://github.com/triaxtec/openapi-python-client/blob/main/CHANGELOG.md#053---2020-08-13","tags":["x_refsource_MISC"]},{"url":"https://pypi.org/project/openapi-python-client/","tags":["x_refsource_MISC"]}],"priority":{"score":21.5,"factors":[{"name":"EPSS percentile","points":15.92},{"name":"CVSS severity","points":5.6}]},"vendorSlug":"triaxtec","affectedVersions":[{"vendor":"triaxtec","product":"openapi-python-client","versions":["< 0.5.3"]}],"affected":[{"ecosystem":"PyPI","package":"openapi-python-client","vulnerableRanges":["<0.5.3"],"patched":["0.5.3"],"from":["GHSA-9x4c-63pf-525f","PYSEC-2020-71"],"provenance":"source"}],"summary":{"text":"The flaw is in the code generator of openapi-python-client from triaxtec, where clients built from a maliciously crafted OpenAPI Document can have arbitrary Python code generated into them. An attacker who supplies such a document and gets the resulting client executed (which requires a user to run it, and the attacker to have supplied the specification with low privileges, over a network with high attack complexity) can achieve arbitrary code execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:01:19Z"},"euvd":{"id":"EUVD-2020-0122","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-triaxtec-openapi-python-client-cve-2020-15141","parents":[{"from":"CVE-2020-15141","to":"CVE-2020-15142","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["openapi_python_client/__init__.py","openapi_python_client/utils.py"],"commits":["https://github.com/triaxtec/openapi-python-client/commit/3e7dfae5d0b3685abf1ede1bc6c086a116ac4746","https://github.com/triaxtec/openapi-python-client/commit/f7a56aae32cba823a77a84a1f10400799b19c19a"],"basis":"rarely changed file"}]}]}}