CriticalGHSA-3pqx-4fqf-j49fCVE-2019-20477PYSEC-2020-176
Deserialization of Untrusted Data in PyYAML
Published 20 Apr 2021 · Updated 25 Oct 2024
Is your project on an affected pyyaml?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
pyyamlPyPI
- Affected
- >=5.1 <5.2
- Fixed in
- 5.2
Update to the fixed version for your release line, for example:
pip install 'pyyaml>=5.2'Details
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.
Is GHSA-3pqx-4fqf-j49f in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected pyyaml, and gives you the command that fixes it.
More advisories for pyyaml
- CriticalCVE-2020-1747Improper Input Validation in PyYAML · 20 Apr 2021
- CriticalCVE-2020-14343Improper Input Validation in PyYAML · 25 Mar 2021
- CriticalCVE-2017-18342PyYAML insecurely deserializes YAML strings leading to arbitrary code execution · 4 Jan 2019
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2019-20477
- Advisorygithub.com/advisories/GHSA-3pqx-4fqf-j49f
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/pyyaml/PYSEC-2020-176.yaml
- Packagegithub.com/yaml/pyyaml
- Linkgithub.com/yaml/pyyaml/blob/master/CHANGES
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/33VBUY73AA6CTTYL3LRWHNFDULV7PFPN
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/52N5XS73Z5S4ZN7I7R56ICCPCTKCUV4H
- Linkwww.exploit-db.com/download/47655
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.