BACnet Stack: Out-of-bounds read in lighting_command_decode (full APDU size passed to nested tag decoders)
- State
- Published
- Severity
- 6.9 Medium
- Published
- Nov 13, 2026
- Updated
- Nov 17, 2026
- Reserved
- Jul 14, 2026
Description
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.
| Product | Versions |
|---|---|
| bacnet-stack bacnet-stack | < 1.4.5 Affected< 1.5.1 Affected< 1.6.0 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 6.9 Medium | GitHub_M |
Weaknesses
- CWE-125 Out-of-bounds Read
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.