Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. openapi-python-client
  4. ›
  5. CVE-2020-15142

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

August 20, 2020 (updated October 7, 2024)

Clients generated with a maliciously crafted OpenAPI Document can generate arbitrary Python code. Subsequent execution of this malicious client is arbitrary code execution.

Giving this a CVSS of 8.0 (high) with CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H/E:P/RL:U/RC:C .

References

  • github.com/advisories/GHSA-9x4c-63pf-525f
  • github.com/openapi-generators/openapi-python-client
  • github.com/openapi-generators/openapi-python-client/commit/f7a56aae32cba823a77a84a1f10400799b19c19a
  • github.com/openapi-generators/openapi-python-client/releases/tag/v.0.5.3
  • github.com/pypa/advisory-database/tree/main/vulns/openapi-python-client/PYSEC-2020-71.yaml
  • github.com/triaxtec/openapi-python-client/blob/main/CHANGELOG.md
  • github.com/triaxtec/openapi-python-client/commit/f7a56aae32cba823a77a84a1f10400799b19c19a
  • github.com/triaxtec/openapi-python-client/security/advisories/GHSA-9x4c-63pf-525f
  • nvd.nist.gov/vuln/detail/CVE-2020-15142
  • pypi.org/project/openapi-python-client

Code Behaviors & Features

Detect and mitigate CVE-2020-15142 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.5.3

Fixed versions

  • 0.5.3

Solution

Upgrade to version 0.5.3 or above.

Impact 9 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

pypi/openapi-python-client/CVE-2020-15142.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:19 +0000.