CVE-2026-62972

BACnet Stack: Out-of-bounds read in lighting_command_decode (full APDU size passed to nested tag decoders)

Published Nov 13, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

BACnet Stack processes external APDU messages. A bug in lighting_command_decode causes it to read beyond a buffer bound when nested tags are decoded, leading to an out‑of‑bounds read. The flaw can expose memory contents that are not intended to be visible, potentially leaking sensitive data or aiding further attacks.

Affected Systems

The vulnerability affects BACnet Stack versions prior to 1.4.5, 1.5.1, and 1.6.0. Any installation using those releases is susceptible.

Risk and Exploitability

The CVSS score is 6.9, indicating moderate severity. The EPSS score is less than 1%, suggesting a low exploitation probability at this time. The vulnerability is not listed in CISA’s KEV catalog. Based on the fact that BACnet Stack receives commands from the network, the likely attack vector is remote or network‑based, inferred from the stack’s role in processing external traffic. No public exploit is known.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade bacnet-stack to version 1.6.0 or later, which contains the upstream fix.
  • If upgrading is not immediately feasible, isolate the BACnet stack from untrusted network traffic and filter incoming messages to trusted sources.
  • Add application‑level checks to confirm that APDU payload sizes do not exceed the buffer length before invoking lighting_command_decode.

Generated by OpenCVE AI on November 14, 2026 at 18:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:bacnetstack:bacnet_stack:*:*:*:*:*:*:*:*
cpe:2.3:a:bacnetstack:bacnet_stack:1.5.0:-:*:*:*:*:*:*
cpe:2.3:a:bacnetstack:bacnet_stack:1.5.0:rc1:*:*:*:*:*:*
cpe:2.3:a:bacnetstack:bacnet_stack:1.5.0:rc2:*:*:*:*:*:*
cpe:2.3:a:bacnetstack:bacnet_stack:1.5.0:rc3:*:*:*:*:*:*
cpe:2.3:a:bacnetstack:bacnet_stack:1.6.0:rc1:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 8.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Bacnetstack
Bacnetstack bacnet Stack
Vendors & Products Bacnetstack
Bacnetstack bacnet Stack
Type Values Removed Values Added
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.
Title BACnet Stack: Out-of-bounds read in lighting_command_decode (full APDU size passed to nested tag decoders)
Weaknesses CWE-125
References
Metrics cvssV4_0

{'score': 6.9, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 17, 2026, 8:16 PM
Reserved
Jul 14, 2026, 10:48 PM
Status
Analyzed
Published
Nov 13, 2026, 4:19 PM
Modified
Dec 3, 2026, 12:39 AM