Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach BACnet APDU decoder over network
-
DeliverySend crafted BACnetLightingCommand with short REAL field
-
ExploitNested decode receives full apdu_size
-
ExecutionLeaf decoder reads past buffer end
-
ImpactDevice 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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
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).
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.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
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
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-125539
NVD
CVE.org
EPSS
GitHub
Exploit-DB