CVE-2020-15142 json
Arbitrary Code Generation
published 2020-08-14 6 y ago modified 2026-07-08 4 mo ago also GHSA-9x4c-63pf-525f , PYSEC-2020-71 , EUVD-2020-0122
- cvss
- 8.0
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.8%
- EPSS 1.8% chance of exploitation in 30 days, percentile 79%
- public exploits
- 0
- none known
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.
Patch / fix
- pypi openapi-python-client 0.5.3
- openapi-python-client_project openapi-python-client 0.5.3
Exploit prediction
1.85% chance of exploitation in the next 30 days, higher than 79% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.0 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H |
| NVD | 3.1 | 9.0 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
| NVD | 2.0 | 6.0 | AV:N/AC:M/Au:S/C:P/I:P/A:P |
| GitHub | 3.1 | 8.0 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | openapi-python-client | <0.5.3 |
0.5.3 |
Affected products
- triaxtec openapi-python-client
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
github.com
/triaxtec/openapi-python-client/commit/f7a56aae32cba823a77a84a1f10400799b19c19a
web, patch, third-party-advisory
-
github.com
/openapi-generators/openapi-python-client/commit/f7a56aae32cba823a77a84a1f10400799b19c19a
web
-
github.com
/triaxtec/openapi-python-client/security/advisories/GHSA-9x4c-63pf-525f
web, third-party-advisory, advisory
-
github.com
/triaxtec/openapi-python-client/blob/main/CHANGELOG.md#053---2020-08-13
web, release-notes, third-party-advisory
-
pypi.org
/project/openapi-python-client/
product, third-party-advisory, package
-
nvd.nist.gov
/vuln/detail/CVE-2020-15142
advisory
-
github.com
/openapi-generators/openapi-python-client
package
-
github.com
/openapi-generators/openapi-python-client/releases/tag/v.0.5.3
web
-
github.com
/pypa/advisory-database/tree/main/vulns/openapi-python-client/PYSEC-2020-71.yaml
web
-
pypi.org
/project/openapi-python-client
web
Sources
- CVE List CVE-2020-15142
- GitHub Advisory GHSA-9x4c-63pf-525f
- NVD CVE-2020-15142
- OSV PYSEC-2020-71
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.