CVE-2026-45265

Atomic-Read-File RecordCount Stack-Based Out-of-Bounds Write in bacnet-stack

Published Nov 12, 2026 CVSS 3.1 · 8.2 High 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.4 and 1.5.1, there is a stack-based out-of-bounds write / stack-buffer-overflow in bacnet-stack when the server processes a malicious Atomic-Read-File request in record access mode. The bug is triggered on the real server side. A crafted request can set an excessively large RecordCount, which is later used as the loop bound for writing record data into a stack-allocated BACNET_ATOMIC_READ_FILE_DATA data structure. However, the stack object only has space for one fileData element. When the loop reaches i = 1, the code computes &data->fileData[1], which is already out of bounds, and the resulting invalid pointer is passed down to memmove(), causing a stack-buffer-overflow. This issue has been patched in versions 1.4.4 and 1.5.1.

Analysis

AI-generated

Technical impact

A stack-based out-of-bounds write occurs when the BACnet stack processes a malicious Atomic-Read-File request in record access mode. An attacker can craft a request that sets an excessively large RecordCount, causing the server to write beyond the bounds of a stack-allocated data structure and invoke a memory corruption via memmove(). This flaw can lead to arbitrary code execution on the affected host, compromising confidentiality, integrity, and availability. The weakness is a classic buffer overflow (CWE-121).

Affected Systems

The vulnerability affects all installations of the bacnet-stack open source protocol library prior to versions 1.4.4 and 1.5.1. This includes older releases such as 1.4.3 and earlier, and 1.5.0 and earlier, which are still deployable in embedded industrial control environments that use BACnet for network communication.

Risk and Exploitability

The CVSS score of 8.2 indicates high severity, and the EPSS score of less than 1% suggests a low current exploitation probability. The flaw is not listed in the CISA KEV catalog, meaning no confirmed exploit samples are publicly linked yet. The likely attack vector is network-based: a remote adversary can send a specially crafted Atomic-Read-File packet to the BACnet server. The bug is triggered on the server side, requiring the attacker to have network connectivity to the vulnerable device. If exploited, it would allow remote code execution or potentially a denial‑of‑service condition.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade bacnet-stack to version 1.4.4 or later, or to 1.5.1 or later, where the bug is patched.
  • Configure the server to validate the RecordCount field and enforce a reasonable upper bound, preventing out-of-range values from reaching the memory‑copy routine.
  • Implement network filtering or IDS signatures to detect and block anomalous Atomic-Read-File requests with unusually large RecordCount values before they reach the application stack.

Generated by OpenCVE AI on November 13, 2026 at 19:33 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:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', '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.4 and 1.5.1, there is a stack-based out-of-bounds write / stack-buffer-overflow in bacnet-stack when the server processes a malicious Atomic-Read-File request in record access mode. The bug is triggered on the real server side. A crafted request can set an excessively large RecordCount, which is later used as the loop bound for writing record data into a stack-allocated BACNET_ATOMIC_READ_FILE_DATA data structure. However, the stack object only has space for one fileData element. When the loop reaches i = 1, the code computes &data->fileData[1], which is already out of bounds, and the resulting invalid pointer is passed down to memmove(), causing a stack-buffer-overflow. This issue has been patched in versions 1.4.4 and 1.5.1.
Title Atomic-Read-File RecordCount Stack-Based Out-of-Bounds Write in bacnet-stack
Weaknesses CWE-121
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-121

    Stack-based Buffer Overflow

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 13, 2026, 10:32 PM
Reserved
May 11, 2026, 6:41 PM
Status
Analyzed
Published
Nov 12, 2026, 8:18 PM
Modified
Dec 1, 2026, 11:18 PM