Description
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.
Severity (CVSS)
| Base score | 7 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| Vector | 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 |
| Provided by | CNA |
Weaknesses
- CWE-193 — Off-by-one Error
Affected products
| Vendor | Product | Versions |
|---|---|---|
| canboat | canboat | 0 to <=6.22; a5a22b74b9ac5688019cba62669df08562cebd6f |
References
- https://github.com/canboat/canboat/issues/644 (technical-description exploit)
- https://github.com/canboat/canboat/pull/649 (issue-tracking)
- https://github.com/canboat/canboat/commit/a5a22b74b9ac5688019cba62669df08562cebd6f (patch)
- https://www.vulncheck.com/advisories/canboat-off-by-one-global-buffer-overflow-in-searchforpgn (third-party-advisory)
Generated from the official CVE List on 26 Jun 2026 07:05 UTC.