ADVISORIES

GitHub Advisory Database

GHSA-7c4h-w765-6pwg

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.

Affected packages

EcosystemPackageAffected versions
PyPIsuricata-update
All versions before 1.0.0b1 (fixed in 1.0.0b1)

References