This article was published on November 17, 2026.
Preface: The major purpose of a BACnet Stack is to provide a software implementation (library or source code) of the BACnet Protocol so that embedded devices, controllers, and applications can natively communicate over Building Automation and Control Networks.
Background: The following details explain why the design flaw occurred. Refer to the accompanying infographic while reading.
Root Cause Analysis
• COBS Decoding Flaw: When decoding Consistent Overhead Byte Stuffing (COBS) frames in the BACnet MS/TP receive path, the function performs decoding in-place within a fixed buffer.
• Buffer Size Mismatch: The caller passes the entire input buffer size (max_out_len) rather than the remaining available space in the buffer.
• Trigger Mechanism: When processing a long, valid COBS payload—specifically when appending an implicit 0x00 byte for non-full 254-byte blocks—the write index exceeds the actual remaining buffer boundary, causing memory corruption.
Attack Vector & Operational Impact
• Adjacent Network Access: Exploitation requires access to the local adjacent network (such as physical access to the RS-485 twisted-pair bus or a compromised device on the same OT segment) with no privileges or user interaction required.
• Targeted Components: Primarily affects field-level OT devices running BACnet MS/TP, including IP-to-RS-485 routers, VAV boxes, smart meters, lighting controllers, and embedded microcontrollers (e.g., STM32, ESP32).
• Potential Consequences: Successful exploitation can cause device crashes (Denial of Service), corrupted operational data, or arbitrary code execution on building automation hardware.
Vulnerability details: BACnet Stack is a BACnet open source protocol stack C library for embedded systems. From versions 1.4.0 to before 1.4.6, 1.5.0 to before 1.5.1, and 1.6.0 to before 1.6.1, the BACnet MS/TP receive path decodes COBS frames into an output pointer inside the same fixed input buffer, but passes the full input-buffer size as the decode capacity. A long valid COBS payload can therefore write past the end of the actual remaining buffer.
Remediation:
•Patch Immediately: Upgrade the BACnet Stack library to 1.4.6, 1.5.1, 1.6.1, or 1.7.0.
•Enforce OT Segmentation: Restrict physical access to RS-485 wiring and isolate building management networks from enterprise IT networks using firewalls and edge gateways.
Official announcement: Please refer to the link for details – https://www.tenable.com/cve/CVE-2026-82414