Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach BACnet server on network
-
DeliverySend Atomic-Read-File in record access mode
-
ExploitSet oversized RecordCount field
-
ExecutionLoop writes past single fileData element
-
PersistOut-of-bounds memmove corrupts stack
-
ImpactCrash server (denial of service)
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the target to run the bacnet-stack AtomicReadFile server handler (handler_atomic_read_file) and the attacker to send an Atomic-Read-File request in FILE_RECORD_ACCESS mode against a valid file object instance (bacfile_valid_instance must pass); the crafted request supplies an oversized RecordCount that is used directly as the write loop bound against a stack structure sized for a single fileData element. Per the CVSS vector (PR:N/UI:N) no authentication or user interaction is needed, so any host able to reach the device over the BACnet transport (typically UDP/47808 on the building-automation segment) can trigger it. The practical limiting factor is network reachability: BACnet/OT devices are usually deployed on segmented, non-internet-facing networks, and the device must expose the file object and record-access read path; affected versions are <= 1.5.0. |
| Impact | The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H, base 8.2) describes a network-reachable, low-complexity, unauthenticated flaw whose dominant impact is availability (A:H) with only limited integrity (I:L) and no confidentiality impact - consistent with a stack-buffer-overflow that reliably crashes the server process. The vuln.today Decision label is 'this_week', indicating prioritized but not emergency handling. No EPSS score and no CISA KEV status are present in the input, so there is no signal of active or widespread exploitation; exploitation status is therefore 'no public exploit identified at time of analysis' in the KEV sense, though a detailed public PoC reference (ASAN and GDB reproduction in the GHSA advisory) exists and is not verified as a weaponized working exploit. The mechanism is well understood from the advisory source code evidence: an oversized RecordCount is used as a loop bound to write into a single-element stack array, so the signals are internally consistent rather than conflicting - a genuine, easily triggered remote crash. The main factor tempering real-world urgency is deployment context: BACnet building-automation stacks typically run on OT/BMS network segments rather than the open internet, which narrows the realistic attacker population even though the on-path attacker needs no credentials. Whether the I:L (stack corruption) could escalate beyond denial of service toward code execution is not demonstrated in the available evidence and should not be assumed. |
| Exploit ScenarioDerived | An attacker with access to the BACnet network segment sends a crafted Atomic-Read-File request in record access mode against a valid file object, setting an excessively large RecordCount (e.g. 1537 as shown in the advisory GDB trace). The handler loops past the single stack-allocated fileData element and passes an out-of-bounds pointer to memmove(), overflowing the stack and crashing the server; a reproducible PoC with AddressSanitizer and GDB output is published in the GHSA advisory, though it is not verified as a weaponized working exploit. Because CVSS is PR:N/UI:N, no authentication or user interaction is required. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 12, 2026
A stack-based out-of-bounds write (CWE-121) in the bacnet-stack C library through version 1.5.0 allows a remote, unauthenticated sender to corrupt the stack of any device running the AtomicReadFile server handler by sending an Atomic-Read-File request in file record access mode with an oversized RecordCount. The decode path stores the attacker-supplied count without validation, and the read loop then indexes past the single-element fileData array embedded in the stack-allocated BACNET_ATOMIC_READ_FILE_DATA structure, so the out-of-bounds pointer reaches memmove() inside bacfile_posix_read_record_data - the researcher's AddressSanitizer trace shows a 1470-byte write starting just past the 1520-byte data frame object. Assessed at CVSS 8.2 (AV:N/AC:L/PR:N/UI:N, C:N/I:L/A:H), the dominant effect is a reliable crash of the server process (availability) with limited integrity impact and no confidentiality impact; there is no CISA KEV entry and no confirmed working exploit code, though the public GHSA contains a full crash reproducer, and the flaw is fixed in 1.5.1 and 1.4.4.
RemediationAI
Vendor-released patch: upgrade to bacnet-stack 1.5.1 (or 1.4.4 for deployments on the 1.4.x line), which clamps the record loop to the real capacity of the fileData array via min(data->type.record.RecordCount, ARRAY_SIZE(data->fileData)); the fix is tracked in PR https://github.com/bacnet-stack/bacnet-stack/pull/1340 and described in advisory https://github.com/bacnet-stack/bacnet-stack/security/advisories/GHSA-v3gx-mwrp-xvh5. Because bacnet-stack is normally linked into firmware and device images, the practical route is a firmware update from each device vendor that ships the patched library - inventory devices exposing BACnet file objects and confirm the embedded stack version before assuming they are fixed, since integrating 1.4.4/1.5.1 sources into a vendor firmware is a separate step. Where updating cannot happen immediately, the compensating control that matches the confirmed exploitation path is to restrict reachability of the BACnet service: the overflow requires delivering a confirmed Atomic-Read-File request in record access mode to the handler, so filtering UDP/47808 (and any BACnet/IP or MS/TP gateway paths carrying it) to known building-automation hosts reduces exposure - at the cost of breaking legitimate multi-vendor BACnet traffic if the access list is too narrow. Reducing the exposed attack surface by disabling file objects that support record access, where the application does not need AtomicReadFile record reads, removes the trigger entirely; devices that legitimately serve file records still need the patched library. There is no vendor-published configuration switch for this defect, so network restriction and object removal are temporary exposure reducers rather than complete fixes.
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 is the ASHRAE/ANSI building-automation protocol carried over UDP (typically port 47808), and bacnet-stack is a widely embedded open-source C implementation used in controllers, gateways and BMS front-ends. The AtomicReadFile confirmed service supports two access modes - stream access (octet offsets) and record access (record offsets). In record access mode, arf_decode_service_request() parses the opening tag 1 context, decodes fileStartRecord, then decodes an application-tagged unsigned integer directly into data->type.record.RecordCount with no upper bound; the GDB trace in the advisory shows a value of 1537 (0x601) being accepted from a 40-byte APDU. handler_atomic_read_file() declares BACNET_ATOMIC_READ_FILE_DATA data on the stack, and that type holds fileData as an array with exactly one element (sizeof(data.fileData) sizeof(data.fileData[0]) 1480 bytes). bacfile_read_record_data() then loops i from 0 to RecordCount-1 and passes &data->fileData[i] plus its octetstring capacity into the per-record callback, which in the POSIX port memmoves record contents into that pointer. At i = 1 the computed address is already outside the single-element array, so the memmove writes into the adjacent stack frame slots (the ASAN report places the 1552-byte data object next to npdu_data and my_address) and into the redzone beyond. The fix in PR #1340 clamps the loop with max_records = min(data->type.record.RecordCount, ARRAY_SIZE(data->fileData)) and reworks the handler into an encode function returning typed Abort/Reject/Error responses; the same PR touches src/bacnet/arf.c, src/bacnet/basic/service/h_arf.c, src/bacnet/basic/object/bacfile.c and ports/posix/bacfile-posix.c. Exploitation is conditional: the device must expose the handler and a valid file object instance (bacfile_valid_instance must pass), and the request must use FILE_RECORD_ACCESS rather than stream access - the advisory confirms real server-side triggering, but does not describe any means of gaining code execution from the corruption.
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:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
Remote unauthenticated single crafted request with no interaction (AV:N/AC:L/PR:N/UI:N); impact is a reliable server crash (A:H) with limited stack corruption (I:L) and no data disclosure (C:N).
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. Prior to versions 1.4.4 and 1.5.1, there is a stack-based out-of-bounds write / stack-buffer-overflow in bacnet-stack when the server processes a malicious Atomic-Read-File request in record access mode. The bug is triggered on the real server side. A crafted request can set an excessively large RecordCount, which is later used as the loop bound for writing record data into a stack-allocated BACNET_ATOMIC_READ_FILE_DATA data structure. However, the stack object only has space for one fileData element. When the loop reaches i = 1, the code computes &data->fileData[1], which is already out of bounds, and the resulting invalid pointer is passed down to memmove(), causing a stack-buffer-overflow. This issue has been patched in versions 1.4.4 and 1.5.1.
Technical POC Analysis
CWE-121, stack-based out-of-bounds write, in the AtomicReadFile server 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 vulnerability in the widely used bacnet-stack C library (through version 1.5.0) enables remote, unauthenticated attackers to crash building automation and industrial control devices that handle AtomicReadFile requests. The flaw can cause service outages and potential disruption to critical infrastructure operations, affecting any organization relying on BACnet-enabled systems for monitoring or control.
No vendor-released patch identified at time of analysis. Interim mitigations include network segmentation, restricting BACnet access to trusted hosts, deep packet inspection, and disabling unnecessary AtomicReadFile services.
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.
A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.
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
An out-of-bounds write in the BACnet MS/TP COBS receive path of the bacnet-stack C library lets an attacker who can plac
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
EUVD-2026-124655
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB