CVE Explorer
CVE-2026-21878
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"bacnet-stack","vendor":"bacnet-stack","versions":[{"status":"affected","version":"< 1.5.0.rc3"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:2c8569d8ced1da8f2cc5314013d8e7f47f06613b2a3461c480a7ea78bb7306ca · sha256:363eff17c8d3877c… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:2c8569d8ced1da8f2cc5314013d8e7f47f06613b2a3461c480a7ea78bb7306ca · sha256:363eff17c8d3877c… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-22","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:2c8569d8ced1da8f2cc5314013d8e7f47f06613b2a3461c480a7ea78bb7306ca · sha256:363eff17c8d3877c… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"name":"https://github.com/bacnet-stack/bacnet-stack/commit/c5dc00a77b4bc2550befa67a930b333e299c18f3","tags":["x_refsource_MISC"],"url":"https://github.com/bacnet-stack/bacnet-stack/commit/c5dc00a77b4bc2550befa67a930b333e299c18f3"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:2c8569d8ced1da8f2cc5314013d8e7f47f06613b2a3461c480a7ea78bb7306ca · sha256:363eff17c8d3877c… · /containers/cna/references/1
{"name":"https://github.com/bacnet-stack/bacnet-stack/security/advisories/GHSA-p8rx-c26w-545j","tags":["x_refsource_CONFIRM"],"url":"https://github.com/bacnet-stack/bacnet-stack/security/advisories/GHSA-p8rx-c26w-545j"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:2c8569d8ced1da8f2cc5314013d8e7f47f06613b2a3461c480a7ea78bb7306ca · sha256:363eff17c8d3877c… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.