← Vulnerability feed

Vulnerability record · CVE-2026-21878 · published 13 February 2026

CVE-2026-21878: Bacnetstack bacnet stack path traversal vulnerability

BBacnetstack · Bacnet Stack

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.

7.5 CVSS 3.1 High EPSS 0.37% · top 71.7% CWE-22 · Path traversal
7.5CVSS 3.1 base score
0.37%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
2References, 1 tagged exploit
17 Jun 2026Last modified by NVD

Description

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

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2026-21878 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.1CVE-2023-51773Bacnetstack bacnet stack vulnerabilityBACnet Stack before 1.3.2 has a decode function APDU buffer over-read in bacapp_decode_application_data in bacapp.c.EPSS 1.1%8.7CVE-2026-41475Bacnetstack bacnet stack out-of-bounds read vulnerabilityBACnet Stack is a BACnet open source protocol stack C library for embedded systems. Prior to 1.4.3, an out-of-bounds read vulnerability in bacnet-sta…EPSS 0.67%8.7CVE-2026-41502Bacnetstack bacnet stack out-of-bounds read vulnerabilityBACnet Stack is a BACnet open source protocol stack C library for embedded systems. Prior to 1.4.3, an off-by-one out-of-bounds read vulnerability in…EPSS 0.60%8.7CVE-2026-41503Bacnetstack bacnet stack out-of-bounds read vulnerabilityBACnet Stack is a BACnet open source protocol stack C library for embedded systems. Prior to 1.4.3, an out-of-bounds read vulnerability in bacnet-sta…EPSS 0.60%7.8CVE-2026-26264Bacnetstack bacnet stack out-of-bounds read vulnerabilityBACnet Stack is a BACnet open source protocol stack C library for embedded systems. Prior to 1.5.0rc4 and 1.4.3rc2, a malformed WriteProperty request…EPSS 0.55%7.5CVE-2025-66624Bacnetstack bacnet stack out-of-bounds read vulnerabilityBACnet Protocol Stack library provides a BACnet application layer, network layer and media access (MAC) layer communications services. Prior to 1.5.0…EPSS 0.41%5.5CVE-2026-21870Bacnetstack bacnet stack vulnerabilityBACnet Protocol Stack library provides a BACnet application layer, network layer and media access (MAC) layer communications services. In 1.4.2, 1.5.…EPSS 0.25%3.7CVE-2026-40279Bacnetstack bacnet stack vulnerabilityBACnet 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 reconstr…EPSS 0.33%

Source: NIST National Vulnerability Database (record CVE-2026-21878), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.