Advisory

GHSA-3pqx-4fqf-j49f

Also known as: CVE-2019-20477, PYSEC-2020-176

Summary

Deserialization of Untrusted Data in PyYAML

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2021-04-20 16:40 UTC
Modified
2024-10-25 21:23 UTC

Affected packages and fixes

pyyaml

PyPI · All systems

Affected

  • introduced 5.1, fixed 5.2 (ecosystem)

Fixed versions

5.2

Fix

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

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