Skip to main content

BACnet Stack CVE-2026-58265

| EUVDEUVD-2026-125538 MEDIUM
Out-of-bounds Read (CWE-125)
2026-11-13 GitHub_M
6.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Complete BACnet/SC WebSocket/TLS handshake
  2. Delivery
    Send crafted message with proprietary header option (hdr_len=0)
  3. Exploit
    Decoder reads offsets [3][4][5] before length check
  4. Execution
    Read up to 3 bytes past heap buffer
  5. Impact
    Disclose adjacent heap bytes or crash node (DoS)

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

The target must run the BACnet/SC (Secure Connect) datalink built on an affected BACnet Stack version (1.4.x before 1.4.5, 1.5.x before 1.5.1, or before 1.6.0) - classic BACnet/IP deployments are not affected. The over-read occurs before BACnet-layer authentication, but the attacker must first become a connected peer by completing the WebSocket/TLS handshake; since BACnet/SC transports are typically TLS-protected, this is the principal limiting factor, as an untrusted attacker may need a certificate the node accepts to reach the vulnerable decoder. Once connected, the concrete trigger is a single crafted message carrying a destination or data header option of type PROPRIETARY whose declared header-data length is less than 3 (the PoC uses hdr_len=0 in a 7-byte exact-malloc'd ADDRESS_RESOLUTION message). No user interaction and no BACnet credentials are required beyond establishing the secure channel.

Impact

This is a genuine but moderate-priority issue, and the signals are internally consistent rather than conflicting. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L, 6.5 Medium) matches the advisory's own account: a network-reachable, pre-BACnet-authentication over-read with low confidentiality impact (up to 3 bytes of adjacent heap) and low availability impact (node crash/DoS), with no integrity impact because there is no write primitive. The vuln.today Decision label is 'this_month' (not act_now/emergency), which aligns with a Medium-severity info-leak/DoS rather than a critical RCE. No CISA KEV entry and no EPSS score are present in the input, so there is no evidence of active or widespread exploitation; this should be treated as not-yet-exploited at the time of analysis. A working host-side AddressSanitizer PoC is published inside the GHSA advisory, demonstrating the out-of-bounds read, so exploitability is proven even though it has not been observed in the wild. One nuance limits real-world severity below what AV:N/PR:N suggests in isolation: the advisory states the flaw is reachable only after a BACnet/SC peer has completed the WebSocket/TLS handshake - PR:N reflects the absence of BACnet-layer authentication, not the absence of any transport-level trust. The impact is bounded: a 3-byte heap disclosure or a crash, no code execution.

Exploit ScenarioDerived

An attacker who can establish a BACnet/SC connection to a target node completes the WebSocket/TLS handshake, then sends a crafted BACnet/SC message (e.g. ADDRESS_RESOLUTION) whose destination header option is a PROPRIETARY option declaring a header-data length of 0. Because the decoder reads the vendor-id and option-type at fixed offsets [3][4][5] before validating the declared length, the node reads up to 3 bytes past the exact-sized receive buffer, leaking adjacent heap bytes into the decoded option or crashing the process. A working host AddressSanitizer PoC demonstrating the over-read is published in the GHSA advisory; low attack complexity (AC:L) means the malformed option triggers deterministically.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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

A heap out-of-bounds read of up to 3 bytes exists in the BACnet/SC (Secure Connect) header-option decoder of the bacnet-stack C library, affecting releases before 1.4.5, 1.5.x before 1.5.1, and releases before 1.6.0. When a proprietary header option declares a header-data length below 3, bvlc_sc_decode_proprietary_option() still reads the vendor-id and option-type at fixed offsets before the length check, disclosing up to 3 bytes of adjacent heap into the decoded option or crashing the node; there is no write primitive. The bug is reachable before BACnet-layer authentication, but the attacker must first become a connected BACnet/SC peer by completing the WebSocket/TLS handshake, which limits who can reach the decoder. A public proof-of-concept reproducer exists in the advisory and fix PR, but there is no CISA KEV listing and no confirmed active exploitation; EPSS data was not supplied, and the vulnerability carries a this_month priority label.

RemediationAI

