PYSEC-2021-142

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/pyyaml/PYSEC-2021-142.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2021-142
Aliases
Published
2021-02-09T21:15:00Z
Modified
2023-11-08T04:02:26.414885Z
Summary
[none]
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.

References

Affected packages

PyPI / pyyaml

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.4

Affected versions

3.*

3.01
3.02
3.03
3.04
3.05
3.06
3.07
3.08
3.09
3.10
3.11
3.12
3.13b1
3.13rc1
3.13

4.*

4.2b1
4.2b2
4.2b4

5.*

5.1b1
5.1b3
5.1b5
5.1b7
5.1
5.1.1
5.1.2
5.2b1
5.2
5.3b1
5.3
5.3.1
5.4b1
5.4b2