Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain access to CAN bus or N2K-over-IP feed
-
DeliveryCraft N2K message with out-of-range PGN (e.g. 393216)
-
ExploitOperator runs analyzer over the feed
-
ExecutionsearchForPgn() reads pgnList[pgnListSize] off-by-one
-
ImpactProcess crashes, decoding denied
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Off-by-one prevention
|
| Exploitation Conditions | Exploitation requires the CANBoat analyzer to process attacker-controlled NMEA-2000 message data and the crafted message to carry a PGN value larger than every entry in the analyzer's pgnList[] table (the published PoC uses 393216; other out-of-range values such as 524287, 1000000, and 16777215 also trigger it). Delivery is via the CAN bus or an N2K-over-IP feed that the analyzer ingests. Limiting factors: per the CVSS vector this is rated local with passive user interaction (UI:P), meaning an operator must actually run the analyzer over the malicious feed rather than it being a remotely self-triggering daemon; no authentication or privileges are needed (PR:N); and the outcome is limited to crashing the analyzer process (denial of service), not code execution or data modification. Affected only on CANBoat builds at or before 6.22 lacking commit a5a22b7. |
| Impact | Signals are mostly consistent toward a moderate, availability-only risk. The published CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N, base 7.0) and the description agree the impact is a crash/DoS, with low attack complexity and no privileges required, but gated by user interaction (an operator must run the analyzer over the malicious feed). A public PoC exists and a patch is available, raising the practical priority for anyone running CANBoat to ingest untrusted N2K traffic. However, several signals temper the urgency: it is not in CISA KEV and shows no evidence of active exploitation, and the impact is denial of service of a parsing tool rather than code execution or data compromise. Note a discrepancy: the CVSS vector uses AV:L (local), yet the description states delivery 'over CAN bus or N2K-over-IP,' which implies adjacent or network delivery - the AV:L rating likely reflects the analyzer consuming a piped/streamed input file rather than listening on a socket; verify the actual deployment (live N2K listener vs. offline log analysis) before scoring. The VI:H/VA:H integrity/availability-high choices are also generous for what the description characterizes purely as a crash. No EPSS score was provided. |
| Exploit ScenarioDerived | An attacker with access to the marine CAN bus or to an N2K-over-IP feed injects a single NMEA-2000 frame carrying an out-of-range PGN (e.g., the public PoC value 393216, larger than any entry in pgnList[]). When an operator runs the CANBoat analyzer against that traffic, searchForPgn() reads one element past the PGN table and the process crashes, denying decoding of subsequent navigation/instrument data. A working PoC input is published in issue #644 and the project's regression test (invalid-pgn-test). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 25, 2026
Denial of service in CANBoat (the open-source NMEA 2000/CAN bus analyzer) through version 6.22 allows attackers to crash the analyzer by delivering a crafted NMEA-2000 message containing an out-of-range PGN value. The flaw is an off-by-one global buffer overflow in the searchForPgn() binary-search routine in analyzer/pgn.c, where an out-of-range PGN causes a one-element read past the end of the pgnList[] table. Publicly available exploit code exists (FuzzingLabs PoC value 393216 via issue #644), and a vendor patch is available; there is no public exploit identified as actively exploited.
RemediationAI
Upstream fix available (PR/commit); a released patched version is not independently confirmed from the input - update CANBoat to a build that includes commit a5a22b7 (PR #649), which is past the 6.22 release line. If you cannot rebuild immediately, the practical compensating control is to avoid feeding the analyzer untrusted or unvalidated N2K data: restrict the analyzer to known-good logs or trusted N2K sources, and isolate CANBoat hosts from any network path that could deliver attacker-crafted N2K-over-IP traffic (e.g., segment the marine/CAN network and block external access to the N2K-over-IP listener), accepting the trade-off that this limits live monitoring of untrusted segments. Because the impact is a crash rather than code execution, automatic restart/supervision of the analyzer process can reduce downtime as a stopgap. Track the patch through the vendor advisory at https://www.vulncheck.com/advisories/canboat-off-by-one-global-buffer-overflow-in-searchforpgn and the commit URL above.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CANBoat is a toolset for decoding and encoding NMEA 2000 (N2K) marine network messages carried over CAN bus or tunneled as N2K-over-IP. Its analyzer maintains a sorted table, pgnList[], of known Parameter Group Numbers (PGNs) and resolves an incoming message's PGN via the searchForPgn() binary search in analyzer/pgn.c. The root cause is CWE-193 (off-by-one error): the search used an inclusive 'while (start <= end)' loop with 'end = mid - 1', so a PGN larger than every table entry converged to read pgnList[pgnListSize] - exactly one element beyond the array, a global buffer over-read. The fix in commit a5a22b7 (PR #649) switches to a half-open range 'while (start < end)' with 'end = mid', adds a 'mid >= pgnListSize' bounds guard, and uses overflow-safe midpoint arithmetic; the same PR also clamps an unrelated undefined 64-bit shift in fieldtype.c getMaxRange(). The affected product is identified by CPE cpe:2.3:a:canboat:canboat:*:*:*:*:*:*:*:* across all versions through 6.22.
Know when Canboat gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N
Analyzer must be run by an operator over attacker-supplied input (UI:R, AV:L, PR:N); impact is a crash only, so availability-high with no confidentiality or integrity impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
CANBoat through 6.22, fixed in commit a5a22b7, contains an off-by-one global buffer overflow in the searchForPgn() function in analyzer/pgn.c that allows remote attackers to crash the application. Attackers can deliver a crafted NMEA-2000 message with an out-of-range PGN value over CAN bus or N2K-over-IP to trigger an out-of-bounds array access and denial of service.
Executive ViewAI
CANBoat versions through 6.22 are vulnerable to denial-of-service attacks via specially crafted network messages, causing the analyzer to crash and disrupting real-time monitoring of critical maritime and vehicle CAN bus systems. Organizations relying on CANBoat for system visibility, compliance monitoring, or operational safety face interrupted visibility into live vehicle or vessel data. The vulnerability impacts any operation where continuous CAN bus monitoring is required for safety or regulatory compliance.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
EUVD-2026-39532
GHSA-p2cc-x7hq-6jvm
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB