Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach exposed BACnet/IP service
-
DeliverySend crafted AtomicWriteFile request
-
ExploitSupply negative signed fileStartPosition
-
ExecutionPass unvalidated offset to RAM backend
-
PersistOut-of-bounds heap write arithmetic
-
ImpactCorrupt heap or crash process
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 | Exploitation requires the target firmware/build to implement a BACnet File object and use the vulnerable RAM file backend (src/bacnet/basic/sys/bramfs.c or bsramfs.c) that processes AtomicReadFile/AtomicWriteFile stream-access requests; the attacker must be able to send these APDUs to the device's BACnet/IP (or other datalink) interface. No authentication or user interaction is needed (PR:N/UI:N), and default BACnet deployments typically do not authenticate requests. The concrete trigger is a signed fileStartPosition outside valid bounds - negative values (e.g. -8 for OOB read, -2 below -1 for OOB write) or an oversized positive value (INT_MAX/2 causing negative-size memcpy underflow). The primary LIMITING factor is the backend: builds not using the RAM file backend path are not reachable via this flaw, which materially narrows real-world exposure below what the raw 8.6 score implies. |
| Impact | This is a credible, above-average-priority issue but not a drop-everything emergency. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N) describes a network-reachable, low-complexity, unauthenticated flaw, and BACnet/IP services are commonly exposed without authentication, which supports the 8.6 score and the vuln.today 'this_week' decision label. Impact is split across all three memory-safety outcomes: a reliable process crash (A:H), out-of-bounds read of adjacent memory (C:L), and out-of-bounds heap write (I:L). A detailed public proof-of-concept is present in the GHSA advisory, demonstrating the crash/OOB conditions under ASAN both at the RAM backend and via the real BACnet/IP dispatch path, so exploitability is well-evidenced rather than theoretical. However, two signals temper the raw score: the advisory explicitly states impact 'depends on whether the target build uses the vulnerable RAM file backend path' (bramfs/bsramfs), so reachability is deployment-specific, not universal. No CISA KEV listing is present, so this is NOT confirmed actively exploited, and no EPSS score was supplied, so widespread automated exploitation cannot be inferred from the data. Net: treat as a prioritized patch for exposed BACnet devices using the RAM file backend, with the main realistic outcome being denial of service and possible memory disclosure. |
| Exploit ScenarioDerived | An unauthenticated attacker with network access to a BACnet/IP device sends a crafted AtomicReadFile or AtomicWriteFile stream request carrying a malicious signed fileStartPosition (e.g. -8, -2, or INT_MAX/2). On builds using the RAM file backend, the unvalidated offset reaches pointer/size arithmetic, causing an out-of-bounds read (memory disclosure), a negative-size memcpy, or an out-of-bounds heap write that crashes or destabilizes the process. A working public PoC in the GHSA advisory reproduces all three cases. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
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 attackers to send crafted AtomicReadFile and AtomicWriteFile stream-access APDUs whose signed fileStartPosition is not validated tightly enough before it reaches the RAM file backends, yielding heap-buffer-overflow reads, a negative-size memcpy() underflow, and heap-buffer-overflow writes. Because the APDUs are handled without authentication or user interaction (CVSS:3.1/AV:N/AC:L/PR:N/UI:N), any device exposing a BACnet File object on the vulnerable backend is exposed, though builds that do not use the bramfs.c or bsramfs.c RAM file backends are not reachable through this flaw, which narrows real-world exposure below the raw 8.6 score. The most reliable outcome where the path is reachable is a process crash (denial of service), with adjacent-memory disclosure and heap corruption as additional possibilities; the upstream advisory publishes a working ASAN reproducer, the CVE is not listed in CISA KEV, and no active exploitation has been reported.
RemediationAI
Vendor-released patch: upgrade to bacnet-stack 1.4.5 (fixes the 1.4.2-to-before-1.4.5 range) or 1.5.1 (fixes the 1.5.0-to-before-1.5.1 range); the proposed fix and focused regression tests are contained in PR #1362 at https://github.com/bacnet-stack/bacnet-stack/pull/1362, and the advisory is at https://github.com/bacnet-stack/bacnet-stack/security/advisories/GHSA-8759-hx7g-94qx. The fix enforces in bacfile.c that a stream fileStartPosition is non-negative and less than the reported file size before invoking the backend callback, adds equivalent checks and a corrected append condition in ports/posix/bacfile-posix.c, and adds lower-bound validation for record-access offsets. The advisory does not document a workaround, so updating the library and rebuilding affected firmware is the complete fix; deployments that cannot update immediately should note that the flaw is only reachable when a BACnet File object is served by the bramfs.c or bsramfs.c RAM file backends, so disabling or removing that file-object/backend configuration removes the attack path, at the cost of losing AtomicReadFile/AtomicWriteFile stream service on those devices.
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 an ASHRAE/ISO building-automation protocol, and bacnet-stack is a portable C implementation used in embedded field devices and controllers. The File object supports two access modes: record access and stream access; in stream access, the AtomicReadFile and AtomicWriteFile confirmed-service requests carry a fileStartPosition encoded as a signed 32-bit integer, where the special value -1 conventionally means append for write operations. In the vulnerable code, src/bacnet/arf.c and src/bacnet/awf.c decode the signed offset, src/bacnet/basic/service/h_arf.c and h_awf.c forward it, and src/bacnet/basic/object/bacfile.c passes it to backend callbacks without sufficient lower-bound validation; src/bacnet/basic/sys/bramfs.c and bsramfs.c then use the signed value directly in pointer and size arithmetic. That maps to CWE-125 (out-of-bounds read) as the primary class with a companion CWE-787 (out-of-bounds write): a negative read offset produces an out-of-bounds read, an oversized positive read offset (for example INT_MAX/2) produces a negative-size underflow passed to memcpy(), and a write offset below -1 produces an out-of-bounds heap write. The upstream fix adds range validation in bacfile.c (position >= 0 and position < file_size before invoking the read callback) and matching bounds checks plus a corrected append condition in the POSIX file backend, and the same commit hardens the record-access path with fileStartRecord bounds checks. The trigger is precisely a malformed signed stream offset; no further protocol preconditions beyond reaching the service handler are described in the available sources.
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:L/I:L/A:H
Unauthenticated network BACnet request with a trivial malformed offset triggers the bug (AV:N/AC:L/PR:N/UI:N); dominant outcome is process crash (A:H) with limited memory read/heap corruption (C:L/I:L).
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.2 to before 1.4.5, and 1.5.0 to before 1.5.1, a signed fileStartPosition taken from AtomicReadFile and AtomicWriteFile stream-access requests is not validated tightly enough before it reaches the RAM file backends. Practical impact includes: reliable denial of service via process crash, out-of-bounds read that may expose adjacent memory contents, or out-of-bounds write that may corrupt heap memory and destabilize the process. This issue has been patched in versions 1.4.5 and 1.5.1.
Technical POC Analysis
CWE-125 (out-of-bounds read), with CWE-787 (out-of-bounds write) as the write-side companion.
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 flaw in the widely used BACnet Stack C library exposes building-automation and industrial control devices that expose BACnet File objects on RAM file backends to unauthenticated remote attacks. Successful exploitation can crash affected devices and may corrupt or leak adjacent memory, threatening the availability of building control systems and, in the worst case, enabling further compromise. Leadership should care because remediation depends on dependent product vendors rather than a single patch, and exposure spans facilities relying on BACnet-connected equipment.
No vendor-released patch identified at time of analysis. Interim mitigations: block or restrict BACnet traffic (UDP 47808) to trusted segments; disable BACnet File object services or avoid the bramfs.c and bsramfs.c RAM file backends where feasible; monitor for process crashes and anomalous AtomicReadFile/AtomicWriteFile APDUs; track upstream and device-vendor advisories for fixes.
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.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
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-125531
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB