Skip to main content

BACnet Stack EUVDEUVD-2026-125539

| CVE-2026-62972 MEDIUM
Out-of-bounds Read (CWE-125)
2026-11-13 GitHub_M
6.9
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 APDU decoder over network
  2. Delivery
    Send crafted BACnetLightingCommand with short REAL field
  3. Exploit
    Nested decode receives full apdu_size
  4. Execution
    Leaf decoder reads past buffer end
  5. Impact
    Device crash (DoS) or adjacent-memory disclosure

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 device to actually decode an application-tagged BACnetLightingCommand value from a received APDU - reachable via bacapp_decode_application_data, for example a WriteProperty payload on a lighting object compiled with BACAPP_LIGHTING_COMMAND. The affected code path is in lighting_command_decode's FADE_TO, RAMP_TO and STEP_* operation cases, triggered by a context tag (e.g. tag 1 REAL, or tags 2/3 REAL, or tags 4/5 Unsigned) that declares a field length longer than the bytes remaining in the buffer. No authentication is indicated by the vector (PR:N) and no user interaction (UI:N). Limiting factors: the device must implement and decode lighting-command objects (not all BACnet deployments do), and the reporter confirmed the over-read only at the decoder boundary in a local harness - not end-to-end from a received frame - so reachability on shipping, production-configured devices is explicitly unconfirmed and should be validated per deployment. Affected versions are those prior to 1.4.5, 1.5.1 and 1.6.0 (vulnerable <= 1.6.0-rc1).

Impact

This is a genuine but bounded issue, not a top-tier emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) describes a network-reachable, unauthenticated, low-complexity trigger, but the vulnerable-system impact is explicitly limited: VC:L/VI:N/VA:L, yielding a Medium 6.9 - consistent with the out-of-bounds READ class (CWE-125), which gives no write primitive and no demonstrated RCE. The reporter's own severity estimate is Medium and the vuln.today decision label is 'this_month' (not act_now/emergency), so the decision signals agree this is a routine-priority patch item. No EPSS score and no KEV listing are provided in the input, so there is no evidence of active exploitation or mass-scan interest; exploitation status is best described as no confirmed active exploitation. A proof-of-concept IS documented: a 5-byte input reproduced under AddressSanitizer at the decoder boundary - but the reporter explicitly states it was 'Proven at the decoder boundary; not driven end-to-end from a received frame' and asks maintainers to 'confirm reachability in shipping configurations.' That caveat is the single most important uncertainty: the AC:L/AV:N rating assumes an attacker can reach lighting_command_decode via bacapp_decode_application_data with attacker-controlled APDU bytes, which is confirmed only in a local harness, not against a fielded device decoding a received frame. Realistic worst case is a denial of service (over-read crossing an unmapped page, with over-read length attacker-influenced via the Unsigned context tags 4/5) or limited information exposure if the decoded value is read back.

Exploit ScenarioDerived

An attacker with network access to a BACnet/IP device that decodes BACnetLightingCommand values (for example via a WriteProperty payload targeting a lighting object built with BACAPP_LIGHTING_COMMAND) sends a crafted application-tagged APDU in which a context tag declares a 4-byte REAL while fewer bytes are actually present. Because the nested decoders are handed the full apdu_size rather than the remaining bytes, a leaf decoder reads past the end of the receive buffer, crashing the device or disclosing adjacent memory. A proof-of-concept over-read has been demonstrated under AddressSanitizer at the decoder boundary (5-byte input 09 01 1C 00 00), though the reporter has not driven it end-to-end from a received frame and asks for reachability confirmation in shipping configurations.

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

An out-of-bounds read in lighting_command_decode in the BACnet open source protocol stack C library (versions prior to 1.4.5, 1.5.1 and 1.6.0) lets remote attackers craft an application-tagged BACnetLightingCommand APDU whose nested REAL or Unsigned context tags declare more bytes than remain in the buffer, causing leaf decoders to read past the end of the receive buffer. The CVSS:4.0 vector AV:N/AC:L/AT:N/PR:N/UI:N indicates a network-reachable, unauthenticated trigger with no user interaction, while confidentiality and availability impact are both limited (C:L/A:L). A public PoC reference exists in the advisory (a 5-byte input reproduced under AddressSanitizer with a local direct-call harness); it is not verified as working exploit code, and the reporter proved the defect only at the decoder boundary rather than end-to-end from a received frame, so real-world reachability depends on whether the device actually decodes BACnetLightingCommand values. No CISA KEV listing or confirmed active exploitation is associated with this CVE.

