CVE-2026-21878: BACnet Stack Improperly Limits Pathnames to a Restricted Directory

Published Feb 13, 2026
·
Updated

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.

Affected Software

3 affected components
BACnet BACnet Stack<1.5.0.rc3
Bacnetstack Bacnet Stack=1.5.0-rc1
Bacnetstack Bacnet Stack=1.5.0-rc2

Event History

Feb 13, 2026
CVE Published
via MITRE·06:10 PM
Data Sourced
via MITRE·06:10 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:17 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-21878?

CVE-2026-21878 has a medium severity rating due to improper pathname limitation which may allow unauthorized file access.

2

How do I fix CVE-2026-21878?

To fix CVE-2026-21878, upgrade BACnet Stack to version 1.5.0.rc3 or later, where the vulnerability has been addressed.

3

What types of systems are affected by CVE-2026-21878?

CVE-2026-21878 affects embedded systems utilizing the BACnet Stack library prior to version 1.5.0.rc3.

4

What is the nature of the vulnerability in CVE-2026-21878?

CVE-2026-21878 involves improper validation of user-provided file paths, leading to potential unauthorized file access.

5

Is CVE-2026-21878 actively being exploited?

As of the latest updates, there are no confirmed active exploits for CVE-2026-21878, but it is recommended to apply the fix promptly.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203