Wazuh API Denial-of-Service Vulnerability in Authentication Middleware

Vulnerability

A denial-of-service vulnerability has been identified in the Wazuh API authentication middleware, affecting versions 4.3.0 prior to 4.14.3. The issue arises because the application, which uses an asynchronous event loop, calls a synchronous function that performs blocking disk I/O on every request with a Bearer token. This vulnerability can be exploited by an unauthenticated remote attacker who floods the API with requests containing invalid Bearer tokens. The blocking I/O operations cause the single-threaded event loop to pause repeatedly for file read operations, consuming CPU resources and potentially disrupting the processing of legitimate connections.

Impact

Exploitation of this vulnerability can lead to a significant increase in CPU usage, causing the Wazuh API to hang and timeout legitimate requests. This disruption can prevent the application from processing valid connections, effectively causing a denial-of-service condition.

Reproduction

The vulnerability can be reproduced by sending concurrent HTTP requests to the Wazuh API with invalid Bearer tokens. This can be done using a Python script that utilizes the aiohttp library to open multiple connections, effectively flooding the server with requests. The script can be configured to use aggressive timeouts, allowing it to saturate the server's request queue and cause the event loop to block on file reads, thereby verifying the denial-of-service condition.

Remediation

Users can upgrade to Wazuh version 4.14.3 or later, where this vulnerability has been fixed.

Added: Mar 17, 2026, 7:20 PM
Updated: Mar 17, 2026, 7:20 PM

Vulnerability Rating

Custom Algorithm
spread
6.2
impact
2.5
exploitability
9.5
remediation
7.7
relevance
4.0
threat
6.4
urgency
2.9
incentive
8.3

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.