GHSA-7c4h-w765-6pwg

Suggest an improvement
Source
https://github.com/advisories/GHSA-7c4h-w765-6pwg
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-7c4h-w765-6pwg/GHSA-7c4h-w765-6pwg.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-7c4h-w765-6pwg
Aliases
Published
2022-05-14T03:22:02Z
Modified
2024-10-28T15:05:40.443297Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
  • 8.6 (High) CVSS_V4 - 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 CVSS Calculator
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:

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.

Database specific
{
    "nvd_published_at": "2018-04-18T19:29:00Z",
    "cwe_ids": [
        "CWE-502"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2024-02-23T20:56:20Z"
}
References

Affected packages

PyPI / suricata-update

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.0.0b1

Affected versions

1.*

1.0.0a1

Database specific

{
    "last_known_affected_version_range": "<= 1.0.0a1"
}