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-2026-28221

CVE-2026-28221: Wazuh Buffer Overflow Vulnerability

CVE-2026-28221 is a stack-based buffer overflow flaw in Wazuh's wazuh-remoted component that allows unauthenticated remote attackers to trigger out-of-bounds writes. This article covers technical details, affected versions, and patches.

Published: April 30, 2026

CVE-2026-28221 Overview

A stack-based buffer overflow vulnerability has been identified in Wazuh, the free and open source platform used for threat prevention, detection, and response. The vulnerability exists in the print_hex_string() function within wazuh-remoted and affects versions 4.8.0 through 4.14.3. This flaw can be triggered remotely without authentication, making it a significant concern for organizations running vulnerable Wazuh deployments.

Critical Impact

Remote attackers can exploit this stack-based buffer overflow via TCP/1514 before any agent authentication or registration logic, potentially achieving out-of-bounds writes and enabling log amplification attacks that degrade monitoring capabilities.

Affected Products

  • Wazuh versions 4.8.0 through 4.14.3
  • Wazuh wazuh-remoted component
  • Systems where char is treated as signed and compiled code sign-extends bytes before variadic calls

Discovery Timeline

  • 2026-04-29 - CVE-2026-28221 published to NVD
  • 2026-04-29 - Last updated in NVD database

Technical Details for CVE-2026-28221

Vulnerability Analysis

This vulnerability is classified as CWE-121 (Stack-based Buffer Overflow). The flaw resides in the print_hex_string() function of the wazuh-remoted component, which is responsible for formatting diagnostic hex output. The bug manifests when the function processes attacker-controlled bytes using sprintf(dst_buf + 2*i, "%.2x", src_buf[i]) on platforms where the char type is treated as signed.

When sign extension occurs for bytes such as 0xFF, the formatting operation can emit "ffffffff" (8 characters) instead of the expected "ff" (2 characters). This expanded output causes an out-of-bounds write past a fixed 2049-byte stack buffer, creating the conditions for stack corruption.

The vulnerable code path is accessible remotely without authentication, as it can be reached via TCP port 1514 when an oversized length prefix triggers the "unexpected message (hex)" diagnostic path. This occurs prior to any agent authentication or registration logic being invoked.

Root Cause

The root cause of this vulnerability is improper handling of signed character values during hex string formatting. When the C compiler treats char as a signed type and the compiled code sign-extends bytes before passing them to variadic functions like sprintf(), bytes with high bit set (values >= 0x80) are interpreted as negative values. This results in sign extension to a full 32-bit signed integer, causing the %.2x format specifier to emit 8 hexadecimal characters instead of 2.

The fixed-size 2049-byte stack buffer cannot accommodate this expanded output when processing a sufficient number of high-value bytes, leading to stack buffer overflow conditions.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by:

  1. Establishing a TCP connection to port 1514 on a vulnerable Wazuh server
  2. Sending a message with an oversized length prefix that triggers the diagnostic code path
  3. Including bytes with values >= 0x80 (such as 0xFF) to trigger sign extension behavior
  4. Causing stack buffer overflow when the expanded hex output exceeds the 2049-byte buffer

Additionally, the same unauthenticated oversized-message diagnostic path writes attacker-controlled hex dumps to /var/ossec/logs/ossec.log for each trigger attempt. This enables a secondary log amplification attack that can consume disk space and I/O resources, degrading monitoring fidelity even when using bytes below 0x80 that don't trigger the overflow condition.

Detection Methods for CVE-2026-28221

Indicators of Compromise

  • Unexpected large hex dump entries in /var/ossec/logs/ossec.log containing diagnostic messages
  • Unusual network traffic patterns to TCP port 1514 with oversized message prefixes
  • Evidence of wazuh-remoted process crashes or unexpected restarts
  • Rapid disk space consumption in /var/ossec/logs/ directory
  • Log entries containing extended hex sequences like ffffffff patterns

Detection Strategies

  • Monitor wazuh-remoted process stability for unexpected crashes or restarts that may indicate exploitation attempts
  • Implement network traffic analysis on TCP port 1514 to detect anomalous message sizes or patterns
  • Configure log rotation and size monitoring for /var/ossec/logs/ossec.log to detect amplification attacks
  • Deploy SentinelOne Singularity to detect stack-based buffer overflow exploitation patterns

Monitoring Recommendations

  • Set up alerting for abnormal growth rates in Wazuh log files that could indicate log amplification
  • Monitor system resource utilization (disk I/O, CPU) on Wazuh server hosts for signs of denial-of-service activity
  • Implement network segmentation to limit exposure of TCP port 1514 to trusted agent networks only
  • Enable core dump collection and analysis for wazuh-remoted to capture evidence of exploitation attempts

How to Mitigate CVE-2026-28221

Immediate Actions Required

  • Upgrade to Wazuh version 4.14.4 or later immediately to address the vulnerability
  • Restrict network access to TCP port 1514 to only trusted Wazuh agent IP addresses using firewall rules
  • Review /var/ossec/logs/ossec.log for signs of prior exploitation or log amplification attempts
  • Implement rate limiting on incoming connections to TCP port 1514 to reduce amplification impact

Patch Information

Wazuh has released version 4.14.4 which addresses this stack-based buffer overflow vulnerability. Organizations should upgrade to this version as the primary remediation. Detailed patch information is available in the Wazuh Release v4.14.4 release notes and the GitHub Security Advisory GHSA-q9vv-7w4c-f4cm.

Workarounds

  • Implement strict firewall rules to allow TCP port 1514 access only from known and trusted Wazuh agent IP addresses
  • Deploy a reverse proxy or network appliance with connection rate limiting in front of the Wazuh server
  • Monitor log directory disk usage and implement aggressive log rotation to mitigate amplification impact
  • Consider temporarily disabling diagnostic logging if the service cannot be immediately upgraded
bash
# Example: Restrict TCP/1514 access to trusted agent subnet only
iptables -A INPUT -p tcp --dport 1514 -s 10.0.0.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 1514 -j DROP

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechWazuh

  • SeverityMEDIUM

  • CVSS Score6.5

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-121
  • Technical References
  • Wazuh Release v4.14.4

  • GitHub Security Advisory GHSA-q9vv-7w4c-f4cm
  • Related CVEs
  • CVE-2026-41499: Wazuh Buffer Overflow Vulnerability

  • CVE-2023-7340: Wazuh authd Buffer Overflow Vulnerability

  • CVE-2026-32984: Wazuh Buffer Overflow Vulnerability

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

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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