Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach BACnet AtomicWriteFile service over network
-
DeliveryAppend first record to writable RAMFS FILE object
-
ExploitSend second consecutive record-access append
-
Executionrecord_count() reads one byte past heap allocation
-
ImpactServer crash / denial of service
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK
1 technique across 1 tactic: Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires the RAMFS-backed FILE object implementation to be in use (bacfile_ramfs_init) with the FILE object configured for record access (file_access_stream set to false) and writable; the default upstream apps/server example instead uses the POSIX backend, so stock builds are not on this path. Trigger: an attacker sends two consecutive AtomicWriteFile(record-access) append requests (fileStartRecord = -1) to the same FILE object, after which the pre-write record_count() scan reads past the end of the heap allocation. The service path is remotely reachable and BACnet has no built-in authentication (PR:N), so no credentials are needed. Limiting factors: only deployments that integrate the RAMFS backend with record-access FILE objects are affected, and only versions 1.5.0/prior to 1.5.1; impact is confined to a crash / denial of service. |
| Impact | Signals are consistent in pointing to a real but availability-only (denial-of-service) issue rather than a code-execution threat. The input CVSS 4.0 vector (8.7) is AV:N/AC:L/AT:N/PR:N/UI:N with VC:N/VI:N/VA:H/SC:N/SI:N/SA:N - remotely reachable, low complexity, no authentication, but impact limited to availability; CWE-125 (out-of-bounds read) and the ASAN trace confirm a one-byte heap over-read in bacnet_strnlen() via record_count(), which the advisory describes as causing a crash, DoS, or undefined behavior, not information disclosure or RCE. The vuln.today decision label is this_week (not act_now/emergency), and no CISA KEV listing and no EPSS score are present in the input, so there is no evidence of active exploitation and no probability estimate to weigh; absence of these is noted, not treated as low risk. A public PoC reference (poc.c) exists but is not verified as working exploit code here. A key mitigating nuance the raw CVSS does not capture: the crash path requires the non-default RAMFS FILE-object backend configured for record access - the upstream apps/server example ships with the POSIX backend - so the AV:N/PR:N exposure applies only to deployments that integrate the RAMFS backend. Net: a genuine, promptly-patchable DoS for affected configurations, but lower real-world urgency than the 8.7 alone suggests given DoS-only impact, no KEV/EPSS evidence, and a configuration dependency. |
| Exploit ScenarioDerived | An attacker with network reach to a BACnet device running the RAMFS-backed FILE object (record-access mode) sends two consecutive AtomicWriteFile append requests (fileStartRecord = -1) to the same writable FILE object; on the second request, record_count() walks one byte past the end of the heap allocation, producing an out-of-bounds read that can crash the server and deny service. A client PoC (poc.c) is referenced in the GHSA advisory, though it is not verified as working exploit code here. The CVSS vector indicates network vector with low complexity and no authentication (AV:N/AC:L/PR:N), so the two requests alone are sufficient against an affected configuration. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
Heap out-of-bounds read in the RAMFS-backed FILE object of BACnet Stack (bacnet-stack) 1.5.0 and earlier allows an unauthenticated remote BACnet client to crash the device by sending two consecutive AtomicWriteFile(record-access) append requests to the same writable FILE object. The flaw only manifests in deployments that integrate the RAMFS backend (bacfile_ramfs_init) and configure the FILE object for record access; the upstream apps/server example uses the POSIX backend and is not on this path. Impact is availability-only (crash/denial of service), fixes are released in 1.5.1 and 1.6.0, and a public client PoC accompanies the advisory, though it was demonstrated against a locally modified server build rather than the stock example binary; active exploitation is not confirmed (not in CISA KEV).
RemediationAI
Vendor-released patch: upgrade to BACnet Stack 1.5.1 or 1.6.0, which bound record_count() and record_by_index() by the actual allocation size and add a regression test for consecutive appends; apply via https://github.com/bacnet-stack/bacnet-stack/pull/1408 and track the advisory at https://github.com/bacnet-stack/bacnet-stack/security/advisories/GHSA-32jj-x86x-w98w. Where an immediate upgrade is not possible, the practical compensating control is to keep the FILE object on the POSIX-backed backend (bacfile_posix_init) rather than the RAMFS backend - this is the configuration the upstream server example ships with and it does not reach the vulnerable record_count() code, at the cost of requiring persistent storage on the device. Additionally, avoid exposing writable, record-access FILE objects over BACnet/IP to untrusted network segments, since BACnet has no built-in authentication and any reachable client can issue the two AtomicWriteFile append requests; this narrows exposure but removes legitimate backup/restore functionality and does not fix the underlying out-of-bounds read.
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 a building-automation protocol, and bacnet-stack is a portable C implementation for embedded devices in which the FILE object exposes backup/restore and record-oriented storage through services such as AtomicWriteFile. The RAMFS file backend in src/bacnet/basic/sys/bramfs.c stores appended records as NUL-terminated C strings, but its record_count() helper (and the related record_by_index()) walks the buffer with a do/while loop that assumes an extra terminating empty record: it calls bacnet_strnlen() with MAX_OCTET_STRING_BYTES and advances by len+1 until a zero-length read is seen. The append branch grows the heap allocation by only fileDataStrLen+1 and writes record bytes plus a single NUL, so no sentinel exists past the last record; after the first append, record_count() advances exactly to the end of the allocation and then calls bacnet_strnlen() - implemented via memchr(str, 0, maxlen) in bacstr.c - on a pointer one byte past the heap buffer. This is a classic CWE-125 out-of-bounds read, triggered by a length/counting discipline mismatch rather than by malformed protocol parsing, and it is reachable over the network through the normal handler_atomic_write_file_encode -> bacfile_write_record_data -> bacfile_ramfs_write_record_data path. The upstream fix in PR #1408 threads an explicit total buffer size into record_count() and record_by_index() so iteration halts at records+size, and reworks the mid-file record replacement path to stash tail data in a temporary allocation before realloc.
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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Remotely reachable via unauthenticated AtomicWriteFile (AV:N/PR:N) with a deterministic two-append trigger (AC:L); out-of-bounds read only crashes the server, giving availability-only impact (A:H, C:N/I: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 version 1.5.1, the RAMFS-backed FILE object implementation stores appended records as NUL-terminated strings, but its record-counting logic later walks the buffer as if an additional terminating empty record were present. As a result, two consecutive AtomicWriteFile(record-access) append requests can cause record_count() to call bacnet_strnlen() on a pointer that is already one byte past the end of the heap allocation. This issue has been patched in versions 1.5.1 and 1.6.0.
Technical POC Analysis
CWE-125 (Out-of-bounds Read) in the RAMFS FILE-object backend of bacnet-stack.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-62976 is a high-severity denial-of-service vulnerability in BACnet Stack (bacnet-stack) versions 1.5.0 and earlier that can crash devices integrated with the RAMFS backend. Organizations using this protocol stack in building automation or industrial control environments face potential operational disruption from unauthenticated remote attackers. Leadership should prioritize patching affected systems, as successful exploitation could halt critical facility operations.
Apply vendor patch.
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.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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
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
Out-of-bounds memory access in the BACnet Stack C library (versions 1.4.2 through 1.4.4 and 1.5.0) allows remote attacke
EUVD-2026-125691
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB