/

CVE-2026-47217

Severity:

HIGH RISK

(7.5)

Uncontrolled Recursion (CWE-674) in BACnet Stack Server

CVE-2026-47217

Undergoing Analysis

Vulnerability type

Category:

Uncontrolled Recursion

CWE:

CWE-20, CWE-400, CWE-674, CWE-754

Impact:

Denial of Service

Severity:

HIGH RISK

(7.5)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

BACnet Stack's default server application can enter uncontrolled recursion when processing a Channel object. A remote attacker who can reach the server may trigger a stack overflow and disrupt service.

Affected context

The issue occurs in the default server application of the BACnet Stack C library for embedded systems. It affects versions before 1.4.4 and 1.5.1 when remote Channel object input reaches the vulnerable processing path.

Exploit preconditions

  • Attack surface: The BACnet server's network protocol handling
  • Required access: Network reachability to the server; the description does not specify whether authentication is required
  • Trigger point: Processing of a Channel object
  • Why exploitation is possible: The input can cause uncontrolled recursion that consumes the server process's stack

Why this happens

The server processes Channel object input in a way that can repeatedly re-enter processing logic without adequate bounds or termination checks. This is uncontrolled recursion, mapped to CWE-674. The issue also relates to improper input validation (CWE-20), uncontrolled resource consumption (CWE-400), and insufficient handling of exceptional conditions (CWE-754).

Potential impact

  • The server may crash or become unresponsive due to stack exhaustion.
  • BACnet services could be interrupted until the application recovers or restarts.
  • Repeated triggering could cause sustained availability impacts.

General mitigation guidance

Defensive patterns include bounding recursion depth, ensuring recursive processing has clear termination conditions, and rejecting malformed or unexpected object inputs before they reach vulnerable logic. Prefer secure-by-default parsing and protocol handling that limits resource consumption. Restrict network exposure to trusted systems where practical, and run the server with only the privileges and resources it needs.

How teams detect issues like this

  • Use static analysis to identify recursive call paths without clear bounds or termination conditions.
  • Review Channel object handling for input-dependent recursion and unchecked resource use.
  • Test protocol handlers with malformed and deeply nested inputs in controlled environments.
  • Apply network policies to limit which clients can reach BACnet services, and monitor for repeated requests associated with service instability.

Sources

SourceLink
github.comgithub.com/bacnet-stack/bacnet-stack/pull/1345
github.comgithub.com/bacnet-stack/bacnet-stack/security/advisories/GHSA-wjw5-q9g6-2764

Frequently asked

questions

Yes. The issue is described as remotely triggerable when an attacker can reach the BACnet server and exercise the vulnerable Channel object processing path.

The available description does not specify an authentication requirement. Network reachability and access to the relevant protocol handling are the stated conditions.

Bound recursion and resource use, validate inputs before processing, and ensure recursive paths have reliable termination conditions.

Combine code review and static analysis for unbounded recursion with controlled protocol testing and network access restrictions.

Find out what's already
exploitable in your codebase.