GitHub Advisoryadvisory · PyPI
GHSA-7c4h-w765-6pwg OISF suricata-update unsafely deserializes YAML data
HIGH
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
- https://nvd.nist.gov/vuln/detail/CVE-2018-1000167 advisory
- https://github.com/OISF/suricata-update/pull/23 web
- https://github.com/OISF/suricata-update/commit/76270e73128ca1299b4e33e7e2a74ac3d963a97a web
- https://github.com/OISF/suricata-update package
- https://github.com/pypa/advisory-database/tree/main/vulns/suricata-update/PYSEC-2018-75.yaml web
- https://redmine.openinfosecfoundation.org/issues/2359 web
- https://tech.feedyourhead.at/content/remote-code-execution-in-suricata-update web