
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
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).
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).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."