{"id":"CVE-2026-46677","summary":"BACnet Stack: Client-Side Out-of-Bounds Read in AtomicReadFile-ACK Record-Access Handling via RecordCount / fileData[] Mismatch","details":"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 client-side out-of-bounds read in the AtomicReadFile-ACK record-access handling path. The issue is caused by a mismatch between a remote returnedRecordCount value and the fixed local fileData[] array capacity in BACNET_ATOMIC_READ_FILE_DATA. The ACK decode path preserves the remote RecordCount, discards storage for excess records without truncating that count, and a downstream sink later iterates over the original RecordCount and indexes fileData[i] out of bounds. This issue has been patched in versions 1.4.4 and 1.5.1.","aliases":["GHSA-rv5h-cxwq-q3mh"],"modified":"2026-12-02T21:01:58.051511471Z","published":"2026-11-12T20:01:13.815Z","database_specific":{"cwe_ids":["CWE-125","CWE-130"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46677.json","cna_assigner":"GitHub_M"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46677.json"},{"type":"ADVISORY","url":"https://github.com/bacnet-stack/bacnet-stack/security/advisories/GHSA-rv5h-cxwq-q3mh"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46677"},{"type":"FIX","url":"https://github.com/bacnet-stack/bacnet-stack/pull/1344"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/bacnet-stack/bacnet-stack","events":[{"introduced":"0"},{"fixed":"3ecb65cf56111fc8dd8429a25ff515763fbc74fe"},{"introduced":"61a7a53bea5b5bc4724646abbce601fd26c364b6"},{"last_affected":"61a7a53bea5b5bc4724646abbce601fd26c364b6"}],"database_specific":{"extracted_events":[{"cpe":"cpe:2.3:a:bacnetstack:bacnet_stack:*:*:*:*:*:*:*:*","range":[{"introduced":"0"},{"fixed":"1.4.4"}],"source":"CPE_RANGE"},{"range":[{"introduced":"1.5.0-NA"},{"last_affected":"1.5.0-NA"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:bacnetstack:bacnet_stack:1.5.0:-:*:*:*:*:*:*"}]}}],"versions":["1.5.0-NA","bacnet-stack-1.5.0","bacnet-stack-1.4.3","bacnet-stack-1.4.0","bacnet-stack-1.3.8","bacnet-stack-1.3.7","bacnet-stack-1.3.6","bacnet-stack-1.3.5","bacnet-stack-1.3.4","bacnet-stack-1.3.3","bacnet-stack-1.3.2","bacnet-stack-1.3.1","bacnet-stack-1.3.0","bacnet-stack-1.2.0","bacnet-stack-1.1.1","bacnet-stack-1.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-46677.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"}]}