GHSA-6757-jp84-gxfx

Suggest an improvement
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
JSON Data
https://api.osv.dev/v1/vulns/GHSA-6757-jp84-gxfx
Aliases
Published
2021-04-20T16:14:24Z
Modified
2024-02-14T05:33:05.900311Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Improper Input Validation in PyYAML
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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
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"
    ]
}