Advisory

GHSA-8q59-q68h-6hv4

Also known as: CVE-2020-14343, PYSEC-2021-142

Summary

Improper Input Validation in PyYAML

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2021-03-25 21:26 UTC
Modified
2026-02-04 03:33 UTC

Affected packages and fixes

pyyaml

PyPI · All systems

Affected

  • introduced 0, fixed 5.4 (ecosystem)

Fixed versions

5.4

Fix

  • Fixed version 5.4
    pip install --upgrade pyyaml==5.4

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences