CVE-2026-21878
JSON

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 packageVersionsReported by
bacnet-stack bacnet-stack< 1.5.0.rc3CVE List
bacnetstack bacnet_stack1.5.0NVD

Classification

CWE-22

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

SourceRecordLicence
CVE ListCVE-2026-21878 changed 2026-02-13CVE Terms of Use
NVDCVE-2026-21878 changed 2026-06-17Public domain