Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2020-15142
Python vulnerability analysis and mitigation

Overview

In openapi-python-client before version 0.5.3, clients generated with a maliciously crafted OpenAPI Document could generate arbitrary Python code. When this malicious client code is executed, it results in arbitrary code execution on the system (GitHub Advisory).

Technical details

The vulnerability exists in the code generation process where the generator fails to properly sanitize and validate input from OpenAPI documents. This allows attackers to inject malicious code through various OpenAPI document fields that get translated into Python code. The vulnerability has been assigned a CVSS score of 8.0 (High) with the following vector: 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 (GitHub Advisory).

Impact

The vulnerability allows attackers to execute arbitrary code on systems where the maliciously generated client is executed. This could lead to complete system compromise, data theft, or service disruption (GitHub Advisory).

Exploitability

Exploitation requires an attacker to craft a malicious OpenAPI document and convince a user to generate and execute a client from it. The attack requires some user interaction and has high complexity, but could result in significant impact if successfully executed (GitHub Advisory).

Mitigation and workarounds

Users should upgrade to version 0.5.3 or later which includes fixes for this vulnerability. As a workaround, users should inspect OpenAPI documents before generating clients, or inspect generated code before executing it (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66455CRITICAL9.8
  • Python logoPython
  • lmdeploy
NoYesSep 18, 2026
CVE-2026-63374CRITICAL9.3
  • Python logoPython
  • python-anyio
NoYesSep 18, 2026
CVE-2026-59163CRITICAL9.1
  • Python logoPython
  • mnemosyne-memory
NoYesSep 18, 2026
CVE-2026-33625HIGH8.8
  • Python logoPython
  • lmdeploy
NoYesSep 18, 2026
CVE-2026-64847MEDIUM6.8
  • Python logoPython
  • litellm-1.90
NoYesSep 18, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management