{
  "id": "CVE-2026-21878",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-21878",
  "published_at": "2026-02-13T18:10:26.325Z",
  "title": "BACnet Stack Improperly Limits Pathnames to a Restricted Directory",
  "vendor": "bacnet-stack",
  "product": "bacnet-stack",
  "cvss": {
    "score": 7.5,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-22",
  "cpes": [
    "cpe:2.3:a:bacnetstack:bacnet_stack:1.5.0:rc1:*:*:*:*:*:*",
    "cpe:2.3:a:bacnetstack:bacnet_stack:1.5.0:rc2:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "bacnet-stack",
        "product": "bacnet-stack",
        "ranges": [
          "\u003c 1.5.0.rc3"
        ],
        "fixed_in": [
          "1.5.0.rc3"
        ]
      }
    ],
    "upgrade": [
      "Upgrade bacnet-stack to 1.5.0.rc3 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/bacnet-stack/bacnet-stack/security/advisories/GHSA-p8rx-c26w-545j"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/bacnet-stack/bacnet-stack/commit/c5dc00a77b4bc2550befa67a930b333e299c18f3"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
