Wazuh NULL Pointer Dereference Vulnerability in fim_alert Function

Vulnerability

A NULL pointer dereference vulnerability has been identified in Wazuh versions prior to 4.11.0. The issue arises in the fim_alert() function, where the return value of ctime_r is not properly checked before being passed to strdup(). This flaw can be exploited by a compromised agent that sends a specially crafted message to the Wazuh manager, causing the analysisd process to crash and become unavailable.

Impact

Exploitation of this vulnerability leads to a crash of the analysisd process, causing it to become unavailable. This disruption can be leveraged by an attacker to create a denial-of-service condition on the Wazuh manager.

Reproduction

The vulnerability can be reproduced by sending a crafted message from a Wazuh agent to the manager. The message must be designed to trigger the NULL return value from ctime_r, which occurs when the modification time exceeds the maximum value that ctime_r can handle. This can be done by manipulating the 'mtime' value in the message to create a scenario where the fim_alert() function attempts to process an invalid time, leading to a NULL pointer dereference.

Remediation

Users can upgrade to Wazuh version 4.11.0 or later to address this vulnerability.

Added: Oct 29, 2025, 5:21 PM
Updated: Oct 29, 2025, 5:21 PM

Vulnerability Rating

Custom Algorithm
spread
6.2
impact
0.6
exploitability
9.5
remediation
7.7
relevance
0.8
threat
6.4
urgency
2.9
incentive
10.0

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