GitHub Advisoryadvisory · PyPI

GHSA-7c4h-w765-6pwg OISF suricata-update unsafely deserializes YAML data

HIGH Published 2022-05-14 Modified 2024-10-28 Official page ↗
Aliases
CVE-2018-1000167
Ecosystem
PyPI
Packages
suricata-update
Severity
High
CVSS vector
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weaknesses
CWE-502
Reviewed
2024-02-23

Affected packages

• PyPI suricata-update: < 1.0.0b1 → fixed in 1.0.0b1

Description

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.

Related

Alias · CVE (1)

  • CVE-2018-1000167 OISF suricata-update version 1.0.0a1 contains an Insecure Deserialization vulnerability in the insecure yaml.load-Function as used in the… vulnerability

Weakness · CWE (1)

  • CWE-502 Deserialization of Untrusted Data weakness

References