CVE-2026-21870CWE-193

The BACnet Protocol Stack library has an Off-by-one Stack-based Buffer Overflow in tokenizer_string

Medium · published February 13, 2026

CVSS v3.1
5.5
EPSS
0%
Percentile
19.1
In the wild
Unconfirmed
What it is

BACnet Protocol Stack library provides a BACnet application layer, network layer and media access (MAC) layer communications services. In 1.4.2, 1.5.0.rc2, and earlier, an off-by-one stack-based buffer overflow in the ubasic interpreter causes a crash (SIGABRT) when processing string literals longer than the buffer limit. The tokenizer_string function in src/bacnet/basic/program/ubasic/tokenizer.c incorrectly handles null termination for maximum-length strings. It writes a null byte to dest[40] when the buffer size is only 40 (indices 0-39), triggering a stack overflow.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00278 · 19.1th percentile
Weakness
CWE-193 · Off-by-one Error
Published
2026-02-13T17:58Z
EPSS history
Timeline
  • 13 FEB 17:58Z
    The BACnet Protocol Stack library has an Off-by-one Stack-based Buffer Overflow in tokenizer_string
    cvelistv5