Vulnerabilities in pkg:pypi/suricata-update
PACKAGECVE-2018-1000167 is a HIGH (CVSS 7.8) oisf suricata-update unsafely deserializes yaml vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Suricata update libraries in the PyPI ecosystem. The issue involves oisf suricata-update unsafely deserializes yaml data. Remediation is available by upgrading affected packages to version 1.0.0b1.
pkg:pypi/suricata-update
Vulnerability advisories affecting package pkg:pypi/suricata-update. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-7c4h-w765-6pwg | CVE-2018-1000167 | HIGH | OISF suricata-update unsafely deserializes YAML data |
CVE-2018-1000167 at a Glance
Security Impact
CVSS: 7.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).
How to Fix CVE-2018-1000167
To remediate this vulnerability, upgrade all affected Suricata update dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install suricata-update>=1.0.0b1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show suricata-update
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2018-1000167, inspect your installed packages using pip:
pip show suricata-update
Analyze the terminal output to locate any version of Suricata update in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.0b1), your application is affected.
Note: The pip show suricata-update command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Suricata update, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2018-1000167 Affected Suricata update Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
suricata-update
|
PyPI |
< 1.0.0b1
|
1.0.0b1
|
References
Frequently Asked Questions
What is CVE-2018-1000167?
Which Suricata update versions are affected?
What version fixes CVE-2018-1000167?
Is suricata-update affected?
What is the CVSS score of CVE-2018-1000167?
What CWE is associated with CVE-2018-1000167?
How can I check PyPI dependencies for CVE-2018-1000167?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7c4h-w765-6pwg",
"modified" : "2024-10-28T14:41:27Z",
"published" : "2022-05-14T03:22:02Z",
"aliases" : [ "CVE-2018-1000167" ],
"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 > /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.",
"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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "suricata-update"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.0b1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.0.0a1"
}
} ],
"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"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-502" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-02-23T20:56:20Z",
"nvd_published_at" : "2018-04-18T19:29:00Z"
}
}