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.

