CVE-2020-1747
CRITICAL9.8EPSS 1.8%Improper Input Validation in PyYAML
Published: 4/20/2021Modified: 5/4/2026
Description
A vulnerability was discovered in the PyYAML library in versions before 5.3.1, where it is susceptible to arbitrary code execution when it processes untrusted YAML files through the full_load method or with the FullLoader loader. Applications that use the library to process untrusted input may be vulnerable to this flaw. An attacker could use this flaw to execute arbitrary code on the system by abusing the python/object/new constructor.
Affected packages (4)
- Alpine/py3-yamlfrom 0, < 5.3.1-r0
- Debian/pyyamlfrom 0, < 5.3-2
- PyPI/pyyaml>= 5.1b7, < 5.3.1
- PyPI/pyyaml>= 5.1, < 5.3.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
References (24)
- ADVISORYhttps://github.com/advisories/GHSA-6757-jp84-gxfx
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2020-1747
- ADVISORYhttps://security.alpinelinux.org/vuln/CVE-2020-1747
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2020-1747
- PATCHhttps://github.com/yaml/pyyaml
- WEBhttp://lists.opensuse.org/opensuse-security-announce/2020-04/msg00017.html
- WEBhttp://lists.opensuse.org/opensuse-security-announce/2020-05/msg00017.html
- WEBhttps://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1747
- WEBhttps://github.com/github/advisory-database/pull/4942
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/pyyaml/PYSEC-2020-96.yaml
- WEBhttps://github.com/yaml/pyyaml/commit/0cedb2a0697b2bc49e4f3841b8d4590b6b15657e
- WEBhttps://github.com/yaml/pyyaml/commit/5080ba513377b6355a0502104846ee804656f1e0
- WEBhttps://github.com/yaml/pyyaml/pull/386
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/7PPAS6C4SZRDQLR7C22A5U3QOLXY33JX
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/7PPAS6C4SZRDQLR7C22A5U3QOLXY33JX/
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/K5HEPD7LEVDPCITY5IMDYWXUMX37VFMY
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/K5HEPD7LEVDPCITY5IMDYWXUMX37VFMY/
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/MMQXSZXNJT6ERABJZAAICI3DQSQLCP3D
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/MMQXSZXNJT6ERABJZAAICI3DQSQLCP3D/
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/WORRFHPQVAFKKXXWLSSW6XKUYLWM6CSH
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/WORRFHPQVAFKKXXWLSSW6XKUYLWM6CSH/
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/ZBJA3SGNJKCAYPSHOHWY3KBCWNM5NYK2
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/ZBJA3SGNJKCAYPSHOHWY3KBCWNM5NYK2/
- WEBhttps://www.oracle.com/security-alerts/cpujul2022.html