/

CVE-2026-47258

Severity:

HIGH RISK

(8.2)

Stack Overflow (CWE-121) in BACnet Notification Class

CVE-2026-47258

Undergoing Analysis

Vulnerability type

Category:

Stack-Based Buffer Overflow

CWE:

CWE-20, CWE-121, CWE-129, CWE-787

Impact:

Memory corruption and potential denial of service; further code execution impact may depend on the environment

Severity:

HIGH RISK

(8.2)

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 contains a stack-based out-of-bounds write in the Notification Class object when processing an AddListElement operation for the recipient-list property. A request that reaches this code path may corrupt memory, potentially disrupting the process or causing more serious effects depending on the deployment and runtime protections.

Affected context

The issue is in BACnet Stack's Notification Class object implementation, specifically handling AddListElement for the recipient-list property. It affects deployments using vulnerable releases where this operation can reach the affected code path. The description does not specify authentication requirements or additional deployment conditions.

Exploit preconditions

  • Attack surface: A BACnet service using the affected Notification Class implementation
  • Required access: The ability to cause an AddListElement operation to be processed; whether authentication is required depends on deployment controls
  • Trigger point: Handling an AddListElement operation for the recipient-list property
  • Why exploitation is possible: The operation can cause a write beyond the bounds of a stack-based buffer

Why this happens

The implementation performs a stack-based write without adequately ensuring that the destination buffer can hold the data being handled. This is a stack-based buffer overflow, mapping to CWE-121; it is also an out-of-bounds write (CWE-787). Input validation and bounds checks must ensure recipient-list operations cannot exceed the storage capacity.

Potential impact

  • The process may crash or become unavailable
  • Memory corruption could affect other data used by the process
  • Depending on platform protections and runtime conditions, corrupted memory could have more serious security consequences

General mitigation guidance

Mitigation generally focuses on ensuring that recipient-list operations cannot write beyond their allocated storage.

Common defensive patterns include:

  • Enforcing bounds checks before copying or appending data to fixed-size buffers
  • Rejecting inputs that exceed defined protocol or implementation limits
  • Using memory-safe abstractions or APIs that track destination capacity
  • Limiting access to BACnet operations according to least-privilege principles
  • Applying defense-in-depth runtime protections and testing boundary conditions

How teams detect issues like this

High-level detection approaches include:

  • Static analysis for unchecked writes, buffer operations, and mismatches between input lengths and destination capacity
  • Code review of recipient-list handling and AddListElement paths
  • Boundary-focused tests for empty, maximum-sized, and oversized list values
  • Policy checks that require bounds validation for fixed-size buffer operations

Automated code review tools may help identify risky memory-handling patterns.

Sources

SourceLink
github.comgithub.com/bacnet-stack/bacnet-stack/pull/1353
github.comgithub.com/bacnet-stack/bacnet-stack/security/advisories/GHSA-rjmv-3mcm-r83j

Frequently asked

questions

The description does not establish a specific network exploit path. Exposure depends on whether an attacker can cause a BACnet service to process the affected operation.

Access sufficient to invoke or influence the AddListElement operation is needed. Authentication and authorization requirements depend on the deployment.

Check destination capacity before every write and reject operations whose data would exceed the recipient-list storage bounds.

Use capacity-aware memory handling, validate protocol inputs against strict limits, and test boundary cases with static and dynamic analysis.

Find out what's already
exploitable in your codebase.