# CVE-2026-40279: BACnet Stack: Undefined-behavior signed left shift in `decode_signed32()`

- Severity: Low 3.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- 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.25%, higher than 17% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-21T16:29:16.125Z
- Modified: 2026-11-11T23:10:00.263Z
- Weaknesses: CWE-758
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

BACnet Stack is a BACnet open source protocol stack C library for embedded systems. Prior to 1.4.3, decode_signed32() in src/bacnet/bacint.c reconstructs a 32-bit signed integer from four APDU bytes using signed left shifts. When any of the four bytes has bit 7 set (value ≥ 0x80), the left-shift operation overflows a signed int32_t, which is undefined behavior per the C standard. This is flagged thousands of times per minute by UndefinedBehaviorSanitizer on any BACnet input containing signed-integer property values with high-bit-set bytes. This vulnerability is fixed in 1.4.3.

(As written by CVE List.)

## Affected

- bacnet-stack bacnet-stack: < 1.4.3
- bacnetstack bacnet_stack: before 1.4.3

## References

- <https://github.com/bacnet-stack/bacnet-stack/security/advisories/GHSA-326g-j95f-gmxv> (exploit, mitigation, vendor-advisory)

## Sources

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

---

Page: https://cve.day/CVE-2026-40279 · Whole record: https://cve.day/CVE-2026-40279.json · Rebuilt by cve.day 2026-11-25T22:59:19.115Z
