---
id: CVE-2026-56790
title: CANBoat - Off-by-One Global Buffer Overflow in searchForPgn()
summary: >-
  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-200…
severity: high
cvss: 7.3
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:H'
cvssSource: cna
cwe:
  - CWE-193
vendor: canboat
product: canboat
affected:
  - canboat <= 6.22
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-06-25T21:36:05.015469Z'
exploitAvailable: true
published: '2026-06-25'
updated: '2026-11-08'
sourceUpdated: '2026-11-08T14:06:28.433Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-56790'
references:
  - url: 'https://github.com/canboat/canboat/issues/644'
    label: Researcher Disclosure
  - url: 'https://github.com/canboat/canboat/pull/649'
    label: Pull Request
  - url: >-
      https://github.com/canboat/canboat/commit/a5a22b74b9ac5688019cba62669df08562cebd6f
    label: Patch Commit
  - url: >-
      https://www.vulncheck.com/advisories/canboat-off-by-one-global-buffer-overflow-in-searchforpgn
tags:
  - cve.org
  - exploit-available
epss: 0.00309
epssPercentile: 0.23889
ingestedAt: '2026-11-08T14:51:22.328Z'
---

## Overview

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.

## Affected

- `canboat <= 6.22`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
