PT-2020-2760 · Pyyaml+7 · Pyyaml+7
Published
2020-03-24
·
Updated
2025-07-31
·
CVE-2020-1747
CVSS v3.1
10
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
PyYAML versions prior to 5.3.1
Description
A flaw in the PyYAML library allows for arbitrary code execution when processing untrusted YAML files through the
full load method or with the FullLoader loader. This issue can be exploited by an attacker to execute arbitrary code on the system by abusing the python/object/new constructor. The vulnerability exists due to insufficient input validation in the full load method and FullLoader loader.Recommendations
For versions prior to 5.3.1, update to version 5.3.1 or later to resolve the issue. As a temporary workaround, consider avoiding the use of the
full load method and FullLoader loader when processing untrusted YAML files. Restrict access to untrusted input to minimize the risk of exploitation.Exploit
Fix
Deserialization of Untrusted Data
RCE
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Alt Linux
Almalinux
Astra Linux
Centos
Pyyaml
Red Hat
Rocky Linux
Suse