CVE-2020-14343: 
Python vulnerability analysis and mitigation

Overview

A vulnerability was discovered in the PyYAML library in versions before 5.4, where it is susceptible to arbitrary code execution when it processes untrusted YAML files through the full_load method or with the FullLoader loader. This vulnerability (CVE-2020-14343) was disclosed on February 9, 2021, and represents an incomplete fix for a previous vulnerability (CVE-2020-1747). The flaw affects applications that use the library to process untrusted input (NVD, AttackerKB).

Technical details

The vulnerability lies in the FullLoader class, which was introduced in PyYAML version 5.1. The previous fix for CVE-2020-1747 implemented a blacklist to prevent certain properties from being set during Python object deserialization. However, this protection can be bypassed through careful nesting of objects. Example payloads that demonstrate the vulnerability include using python/object/new constructor with tuple and map combinations to achieve arbitrary code execution (GitHub Issue).

Impact

A successful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the system by abusing the python/object/new constructor when the application processes untrusted YAML input. The vulnerability has been assigned a CVSS v3 Base Score of 9.8, indicating critical severity (AttackerKB).

Exploitability

The vulnerability is considered highly exploitable when processing untrusted YAML files. Multiple proof-of-concept exploits have been published, demonstrating various methods to achieve remote code execution through carefully crafted YAML payloads (GitHub Issue).

Mitigation and workarounds

The recommended mitigation is to use yaml.safe_load() or the SafeLoader loader when parsing untrusted input. These methods should be used whenever the input YAML can be modified by a malicious user. For long-term remediation, users should upgrade to PyYAML version 5.4 or later which contains the fix for this vulnerability (Red Hat Bugzilla).

Additional resources


Source: This report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-2vwr-58qv-f67xMEDIUM6.5
  • Python logoPython
  • aiortc
NoYesDec 02, 2026
GHSA-hvx6-xjcv-pww2MEDIUM6.5
  • Python logoPython
  • pika
NoYesDec 02, 2026
CVE-2026-141556MEDIUM4.7
  • Python logoPython
  • lxml-html-clean
NoYesDec 02, 2026
CVE-2026-141555MEDIUM4.7
  • Python logoPython
  • lxml-html-clean
NoYesDec 02, 2026
GHSA-xhqj-2fcc-8vf7LOW3.1
  • Python logoPython
  • ag2
NoYesDec 02, 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

Additional Wiz resources

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