Skip to main content

BACnet Stack CVE-2026-62976

| EUVDEUVD-2026-125691 HIGH
Out-of-bounds Read (CWE-125)
2026-11-13 GitHub_M
8.7
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach BACnet AtomicWriteFile service over network
  2. Delivery
    Append first record to writable RAMFS FILE object
  3. Exploit
    Send second consecutive record-access append
  4. Execution
    record_count() reads one byte past heap allocation
  5. Impact
    Server 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

bacnet-stack < 1.5.1

Affected Packages

euvd bacnet_stack fix: 1.5.1

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

Vendor (GitHub_M) PRIMARY 8.7 HIGH
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
vuln.today AI 7.5 HIGH

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).

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 13, 2026 - 20:49 EUVD
CVE Published
Nov 13, 2026 - 18:39 cve.org
HIGH 8.7

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 78% exploitable
Prevalence
Low
open-source embedded BACnet library, niche building-automation/industrial footprint
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2026-26264 HIGH POC
8.1 Feb 13

Unauthenticated remote attackers can crash BACnet Stack prior to versions 1.5.0rc4 and 1.4.3rc2 by sending a malformed W

CVE-2025-66624 HIGH POC
7.5 Dec 05

BACnet Protocol Stack library provides a BACnet application layer, network layer and media access (MAC) layer communicat

CVE-2026-21878 HIGH POC
7.5 Feb 13

BACnet Stack is a BACnet open source protocol stack C library for embedded systems. [CVSS 7.5 HIGH]

CVE-2026-21870 MEDIUM POC
5.5 Feb 13

The BACnet Protocol Stack library versions 1.4.2 and earlier contain an off-by-one buffer overflow in the ubasic interpr

CVE-2026-52788 HIGH
8.8 Nov 13

Out-of-bounds writes in the BACnet/SC Address Resolution ACK URL parser of the BACnet Stack C library let an authenticat

CVE-2026-82414 HIGH
8.8 Nov 13

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

CVE-2026-62974 HIGH
8.7 Nov 13

A single malformed BACnet/IP WriteProperty request can lock the official bacnet-stack demo server in a non-terminating r

CVE-2026-41503 HIGH
8.7 Apr 24

Remote attackers can crash BACnet Stack-powered embedded devices (versions prior to 1.4.3) by sending malformed ReadProp

CVE-2026-41502 HIGH
8.7 Apr 24

Remote denial of service in BACnet Stack library versions before 1.4.3 allows unauthenticated attackers to crash embedde

CVE-2026-41475 HIGH
8.7 Apr 24

Out-of-bounds read in BACnet Stack library versions before 1.4.3 allows unauthenticated remote attackers to crash embedd

CVE-2026-104204 HIGH
8.7 Nov 13

Remote unauthenticated denial of service in BACnet Stack before 1.6.1 allows one BACnet/IP WriteProperty request to forc

CVE-2026-58498 HIGH
8.6 Nov 13

A remote, unauthenticated attacker can drive a global out-of-bounds write in the official router-ipv6 forwarding applica

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy