# CVE-2026-45265: Atomic-Read-File RecordCount Stack-Based Out-of-Bounds Write in bacnet-stack

- Severity: High 8.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 27% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-12T19:59:55.457Z
- Modified: 2026-12-01T23:18:01.340Z
- Weaknesses: CWE-121
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- bacnet-stack bacnet-stack: < 1.4.4; < 1.5.1
- bacnetstack bacnet_stack: before 1.4.4; 1.5.0

## References

- <https://github.com/bacnet-stack/bacnet-stack/security/advisories/GHSA-v3gx-mwrp-xvh5> (exploit, mitigation, vendor-advisory)
- <https://github.com/bacnet-stack/bacnet-stack/pull/1340> (patch)

## Sources

- CVE List: [CVE-2026-45265](https://www.cve.org/CVERecord?id=CVE-2026-45265), CVE Terms of Use, modified 2026-11-13
- NVD: [CVE-2026-45265](https://nvd.nist.gov/vuln/detail/CVE-2026-45265), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-45265 · Whole record: https://cve.day/CVE-2026-45265.json · Rebuilt by cve.day 2026-12-01T23:32:17.525Z
