GHSA-rprw-h62v-c2w7

    Dashboard / Vulnerabilities / GHSA-rprw-h62v-c2w7

    GHSA-rprw-h62v-c2w7

    Published: 4 Jan 2019Last Modified: 1 Jul 2026

    Summary: PyYAML insecurely deserializes YAML strings leading to arbitrary code execution

    Details: In PyYAML before 5.1, the `yaml.load()` API could execute arbitrary code. In other words, `yaml.safe_load` is not used. This was intended to be fixed in 4.1, but due to [breaking changes](https://github.com/yaml/pyyaml/issues/192#issuecomment-401491470), 4.1 was yanked and 5.1 [contains](https://github.com/yaml/pyyaml/issues/207#issuecomment-472520007) the patch for CVE-2017-18342.

    Affected packages

    Package

    Name: pyyaml

    Purl: pkg:pypi/pyyaml

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -5.1

    Affected versions

    3.01

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High