{"id":"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:\n\n```yaml\nhello: !!python/object/apply:os.system ['ls -l \u003e /tmp/output']\n```\n\nThe 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.","aliases":["CVE-2018-1000167","PYSEC-2018-75"],"modified":"2024-10-28T15:05:40.443297Z","published":"2022-05-14T03:22:02Z","database_specific":{"github_reviewed_at":"2024-02-23T20:56:20Z","nvd_published_at":"2018-04-18T19:29:00Z","cwe_ids":["CWE-502"],"severity":"HIGH","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-1000167"},{"type":"WEB","url":"https://github.com/OISF/suricata-update/pull/23"},{"type":"WEB","url":"https://github.com/OISF/suricata-update/commit/76270e73128ca1299b4e33e7e2a74ac3d963a97a"},{"type":"PACKAGE","url":"https://github.com/OISF/suricata-update"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/suricata-update/PYSEC-2018-75.yaml"},{"type":"WEB","url":"https://redmine.openinfosecfoundation.org/issues/2359"},{"type":"WEB","url":"https://tech.feedyourhead.at/content/remote-code-execution-in-suricata-update"}],"affected":[{"package":{"name":"suricata-update","ecosystem":"PyPI","purl":"pkg:pypi/suricata-update"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.0b1"}]}],"versions":["1.0.0a1"],"database_specific":{"last_known_affected_version_range":"\u003c= 1.0.0a1","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-7c4h-w765-6pwg/GHSA-7c4h-w765-6pwg.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}