7.5high
BACnet Stack Improperly Limits Pathnames to a Restricted Directory
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.42% (higher than 38% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| bacnet-stack bacnet-stack | < 1.5.0.rc3 | CVE List |
| bacnetstack bacnet_stack | 1.5.0 | NVD |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
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.
NVD (es)
BACnet Stack es una librería C de pila de protocolos BACnet de código abierto para sistemas embebidos. Antes de la versión 1.5.0.rc3, se ha descubierto una vulnerabilidad en la funcionalidad de escritura de archivos de BACnet Stack donde no hay validación de las rutas de archivo proporcionadas por el usuario, lo que permite a los atacantes escribir archivos en directorios arbitrarios. Esto afecta a apps/readfile/main.c y ports/posix/bacfile-posix.c. Esta vulnerabilidad está corregida en la versión 1.5.0.rc3.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-21878 changed 2026-02-13 | CVE Terms of Use |
| NVD | CVE-2026-21878 changed 2026-06-17 | Public domain |