{"id":"CVE-2026-45265","state":"PUBLISHED","title":"Atomic-Read-File RecordCount Stack-Based Out-of-Bounds Write in bacnet-stack","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.","publishedAt":"2026-11-12T19:59:55.457Z","updatedAt":"2026-11-13T22:32:54.748Z","severity":{"score":8.2,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["bacnet-stack bacnet-stack"],"affected":[{"vendor":"bacnet-stack","product":"bacnet-stack","versions":[{"version":"< 1.4.4","status":"affected"},{"version":"< 1.5.1","status":"affected"}]}],"references":["https://github.com/bacnet-stack/bacnet-stack/security/advisories/GHSA-v3gx-mwrp-xvh5","https://github.com/bacnet-stack/bacnet-stack/pull/1340"],"weaknesses":["CWE-121"],"ingestedAt":"2026-11-13T22:40:06.267Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/45xxx/CVE-2026-45265.json","commit":"5c07a64ccd3c052ad02640d44b2dfb0f6ad295bc","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-45265","state":"PUBLISHED","datePublished":"2026-11-12T19:59:55.457Z","dateUpdated":"2026-11-13T22:32:54.748Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-05-11T18:41:13.156Z"},"containers":{"cna":{"title":"Atomic-Read-File RecordCount Stack-Based Out-of-Bounds Write in bacnet-stack","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"bacnet-stack","product":"bacnet-stack","versions":[{"version":"< 1.4.4","status":"affected"},{"version":"< 1.5.1","status":"affected"}]}],"references":[{"url":"https://github.com/bacnet-stack/bacnet-stack/security/advisories/GHSA-v3gx-mwrp-xvh5","name":"https://github.com/bacnet-stack/bacnet-stack/security/advisories/GHSA-v3gx-mwrp-xvh5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/bacnet-stack/bacnet-stack/pull/1340","name":"https://github.com/bacnet-stack/bacnet-stack/pull/1340","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.2,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-121","lang":"en","description":"CWE-121: Stack-based Buffer Overflow","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-11-12T19:59:55.457Z"},"source":{"advisory":"GHSA-v3gx-mwrp-xvh5","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-13T16:33:53.838763Z","id":"CVE-2026-45265","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-13T22:32:54.748Z"}}]}}}