Skip to content

CVE-2019-20477 Deserialization of Untrusted Data in PyYAML

CriticalCVSS 9.8 EPSS 5.1%
Published
Updated
Exploit status
No public exploit known
Technology
UbuntuDebian

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.

Upgrade path

7 packages: 6 fixed.

PackageAffectedFixed inStatus
debian/pyyaml(Debian 12) < 5.2-1 5.2-1 Fixed
debian/pyyaml(Debian 13) < 5.2-1 5.2-1 Fixed
debian/pyyaml(Debian 14) < 5.2-1 5.2-1 Fixed
pypi pyyaml(PyPI) = 5.1; = 5.1.1; = 5.1.2; = 5.2b1 +2 more 5.2, 5.2b1 Fixed
pyyaml >= 5.1, <= 5.1.2 after 5.1.2 Fixed
ubuntu/pyyaml(Ubuntu 20.04) < 5.3-1ubuntu2; = 5.1.2-1; = 5.1.2-1build1; = 5.3-1ubuntu1 5.3-1ubuntu2 Fixed
fedoraproject fedora = 30; = 31 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi pyyaml(PyPI) >= 5.1, < 5.2 5.2
pypi pyyaml(PyPI) = 5.1 No fix listed
pypi pyyaml(PyPI) = 5.1.1 No fix listed
pypi pyyaml(PyPI) = 5.1.2 No fix listed
pypi pyyaml(PyPI) = 5.2b1 No fix listed
pypi pyyaml(PyPI) >= 5.1, < 5.2b1 5.2b1
debian/pyyaml(Debian:12) < 5.2-1 5.2-1
debian/pyyaml(Debian:13) < 5.2-1 5.2-1
debian/pyyaml(Debian:14) < 5.2-1 5.2-1
pyyaml >= 5.1, <= 5.1.2 No fix listed
fedoraproject fedora = 30 No fix listed
fedoraproject fedora = 31 No fix listed
ubuntu/pyyaml(Ubuntu:20.04) < 5.3-1ubuntu2 5.3-1ubuntu2
ubuntu/pyyaml(Ubuntu:20.04) = 5.1.2-1 No fix listed
ubuntu/pyyaml(Ubuntu:20.04) = 5.1.2-1build1 No fix listed
ubuntu/pyyaml(Ubuntu:20.04) = 5.3-1ubuntu1 No fix listed

References