GHSA-7c4h-w765-6pwg
Dashboard / Vulnerabilities / GHSA-7c4h-w765-6pwg
GHSA-7c4h-w765-6pwg
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.
References: https://nvd.nist.gov/vuln/detail/CVE-2018-1000167, https://github.com/OISF/suricata-update/pull/23, https://github.com/OISF/suricata-update/commit/76270e73128ca1299b4e33e7e2a74ac3d963a97a, https://github.com/OISF/suricata-update, https://github.com/pypa/advisory-database/tree/main/vulns/suricata-update/PYSEC-2018-75.yaml, https://redmine.openinfosecfoundation.org/issues/2359, https://tech.feedyourhead.at/content/remote-code-execution-in-suricata-update
Affected packages
Package
Name: suricata-update
Purl: pkg:pypi/suricata-update
Affected ranges
Type: ECOSYSTEM
Events:
