CVE-2026-21878: high-severity vulnerability in bacnet-stack
BACnet Stack Improperly Limits Pathnames to a Restricted Directory
Published
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
21Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackcvss 7.5epss 0.4%
BACnet Stack is a BACnet open source protocol stack C library for embedded systems. Prior to 1.5.0.rc3, a vulnerability has been discovered in BACnet Stack's file writing functionality where there is no validation of user-provided file paths, allowing attackers to write files to arbitrary directories. This affects apps/readfile/main.c and ports/posix/bacfile-posix.c. This vulnerability is fixed in 1.5.0.rc3.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Affected products
bacnet-stack · bacnet-stackRelated CVEs — bacnet-stack
In the same product, most dangerous first.
CVE-2026-47217HIGHBACnet Stack: Channel member self-reference causes uncontrolled recursion and stack overflow in default BACnet/IP serverEPSS 0.5%CVE-2026-41475HIGHBACnet Stack: Out-of-Bounds Read in WritePropertyMultiple Decoder via Deprecated Tag ParserEPSS 0.5%CVE-2026-64675MEDIUMBACnet Stack: Pre-auth OOB read in xy_color_decode (BACnetXYColor) via WriteGroup/WritePropertyEPSS 0.5%CVE-2025-66624HIGHBACnet-stack MS/TP reply matcher OOB readEPSS 0.4%CVE-2026-52787HIGHBACnet Stack: Global APDU transmit buffer out-of-bounds write in device.address-binding response encoding via address_list_encode()EPSS 0.4%CVE-2026-49341HIGHBACnet Stack: Uncontrolled recursion in Timer object writeback path leads to remote server stack overflowEPSS 0.4%