GHSA-6757-jp84-gxfx

Source
https://github.com/advisories/GHSA-6757-jp84-gxfx
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/04/GHSA-6757-jp84-gxfx/GHSA-6757-jp84-gxfx.json
Aliases
Published
2021-04-20T16:14:24Z
Modified
2024-02-16T08:20:04.342586Z
Details

A vulnerability was discovered in the PyYAML library in versions before 5.3.1, 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. An attacker could use this flaw to execute arbitrary code on the system by abusing the python/object/new constructor.

References

Affected packages

PyPI / pyyaml

Package

Name
pyyaml

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0The exact introduced commit is unknown
Fixed
5.3.1

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

Ecosystem specific

{
    "affected_functions": [
        "yaml.load",
        "yaml.full_load",
        "yaml.FullLoader"
    ]
}