Skip to main content

BACnet Stack CVE-2026-58498

| EUVDEUVD-2026-125536 HIGH
Out-of-bounds Write (CWE-787)
2026-11-13 GitHub_M
8.6
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send crafted BACnet/IP UDP packet
  2. Delivery
    Address it to non-local destination network (DNET)
  3. Exploit
    Enter routed APDU forwarding path
  4. Execution
    memmove oversized APDU past Tx_Buffer bound
  5. Impact
    Global-buffer-overflow aborts router process (DoS)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The vulnerable code is the official router-ipv6 application shipped with bacnet-stack (apps/router-ipv6/main.c), not the core library - so the deployment must actually run router-ipv6 and expose its BACnet/IP UDP listening port (default 47808) to the attacker. The attacker must send a BACnet/IP NPDU carrying routing information for a non-local destination network (DNET) so execution enters the routed APDU forwarding path (e.g., the 'unknown route' branch), with an APDU large enough (~1492 bytes) that npdu_len + apdu_len exceeds sizeof(Tx_Buffer) (1506). No authentication or session establishment is required (PR:N). Limiting factors: only hosts running the router-ipv6 forwarding application are affected; BACnet/IP is commonly deployed on segmented/isolated OT networks, which constrains remote reachability; and the reproduced outcome is a crash/DoS rather than confirmed code execution.

Impact

Signals point to a genuine but bounded issue rather than a top-tier emergency. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N) describes an unauthenticated, network-reachable, low-complexity trigger - a single crafted BACnet/IP UDP packet - which is the strongest risk driver here. However, the only reproduced impact is a 1-byte out-of-bounds write past the 1506-byte global 'Tx_Buffer' (npdu_len 15 + apdu_len 1492 = 1507) detected under AddressSanitizer, causing an immediate process abort; the advisory itself frames code execution only as a conditional 'potential basis for further exploitation' depending on build layout and hardening. The input CVSS assigns C:L/I:L/A:H, but the confirmed primitive is overwhelmingly a denial-of-service, so the confidentiality/integrity sub-scores look generous relative to the evidence. The vuln.today decision label is 'this_week' (not act_now/emergency), and no EPSS score, no CISA KEV listing, and no SSVC fields are present in the input - so exploitation-probability and active-exploitation signals are simply absent, not low. A working public PoC (a minimal Python UDP sender) is published in the GHSA advisory, which raises the practical likelihood of opportunistic DoS against exposed routers. Net: treat as a real same-week patching priority for anyone running the router-ipv6 application, but the 'high CVSS' is inflated by C/I sub-scores not borne out by the reproduced DoS.

Exploit ScenarioDerived

An attacker with network reach to a running router-ipv6 instance sends one crafted BACnet/IP UDP packet to the listening port (default 47808) addressed to a non-local destination network (DNET) with an oversized (~1492-byte) APDU. The forwarding path re-encodes the NPDU into the fixed global Tx_Buffer and appends the attacker-controlled APDU with memmove and no capacity check, overflowing the buffer and aborting the process. A public PoC (a minimal Python sender) is included in the GHSA advisory, and no authentication or session setup is required.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 13, 2026

A remote, unauthenticated attacker can drive a global out-of-bounds write in the official router-ipv6 forwarding application that ships with BACnet Stack (bacnet-stack) in versions prior to 1.4.5, 1.5.1 and 1.6.0. The flaw sits in apps/router-ipv6/main.c, where a routed APDU is re-encapsulated into the fixed-size global Tx_Buffer without checking that the encoded NPDU length plus the attacker-supplied APDU length fits, so a single crafted BACnet/IP UDP packet reaches roughly 1507 bytes of write against a 1506-byte buffer and aborts the process under ASan. The reproduced outcome is a reliable crash/denial of service with a controllable write primitive; the vendor advisory publishes a public PoC reproducer, but the issue is not listed in CISA KEV and no exploitation in the wild or working weaponized exploit code has been confirmed, while an EPSS score was not supplied in the available data.

RemediationAI

Upgrade to a fixed release: 1.4.5, 1.5.1 or 1.6.0, choosing the branch that matches your deployment - vendor-released patch: 1.4.5, 1.5.1 and 1.6.0. The fix is PR #1392, which replaces the direct memmove() appends with routed_npdu_apdu_encode(), returning error and logging 'Dropping oversized routed APDU' when npdu_len + apdu_len exceeds sizeof(Tx_Buffer); if an immediate upgrade is not possible, that capacity check can be backported to apps/router-ipv6/main.c as a targeted patch. Because the vulnerable code lives in the router-ipv6 application rather than the core library, an effective interim control is to stop running router-ipv6 where it is not required, or, where it is required, to restrict reachability of its BACnet/IP UDP listener (default 47808) to known BACnet/IP peer addresses via firewall or network segmentation - the trade-off being that legitimate routers/BBMDs outside the allow-list will no longer be able to forward through it. Hosts running router-ipv6 on segmented or isolated OT networks are already partly shielded by that segmentation. The advisory at https://github.com/bacnet-stack/bacnet-stack/security/advisories/GHSA-4p4w-m434-jrhj is the authoritative source for the fix and reproduction details.

Affected VersionsENISA

bacnet-stack < 1.5.1
bacnet-stack < 1.6.0
bacnet-stack < 1.4.5

Affected Packages

euvd bacnet_stack fix: 1.4.5, 1.5.1, 1.6.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

BACnet is a building-automation protocol in which NPDUs carry network-layer routing information and APDUs carry application-layer payloads; a BACnet/IP router receives BVLC-framed NPDUs over UDP (default port 47808) and re-encapsulates forwarded traffic for the next hop. In router-ipv6, main() receives a packet, my_routing_npdu_handler() calls bacnet_npdu_decode(), and for non-network-layer traffic the remainder is handed to routed_apdu_handler() together with an apdu_len derived directly from the network input. routed_apdu_handler() writes a freshly encoded NPDU into the global Tx_Buffer with npdu_encode_pdu() and then performs memmove(&Tx_Buffer[npdu_len], apdu, apdu_len) with no capacity check. Tx_Buffer is sized from the BACnet datalink limits (MAX_APDU 1476 plus NPDU/header overhead), giving 1506 bytes in the reported build; in the reproduction a 15-byte re-encoded routed NPDU plus a 1492-byte APDU yields a one-byte overflow past the end of the global. The root cause is CWE-787 (out-of-bounds write), specifically a missing upper-bound check before the append. The same unchecked append pattern exists in several forwarding branches - global broadcast, directly connected destination, next-router relay and the unknown-route branch used in the repro - so the defect is broader than the single crashing path. The vendor fix (PR #1392) introduces routed_npdu_apdu_encode(), which refuses to encode when npdu_len + apdu_len exceeds sizeof(Tx_Buffer) and logs a 'Dropping oversized routed APDU' error instead. Note that this is a defect in the shipped router-ipv6 example/application, not in the core bacnet-stack library parser itself, so exposure depends on that application actually being deployed and reachable.

Know when Bacnet Stack gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 8.6 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
vuln.today AI 8.2 HIGH

Unauthenticated single-packet trigger gives AV:N/AC:L/PR:N/UI:N; reproduced impact is process abort (A:H) with a 1-byte OOB write to adjacent globals (I:L) and no read primitive (C:N).

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
High

Lifecycle Timeline

2
Patch available
Nov 13, 2026 - 17:19 EUVD
CVE Published
Nov 13, 2026 - 15:57 cve.org
HIGH 8.6

DescriptionCVE.org

BACnet Stack is a BACnet open source protocol stack C library for embedded systems. Prior to versions 1.4.5, 1.5.1, and 1.6.0, there is a remote global-buffer-overflow in the official router-ipv6 application shipped with bacnet-stack, this results in an out-of-bounds write to the global transmit buffer under ASan. This issue has been patched in versions 1.4.5, 1.5.1, and 1.6.0.

Technical POC Analysis

CWE-787 (out-of-bounds write): a missing transmit-buffer capacity check in the routed-APDU forwarding path of the reference router application.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

CVE-2026-58498 is a high-severity out-of-bounds write vulnerability in the BACnet Stack's router-ipv6 application (versions before 1.4.5, 1.5.1, and 1.6.0). A remote, unauthenticated attacker can trigger a reliable denial-of-service crash of the router process by sending a single crafted BACnet/IP packet, disrupting building automation network communications. Leadership should care because this affects operational technology environments relying on BACnet for HVAC, energy management, and other building systems, potentially causing service outages and safety concerns.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 86% exploitable
Prevalence
Low
niche OT/building-automation embedded stack; flaw is in a demo router app
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

43
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +43
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

CVE-2026-26264 HIGH POC
8.1 Feb 13

Unauthenticated remote attackers can crash BACnet Stack prior to versions 1.5.0rc4 and 1.4.3rc2 by sending a malformed W

CVE-2025-66624 HIGH POC
7.5 Dec 05

BACnet Protocol Stack library provides a BACnet application layer, network layer and media access (MAC) layer communicat

CVE-2026-21878 HIGH POC
7.5 Feb 13

BACnet Stack is a BACnet open source protocol stack C library for embedded systems. [CVSS 7.5 HIGH]

CVE-2026-21870 MEDIUM POC
5.5 Feb 13

The BACnet Protocol Stack library versions 1.4.2 and earlier contain an off-by-one buffer overflow in the ubasic interpr

CVE-2026-52788 HIGH
8.8 Nov 13

Out-of-bounds writes in the BACnet/SC Address Resolution ACK URL parser of the BACnet Stack C library let an authenticat

CVE-2026-82414 HIGH
8.8 Nov 13

An out-of-bounds write in the BACnet MS/TP COBS receive path of the bacnet-stack C library lets an attacker who can plac

CVE-2026-62976 HIGH
8.7 Nov 13

Heap out-of-bounds read in the RAMFS-backed FILE object of BACnet Stack (bacnet-stack) 1.5.0 and earlier allows an unaut

CVE-2026-62974 HIGH
8.7 Nov 13

A single malformed BACnet/IP WriteProperty request can lock the official bacnet-stack demo server in a non-terminating r

CVE-2026-41503 HIGH
8.7 Apr 24

Remote attackers can crash BACnet Stack-powered embedded devices (versions prior to 1.4.3) by sending malformed ReadProp

CVE-2026-41502 HIGH
8.7 Apr 24

Remote denial of service in BACnet Stack library versions before 1.4.3 allows unauthenticated attackers to crash embedde

CVE-2026-41475 HIGH
8.7 Apr 24

Out-of-bounds read in BACnet Stack library versions before 1.4.3 allows unauthenticated remote attackers to crash embedd

CVE-2026-104204 HIGH
8.7 Nov 13

Remote unauthenticated denial of service in BACnet Stack before 1.6.1 allows one BACnet/IP WriteProperty request to forc

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy