The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-66624

CVE-2025-66624: BACnet Stack DoS Vulnerability

CVE-2025-66624 is a denial of service vulnerability in BACnet Protocol Stack library caused by out-of-bounds reads in npdu_is_expected_reply. This post covers the technical details, affected versions, and mitigations.

Published: April 29, 2026

CVE-2025-66624 Overview

CVE-2025-66624 is an out-of-bounds read vulnerability in the BACnet Protocol Stack library, which provides BACnet application layer, network layer and media access (MAC) layer communications services. The vulnerability exists in the npdu_is_expected_reply function within src/bacnet/npdu.c, where array indexing operations on request_pdu and reply_pdu buffers occur without proper bounds verification. This allows attackers to trigger memory access violations through specially crafted network packets, resulting in denial of service conditions.

Critical Impact

Attackers can remotely crash BACnet-enabled devices or cause undefined behavior by sending malformed PDU packets, disrupting building automation and industrial control systems.

Affected Products

  • bacnetstack bacnet_stack versions prior to 1.5.0.rc2
  • BACnet Protocol Stack version 1.5.0:rc1

Discovery Timeline

  • 2025-12-05 - CVE CVE-2025-66624 published to NVD
  • 2026-02-18 - Last updated in NVD database

Technical Details for CVE-2025-66624

Vulnerability Analysis

The vulnerability is classified as CWE-125 (Out-of-Bounds Read), occurring when the npdu_is_expected_reply() function processes network protocol data units (NPDUs). The function accesses specific offsets within the request and reply PDU buffers (request_pdu[offset+2/3/5] and reply_pdu[offset+1/2/4]) without first validating that those byte positions actually exist within the buffer boundaries.

The bacnet_npdu_decode() function can return an offset value of 2 for a minimal 2-byte NPDU. When this occurs, tiny PDUs pass the initial version check but subsequent array accesses read beyond the allocated buffer boundaries. On systems with Address Sanitizer (ASan), Memory Protection Units (MPU), or strict memory protection builds, this results in an immediate crash. On unprotected builds, the behavior is undefined and may cause reply mis-routing between BACnet devices.

Root Cause

The root cause is insufficient input validation in the npdu_is_expected_reply() function. The code assumes that PDU buffers contain sufficient bytes to access the required offsets for extracting PDU type, invoke ID, and service choice fields. No length checks are performed before the array indexing operations, allowing undersized packets to trigger out-of-bounds memory reads.

Attack Vector

This vulnerability can be exploited remotely over the network without authentication. An attacker can craft malicious BACnet packets with undersized PDUs that pass the protocol version check but contain fewer bytes than expected by the reply matching logic. When processed by a vulnerable BACnet stack implementation, these packets cause out-of-bounds memory access. The attack is particularly concerning for building automation systems, HVAC controllers, and industrial control environments that rely on BACnet communications.

c
     if (request.npdu_data.network_layer_message) {
         return false;
     }
+    if (request_pdu_len <= offset) {
+        return false;
+    }
+    /* confirmed service request? */
     request.pdu_type = request_pdu[offset] & 0xF0;
     if (request.pdu_type != PDU_TYPE_CONFIRMED_SERVICE_REQUEST) {
         return false;
     }
+    if (request_pdu_len <= (offset + 2)) {
+        return false;
+    }
     request.invoke_id = request_pdu[offset + 2];
     /* segmented request? */
     if (request_pdu[offset] & BIT(3)) {
+        if (request_pdu_len <= (offset + 5)) {
+            return false;
+        }
         request.service_choice = request_pdu[offset + 5];
     } else {
+        if (request_pdu_len <= (offset + 3)) {
+            return false;
+        }
         request.service_choice = request_pdu[offset + 3];
     }
     if ((reply_pdu_len > 0) && (reply_pdu[0] != BACNET_PROTOCOL_VERSION)) {

Source: GitHub Commit Update

Detection Methods for CVE-2025-66624

Indicators of Compromise

  • Unexpected crashes or service restarts of BACnet-enabled devices or applications
  • Memory access violation errors in system logs related to BACnet stack components
  • Abnormally small BACnet PDU packets (less than 3 bytes) observed on network traffic
  • Repeated connection attempts with malformed BACnet NPDU headers from external sources

Detection Strategies

  • Deploy network intrusion detection rules to identify malformed BACnet packets with insufficient NPDU length
  • Monitor BACnet/IP traffic (UDP port 47808) for packets with PDU lengths smaller than expected minimums
  • Implement application-level logging in BACnet stack implementations to capture parsing errors
  • Use memory sanitizers (ASan) in development and testing environments to catch out-of-bounds access attempts

Monitoring Recommendations

  • Enable detailed logging for BACnet communication services to track parsing failures
  • Monitor system stability metrics for devices running BACnet Protocol Stack implementations
  • Set up alerts for abnormal crash patterns or service disruptions on building automation controllers
  • Review network traffic patterns for unusual BACnet packet sizes or frequencies

How to Mitigate CVE-2025-66624

Immediate Actions Required

  • Upgrade BACnet Protocol Stack to version 1.5.0.rc2 or later immediately
  • Audit all deployed BACnet-enabled devices and applications for vulnerable library versions
  • Implement network segmentation to isolate BACnet networks from untrusted networks
  • Enable intrusion detection monitoring on BACnet network segments

Patch Information

The vulnerability has been addressed in commit 9378f7d1e70169ebde4a5090bae7603703eadf48. The fix adds proper bounds checking before each array access in the npdu_is_expected_reply() function, verifying that the PDU buffer contains sufficient bytes before indexing. Users should update to BACnet Protocol Stack version 1.5.0.rc2 or later. For detailed patch information, refer to the GitHub Security Advisory GHSA-8wgw-5h6x-qgqg.

Workarounds

  • Restrict network access to BACnet services using firewalls, allowing only trusted IP addresses
  • Implement VPN or encrypted tunnels for remote BACnet communications to limit exposure
  • Deploy network-level packet filtering to drop malformed BACnet packets before reaching vulnerable devices
  • Consider placing vulnerable devices behind application-layer proxies that validate BACnet protocol conformance
bash
# Network isolation example using iptables
# Restrict BACnet/IP traffic (UDP 47808) to trusted network only
iptables -A INPUT -p udp --dport 47808 -s 192.168.1.0/24 -j ACCEPT
iptables -A INPUT -p udp --dport 47808 -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechBacnetstack

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.10%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-125
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-8wgw-5h6x-qgqg
  • Related CVEs
  • CVE-2026-41502: BACnet Stack Buffer Overflow Vulnerability

  • CVE-2026-41503: BACnet Stack Buffer Overflow Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English