CVE-2019-20477
No exploitation reported by the sources we read.
- Published2020-02-19
- Fixed in5.2 · 5.2b1
- WeaknessCWE-502
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
PyYAML 5.1 through 5.1.2 has insufficient restrictions on the load and load_all functions because of a class deserialization issue, e.g., Popen is a class in the subprocess module. NOTE: this issue exists because of an incomplete fix for CVE-2017-18342.
Timeline
dates in UTC- 2020-02-1904:15CVE publishedNVD
Versions per branch
OSV · NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 5.x | ≥ 5.1, < 5.2 | 5.2 | OSV |
| 5.x | ≥ 5.1, < 5.2b1 | 5.2b1 | OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 5.1 | ≥ 5.1, ≤ 5.1.2 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 30.x | = 30 | no fix published | NVD |
| 31.x | = 31 | no fix published | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- babelRocky Linux:8all versions · fixed in 0:2.7.0-10.module+el8.4.0+570+c2eaf144
- babelRed Hat:enterprise_linux:8::appstreamall versions · fixed in 0:2.7.0-10.module+el8.2.0+5234+f98739b6and 1 other package
- CythonRocky Linux:8all versions · fixed in 0:0.29.14-4.module+el8.4.0+570+c2eaf144
- CythonRed Hat:enterprise_linux:8::appstreamall versions · fixed in 0:0.29.14-4.module+el8.2.0+5234+f98739b6and 3 other packages
- mod_wsgiRocky Linux:8all versions · fixed in 0:4.6.8-3.module+el8.4.0+570+c2eaf144
- mod_wsgiRed Hat:enterprise_linux:8::appstreamall versions · fixed in 0:4.6.8-3.module+el8.2.0+5234+f98739b6and 1 other package
- numpyRocky Linux:8all versions · fixed in 0:1.17.3-5.module+el8.4.0+570+c2eaf144
- python-asn1cryptoRocky Linux:8all versions · fixed in 0:1.2.0-3.module+el8.4.0+570+c2eaf144
63 more package ranges on OSV.dev
Vendor advisories
PyYAML: command execution through python/object/apply constructor in FullLoader
PyYAML.src as a component of Red Hat Enterprise Linux 6 · PyYAML.src as a component of Red Hat OpenStack Platform 10 (Newton) · PyYAML.src as a component of Red Hat OpenStack Platform 13 (Queens)
Red Hat Security Advisory: Red Hat Quay v3.4.0 security update
Red Hat Security Advisory: python38:3.8 security, bug fix, and enhancement update
Fix
- Update pyyaml to 5.2 · 5.2b1
- Vendor fix Red Hat Product Security RHSA-2021:0420 · 11 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2020:4641 · 221 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- Workaround from the vendor Red Hat Product Security RHSA-2021:0420 · 11 productsUse `yaml.safe_load` or the SafeLoader loader when you parse untrusted input.
- No fix planned, says the vendor Red Hat Product Security CVE-2019-20477 · 1 productOut of support scope
- No fix planned, says the vendor Red Hat Product Security CVE-2019-20477 · 2 productsWill not fix
Advisories and patches
- github.comRelease Notes
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-08
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVSS 3.19.8read 2026-10-23
- NVDCVSS 2.07.5read 2026-10-23
- NVDweakness (CWE)CWE-502read 2026-10-23
- FIRST EPSSEPSS score5.1 %2026-11-08
- OSVaffected packages—
- GitHub AdvisoriesadvisoryCRITICAL2021-04-08
Identifiers
- EUVD-2020-0159same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-3pqx-4fqf-j49fsame flawGitHub Advisory Database · CC-BY-4.0
- PYSEC-2020-176same flawPyPA Advisory Database · CC-BY-4.0
- ALSA-2020:4641advisory covering several CVEsAlmaLinux · MIT
- RHSA-2020:4641advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2020:4641advisory covering several CVEsRocky Linux · BSD-3-Clause
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Published
- 2020-02-19
- Last Modified
- 2026-06-17
- NVD status
- Modified
- GitHub Advisory
- GHSA-3pqx-4fqf-j49f
Frequently asked questions
What is CVE-2019-20477?
Is CVE-2019-20477 actively exploited?
What is the CVSS score for CVE-2019-20477?
Running pyyaml? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-3pqx-4fqf-j49f
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0