{"id":"CVE-2026-40279","published":"2026-04-21T16:29:16Z","modified":"2026-04-21T19:18:58Z","title":"BACnet Stack: Undefined-behavior signed left shift in `decode_signed32()`","vendor":"bacnet-stack","product":"bacnet-stack","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.7,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00252,"percentile":0.16979,"provenance":"source"},"cwes":[{"id":"CWE-758","name":"Reliance on Undefined, Unspecified, or Implementation-Defined Behavior"}],"references":[{"url":"https://github.com/bacnet-stack/bacnet-stack/security/advisories/GHSA-326g-j95f-gmxv","tags":["x_refsource_CONFIRM"]}],"priority":{"score":6.0,"factors":[{"name":"EPSS percentile","points":3.4},{"name":"CVSS severity","points":2.59}]},"vendorSlug":"bacnet-stack","affectedVersions":[{"vendor":"bacnet-stack","product":"bacnet-stack","versions":["< 1.4.3"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-21T19:18:55.401000Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-24166","exploited":false,"provenance":"source"}}