CVE-2020-15142: openapi-python-client Arbitrary Code Generation vulnerability

CVE-2020-15142 · Severity: low · CVSS 3.1 · Published 2020-08-14

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.

Technologies: openapi-python-client (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2020-15142 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2020-15142 being exploited in the wild.
How severe is CVE-2020-15142?
Low severity, with a CVSS score of 3.1, published 14 August 2020.
Which products and versions are affected?
openapi-python-client (PyPI) ECOSYSTEM:introduced=0,fixed=0.5.3, GIT:introduced=0,fixed=f7a56aae32cba823a77a84a1f10400799b19c19a|ECOSYSTEM:introduced=0,fixed=0.5.3.
Is there a fix for CVE-2020-15142?
Yes. openapi-python-client (PyPI): upgrade to 0.5.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2020-15142?
Check whether you run openapi-python-client (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • openapi-python-client (PyPI): upgrade to 0.5.3 or later
    pip install "openapi-python-client>=0.5.3"

Affected products

  • openapi-python-client (PyPI) ECOSYSTEM:introduced=0,fixed=0.5.3, GIT:introduced=0,fixed=f7a56aae32cba823a77a84a1f10400799b19c19a|ECOSYSTEM:introduced=0,fixed=0.5.3

Identifiers

  • CVE-2020-15142
  • GHSA-9x4c-63pf-525f
  • PYSEC-2020-71

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.