Upgrade to a fixed release: 1.4.5, 1.5.1, or 1.6.0, all of which were patched for this issue. PR #1396 is the upstream fix and does two things - bvlc_sc_validate_options_headers() now rejects any PROPRIETARY option whose declared hdr_len is less than 3 with ERROR_CODE_HEADER_ENCODING_ERROR / ERROR_CLASS_COMMUNICATION ('Proprietary Header' option header data length must be at least 3), and bvlc_sc_decode_proprietary_option() zero-initializes the vendor-id and option-type outputs and only performs the [3]/[4]/[5] reads when hdr_len >= 3; the PR also adds a regression test to test/bacnet/datalink/bvlc-sc. Organizations that cannot immediately upgrade should apply that patch to their vendored copy, or, where BACnet/SC is not required, leave the SC datalink out of the build in favor of BACnet/IP. Because reaching the decoder requires completing the WebSocket/TLS handshake first, restricting which peers may connect to the BACnet/SC WebSocket endpoint to mutually trusted, certificate-bearing nodes reduces exposure, at the cost of requiring PKI enrollment management for every SC peer; this is a stopgap, not a substitute for the patched decoder. Advisory details and affected/fixed version matrices are in GHSA-j66x-fr38-r7m5.

Affected VersionsENISA

bacnet-stack < 1.6.0
bacnet-stack < 1.4.5
bacnet-stack < 1.5.1

Affected Packages

euvd bacnet_stack fix: 1.4.5, 1.5.1, 1.6.0

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/SC (Addendum/Annex AB) is the encrypted BACnet transport that carries BVLC-SC frames over a WebSocket secured by TLS, and bacnet-stack is a widely embedded open-source C implementation of the protocol stack. A BVLC-SC message begins with a control byte, a message ID, and an optional header-option list where each option is encoded as a type byte (with BVLC_SC_HEADER_DATA and MORE flags) followed by a declared header-data length and that many data bytes. In the affected code (src/bacnet/datalink/bsc/bvlc-sc.c), bvlc_sc_validate_options_headers() advances through the list by 2 + hdr_len and only verifies that the resulting offset fits in the buffer, never requiring hdr_len >= 3 for proprietary options, while bvlc_sc_decode_proprietary_option() unconditionally memcpy's a uint16_t vendor-id from in_options_list[3..4] and reads the option type at in_options_list[5] before its own hdr_len > 3 guard. An option with hdr_len = 0 therefore validates as a legal 3-byte option, and the decoder reads 3 bytes past it; on a real node the WebSocket server reassembles each message into a buffer reallocated to the exact message length, so the over-read lands past the heap allocation. The weakness maps to CWE-125 (out-of-bounds read) and, per the supplied vector AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L, needs no privileges or user interaction at the BACnet layer, though the trigger is not further described beyond the crafted proprietary header option.

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 6.5 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
vuln.today AI 6.5 MEDIUM

Network-reachable and deterministic (AV:N/AC:L); PR:N reflects pre-BACnet-auth reach; impact is a bounded ≤3-byte heap read (C:L) or crash (A:L), no write so I:N.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
Low

Lifecycle Timeline

1
Patch available
Nov 13, 2026 - 17:19 EUVD

DescriptionCVE.org

BACnet Stack is a BACnet open source protocol stack C library for embedded systems. Prior to versions 1.4.5, 1.5.1, and 1.6.0, a BACnet/SC peer can trigger a heap out-of-bounds read (up to 3 bytes), pre-authentication, in the BACnet/SC header-option decoder. bvlc_sc_decode_proprietary_option() reads the vendor-id and option-type at fixed offsets [3],[4],[5] before checking the option's declared header length, and the option-list validator never enforces a minimum length for proprietary options. This issue has been patched in versions 1.4.5, 1.5.1, and 1.6.0.

Threat Intelligence Overview

EPSS Score
0.3%
Top 80% exploitable
Prevalence
Low
niche open-source BACnet library; vulnerable BACnet/SC datalink is a newer, limited-deployment feature
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
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-62976 HIGH
8.7 Nov 13

Heap out-of-bounds read in the RAMFS-backed FILE object of BACnet Stack (bacnet-stack) 1.5.0 and earlier allows an unaut

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

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