# CVE-2020-15142: Arbitrary Code Generation

- Severity: High 8.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.85%, higher than 79% of CVEs (2026-12-01)
- Published: 2020-08-14T16:20:13.000Z
- Modified: 2026-07-08T06:00:02.014Z
- Also known as: GHSA-9x4c-63pf-525f, PYSEC-2020-71
- Weaknesses: CWE-94
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- triaxtec openapi-python-client: < 0.5.3
- openapi-python-client (PyPI): before 0.5.3; before f7a56aae32cba823a77a84a1f10400799b19c19a
- openapi-python-client_project openapi-python-client: before 0.5.3

## Every score

- GitHub_M: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.0 Medium `AV:N/AC:M/Au:S/C:P/I:P/A:P`

## References

- <https://github.com/triaxtec/openapi-python-client/security/advisories/GHSA-9x4c-63pf-525f> (advisory, third-party-advisory, web)
- <https://github.com/triaxtec/openapi-python-client/commit/f7a56aae32cba823a77a84a1f10400799b19c19a> (fix, patch, third-party-advisory, web)
- <https://github.com/triaxtec/openapi-python-client/blob/main/CHANGELOG.md#053---2020-08-13> (release-notes, third-party-advisory, web)
- <https://pypi.org/project/openapi-python-client/> (package, product, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-15142> (advisory)
- <https://github.com/openapi-generators/openapi-python-client/commit/f7a56aae32cba823a77a84a1f10400799b19c19a> (web)
- <https://github.com/openapi-generators/openapi-python-client> (package)
- <https://github.com/openapi-generators/openapi-python-client/releases/tag/v.0.5.3> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/openapi-python-client/PYSEC-2020-71.yaml> (web)
- <https://pypi.org/project/openapi-python-client> (web)

## Sources

- CVE List: [CVE-2020-15142](https://www.cve.org/CVERecord?id=CVE-2020-15142), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-9x4c-63pf-525f](https://github.com/advisories/GHSA-9x4c-63pf-525f), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-15142](https://nvd.nist.gov/vuln/detail/CVE-2020-15142), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2020-71](https://osv.dev/vulnerability/PYSEC-2020-71), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2020-15142 · Whole record: https://cve.day/CVE-2020-15142.json · Rebuilt by cve.day 2026-11-25T22:57:54.189Z