RemediationAI

Upgrade to a vendor-released fixed version: 1.4.5, 1.5.1 or 1.6.0, which contain the adjusted nested decode calls (apdu_size - apdu_len) delivered in PR #1412 (https://github.com/bacnet-stack/bacnet-stack/pull/1412) and documented in advisory GHSA-9hq3-w3pc-8385 (https://github.com/bacnet-stack/bacnet-stack/security/advisories/GHSA-9hq3-w3pc-8385). Teams maintaining a fork can backport the same one-line change at each bacnet_real_context_decode and bacnet_unsigned_context_decode call in the FADE_TO, RAMP_TO and STEP_* cases of lighting_command_decode, mirroring the fix already applied to xy_color_decode; the leaf decoders already return an error on a short buffer, so no other caller changes are required. Where an update cannot be deployed immediately, the actionable compensating controls are to disable or omit BACAPP_LIGHTING_COMMAND support from the build so lighting_command_decode is never reachable from received APDUs (trade-off: lighting command objects and their services stop functioning), or to restrict BACnet/IP and BACnet/SC access to trusted network segments and known building-automation hosts through filtering or an application gateway (trade-off: operational flexibility and legitimate remote engineering access are reduced, and this does not remove the defect for permitted peers). Note that reachability was demonstrated only at the decoder boundary, so each deployment should verify whether its configuration actually decodes application-tagged BACnetLightingCommand values before treating the issue as remotely exploitable. As related hardening, the analogous full-size decode pattern in secure_connect.c is addressed by PR #1413.

Affected VersionsENISA

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

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

The flaw is CWE-125 (out-of-bounds read) in src/bacnet/lighting.c arising from a size-accounting inconsistency rather than a memory-safety primitive. lighting_command_decode decodes its first field correctly with the bounded length apdu_size - apdu_len, but every nested decode inside the FADE_TO, RAMP_TO and STEP_* operation cases passes the original full apdu_size while the read pointer has already advanced to &apdu[apdu_len]. The leaf routines (bacnet_real_context_decode, bacnet_unsigned_context_decode, and ultimately bacnet_real_decode/decode_real) trust the size they are given, so a context tag declaring a 4-byte REAL or an Unsigned field with fewer bytes actually present causes reads up to apdu_len bytes beyond the end of the caller's buffer. The trigger is only described by the vendor at the decoder boundary: a 5-byte input 09 01 1C 00 00 (operation FADE_TO consuming 2 bytes, then context tag 1 declaring a 4-byte REAL with 2 bytes present) reproduced a read overflow under AddressSanitizer in a local harness with no socket or device. Reachability in production requires the application to decode an application-tagged BACnetLightingCommand value via bacapp_decode_application_data, for example a WriteProperty payload on a lighting object built with BACAPP_LIGHTING_COMMAND. The over-read length is attacker-influenced through the Unsigned context tags 4 and 5; the vendor states that no write primitive and no remote code execution were demonstrated. The same full-size pattern was already corrected in the neighbouring xy_color_decode, and a related (not part of this CVE) occurrence in secure_connect.c's host_n_port_context_decode calls was remediated in PR #1413.

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.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N
vuln.today AI 6.5 MEDIUM

Network-reachable unauthenticated decoder over-read with no user interaction; out-of-bounds READ gives limited info exposure (C:L) and potential crash (A:L), no integrity impact (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
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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, lighting_command_decode in src/bacnet/lighting.c decodes its first field with the bounded apdu_size - apdu_len, but every nested decode in the operation switch is called with the original full apdu_size while the read pointer has been advanced to &apdu[apdu_len]. The leaf decoders bound their reads against the size they are told, so they read up to apdu_len bytes past the end of the caller's buffer, resulting in an out-of-bounds read. 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 for embedded building-automation devices
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

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
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