Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain access to MS/TP RS-485 bus segment
-
DeliveryCraft long valid COBS MS/TP frame
-
ExploitTrigger undersized-capacity COBS decode
-
ExecutionWrite past remaining input buffer
-
ImpactCorrupt adjacent memory, causing DoS or potential corruption
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The target must run a BACnet MS/TP datalink deployment with COBS frame types enabled and use the affected receive path (vulnerable versions 1.4.0-1.4.5, 1.5.0, and 1.6.0). The attacker needs the ability to place a crafted BACnet MS/TP COBS frame onto the RS-485 bus the device listens on - consistent with AV:A (adjacent), not internet-facing. MS/TP itself carries no authentication (PR:N), and no user interaction is required (UI:N). Limiting factors: exploitation is bounded to attackers with logical/physical access to the local MS/TP bus segment, and only deployments that enable COBS frame handling are reachable; devices on non-COBS or non-MS/TP datalinks are not affected. |
| Impact | The CVSS 3.1 vector (AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, base 8.8) describes an unauthenticated, low-complexity memory-corruption flaw, but the adjacent attack vector (AV:A) is decisive: BACnet MS/TP runs over an RS-485 serial bus, so exploitation requires access to that local bus segment rather than open internet reachability - this is not a remotely internet-exploitable bug despite the high score. No EPSS probability was provided in the input, and the vulnerability is not listed in CISA KEV, so there is no signal of active or widespread exploitation. The only proof-of-concept is a local source-backed harness that triggers an AddressSanitizer heap out-of-bounds write against the project's own COBS code; it does not send real MS/TP traffic to a device and explicitly does not demonstrate remote code execution, so the confirmed impact today is memory corruption/denial of service rather than proven RCE. The vuln.today decision label is 'this_week', consistent with a serious memory-safety defect that is gated by bus access and a non-default-dependent feature. Net: a genuine, patch-worthy out-of-bounds write, but real-world urgency is bounded by the need for adjacent MS/TP bus access and COBS frame handling, not a high-CVSS-but-trivial-internet-exploit. |
| Exploit ScenarioDerived | An attacker with access to the RS-485 MS/TP bus segment delivers a crafted BACnet MS/TP frame carrying a long valid COBS payload to a device running a vulnerable BACnet Stack build with COBS frame handling in its receive path. The decode routine writes past the end of the remaining input buffer, producing a sanitizer-confirmed out-of-bounds write; a public PoC reference exists as a local harness proving this memory-corruption primitive, but it is not verified as working remote exploit code and does not demonstrate code execution. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
An out-of-bounds write in the BACnet MS/TP COBS receive path of the bacnet-stack C library lets an attacker who can place a crafted frame on the local RS-485 bus corrupt heap memory in listening devices. The flaw affects versions 1.4.0 through 1.4.5, 1.5.0, and 1.6.0, and affects only MS/TP datalink deployments with COBS frame types enabled; devices on other datalinks are not reachable. The supplied advisory includes a public proof-of-concept harness that produces a sanitizer-confirmed heap-buffer-overflow locally; it is not verified as working exploit code against real hardware and does not demonstrate code execution. There is no CISA KEV entry, so there is no confirmation of active exploitation, and the adjacent attack vector (AV:A, CVSS 8.8) means an attacker needs logical or physical access to the MS/TP bus segment rather than internet reachability.
RemediationAI
Vendor-released patch: upgrade to 1.4.6, 1.5.1, 1.6.1, or 1.7.0; the fix in PR #1425 (https://github.com/bacnet-stack/bacnet-stack/pull/1425) changes the cobs_frame_decode() call to pass InputBufferSize - (mstp_port->Index + 1) as the capacity and adds a unit test that places 0xA5 guard bytes after a tight receive buffer to verify no overflow occurs. Because the advisory's package metadata lists 1.5.2 rather than 1.5.1 for the 1.5 branch, confirm the released 1.5.x tag against the advisory before rolling out. In the absence of patching, the exposures described in the advisory are limited to MS/TP deployments with COBS frame types enabled, so restricting logical and physical access to the RS-485 bus segment removes the adjacent attack path, at the cost of constraining legitimate MS/TP devices on that segment; long valid COBS payloads are the trigger described in the advisory, but no filtered-length workaround is specified by the vendor, and deployments that can move off the MS/TP COBS receive path entirely fall outside the affected context.
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
BACnet MS/TP is a master-slave/token-passing datalink that runs over RS-485 serial segments, and the bacnet-stack library frames its payloads using COBS (Consistent Overhead Byte Stuffing) so that zero bytes are eliminated on the wire. In src/bacnet/datalink/mstp.c, the function MSTP_Receive_Frame_FSM calls cobs_frame_decode() with an output pointer of &InputBuffer[Index + 1] - that is, an address inside the same fixed input buffer - while passing the full InputBufferSize as the decode capacity instead of InputBufferSize - (Index + 1). The pre-existing validation only checks that (Index + 1) < InputBufferSize, so it never confirms that the decoded payload fits in the space remaining after the shifted output pointer. A long but valid COBS payload therefore makes cobs_decode() write past the end of the remaining buffer, the CWE-787 out-of-bounds write class. The advisory's harness sets an input buffer of 1507 bytes, an encoded length of 1009, and a remaining capacity of 498 while 1507 is passed as capacity, yielding AddressSanitizer 'heap-buffer-overflow' reports in cobs_decode(). The advisory states that the PoC proves only the parser/datalink decode primitive locally and does not prove RCE or involve traffic to a real device.
Know when Bacnet Stack 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
AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
MS/TP is a shared RS-485 bus so AV:A; frames need no authentication (PR:N) or interaction (UI:N), and the out-of-bounds write yields memory corruption with potential full C/I/A impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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. This issue has been patched in versions 1.4.6, 1.5.1, 1.6.1, and 1.7.0.
Technical POC Analysis
CWE-787 out-of-bounds write in the BACnet MS/TP receive path.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A high-severity memory corruption vulnerability in the bacnet-stack C library (versions 1.4.0-1.4.5, 1.5.0, and 1.6.0) can be triggered by a crafted frame on the local RS-485 bus, potentially causing heap corruption in listening building automation devices. Only MS/TP datalink deployments with COBS frame types are affected; an attacker requires logical or physical access to the bus segment, so this is not remotely exploitable from the internet. Leadership should prioritize patching affected BACnet devices and restricting physical/logical access to MS/TP bus segments, as successful exploitation could disrupt building controls and require device replacement or recovery.
No vendor-released patch identified at time of analysis. Interim mitigations include restricting physical and logical access to MS/TP bus segments, segmenting building automation networks, monitoring for anomalous COBS frames, and disabling COBS frame types where operationally possible; a public PoC reference exists; it is not verified as working exploit code. No public exploit identified at time of analysis.
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.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
More in Bacnet Stack
View allUnauthenticated remote attackers can crash BACnet Stack prior to versions 1.5.0rc4 and 1.4.3rc2 by sending a malformed W
BACnet Protocol Stack library provides a BACnet application layer, network layer and media access (MAC) layer communicat
BACnet Stack is a BACnet open source protocol stack C library for embedded systems. [CVSS 7.5 HIGH]
The BACnet Protocol Stack library versions 1.4.2 and earlier contain an off-by-one buffer overflow in the ubasic interpr
Out-of-bounds writes in the BACnet/SC Address Resolution ACK URL parser of the BACnet Stack C library let an authenticat
Heap out-of-bounds read in the RAMFS-backed FILE object of BACnet Stack (bacnet-stack) 1.5.0 and earlier allows an unaut
A single malformed BACnet/IP WriteProperty request can lock the official bacnet-stack demo server in a non-terminating r
Remote attackers can crash BACnet Stack-powered embedded devices (versions prior to 1.4.3) by sending malformed ReadProp
Remote denial of service in BACnet Stack library versions before 1.4.3 allows unauthenticated attackers to crash embedde
Out-of-bounds read in BACnet Stack library versions before 1.4.3 allows unauthenticated remote attackers to crash embedd
Remote unauthenticated denial of service in BACnet Stack before 1.6.1 allows one BACnet/IP WriteProperty request to forc
A remote, unauthenticated attacker can drive a global out-of-bounds write in the official router-ipv6 forwarding applica
EUVD-2026-125693
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB