Advisory

GHSA-7c4h-w765-6pwg

Also known as: CVE-2018-1000167, PYSEC-2018-75

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:

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-05-14 03:22 UTC
Modified
2024-10-28 14:53 UTC

Affected packages and fixes

suricata-update

PyPI · All systems

Affected

  • introduced 0, fixed 1.0.0b1 (ecosystem)

Fixed versions

1.0.0b1

Fix

  • Fixed version 1.0.0b1
    pip install --upgrade suricata-update==1.0.0b1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences