Vulnerability · Published Aug 14, 2020 · Assigned by GitHub_M
CVE-2020-15142Arbitrary Code Generation
High 8.0
In plain English
A high-severity code injection in openapi-python-client from triaxtec. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.8% (higher than 79% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)8.0High
Exploit odds (30 days)1.8%top 20.8% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | openapi-python-client | 0.5.3 | GHSA-9x4c-63pf-525f |
| PyPI | openapi-python-client | 0.5.3 | PYSEC-2020-71 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| triaxtec | openapi-python-client | < 0.5.3 |
Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
References
- https://github.com/triaxtec/openapi-python-client/security/advisories/GHSA-9x4c-63pf-525f x_refsource_CONFIRM
- https://github.com/triaxtec/openapi-python-client/commit/f7a56aae32cba823a77a84a1f10400799b19c19a x_refsource_MISC
- https://github.com/triaxtec/openapi-python-client/blob/main/CHANGELOG.md#053---2020-08-13 x_refsource_MISC
- https://pypi.org/project/openapi-python-client/ x_refsource_MISC