GHSA-7c4h-w765-6pwg

    Dashboard / Vulnerabilities / GHSA-7c4h-w765-6pwg

    GHSA-7c4h-w765-6pwg

    Published: 14 May 2022Last Modified: 28 Oct 2024

    Summary: OISF suricata-update unsafely deserializes YAML data

    Details: Suricata-Update uses the insecure `yaml.load()` function. Code will be executed if the yaml-file contains lines like: ```yaml hello: !!python/object/apply:os.system ['ls -l > /tmp/output'] ``` The vulnerable function can be triggered by "suricata-update list-sources". The locally stored index.yaml will be loaded in this function and the malicious code gets executed.

    Affected packages

    Package

    Name: suricata-update

    Purl: pkg:pypi/suricata-update

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -1.0.0b1

    Affected versions

    1.0.0a1

    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