Vulnerabilities in pkg:pypi/suricata-update

PACKAGE
Advisory Identifier: GHSA-7c4h-w765-6pwg
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/suricata-update

1 Known Advisory Record(s)

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

CVE Identifier CVE-2018-1000167
GHSA Identifier GHSA-7c4h-w765-6pwg
Severity HIGH
CVSS v3.1 Base Score 7.8
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Suricata update
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

suricata-update fixed: 1.0.0b1
pip install suricata-update>=1.0.0b1
Verify Direct and Transitive Dependencies

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

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.

CVE-2018-1000167 Affected Suricata update Versions

1 component(s)
Fixed Versions:
1.0.0b1
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?
CVE-2018-1000167 is a security vulnerability in Suricata update involving OISF suricata-update unsafely deserializes YAML data under CWE-502: Deserialization of Untrusted Data.
Which Suricata update versions are affected?
Affected versions include releases prior to 1.0.0b1 across affected packages: suricata-update.
What version fixes CVE-2018-1000167?
Upgrading to 1.0.0b1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is suricata-update affected?
Yes, suricata-update is affected in releases prior to 1.0.0b1. Upgrade your dependency to 1.0.0b1 or later.
What is the CVSS score of CVE-2018-1000167?
CVE-2018-1000167 has a CVSS v3.1 base score of 7.8 (HIGH) with vector string CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2018-1000167?
CVE-2018-1000167 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check PyPI dependencies for CVE-2018-1000167?
Run the dependency tree command: 'pip show suricata-update'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}