Heap buffer overflow in Wazuh wazuh-manager can terminate wazuh-analysisd

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-74045?

CVE-2026-74045 is a vulnerability classified as Heap-based Buffer Overflow, affecting wazuh-manager (affected versions: 3.12.0 – < 4.14.8). This vulnerability is rated High, with a CVSS score of 7.1. Public exploit code or evidence is available for this vulnerability, but that does not confirm exploitation in the wild.

Overview

Original source data

Wazuh from 3.12.0 before 4.14.8 contains a heap buffer overflow in fim_generate_alert() where full_log is sized from input but written bounded by OS_MAXSTR. An enrolled agent can send a crafted FIM syscheck event to corrupt manager heap memory and deterministically crash wazuh-analysisd, causing a fleet-wide detection outage.

Affected products and scope

  • Wazuh wazuh-manager: the normalized record and VulnCheck advisory identify versions from 3.12.0 through less than 4.14.8 as affected.
  • 4.14.8 is marked unaffected in the affected data, and its release notes confirm a fix that resizes full_log before writing the FIM alert.
  • The Wazuh advisory verifies at source level that both parts of the defect are present from 4.0.0 through 4.14.7; it identifies 4.0.0 as the earliest directly verified lower bound and does not make the same source-level claim for older releases.
  • Therefore, 3.12.0 through less than 4.14.8 is the record-supported affected range, while detailed source verification for releases before 4.0.0 remains limited as described above.

Technical details

The flaw is in the JSON-FIM processing path of wazuh-analysisd, where agent-controlled FIM event data is used to build an alert. lf->full_log is allocated from the input length in src/analysisd/cleanevent.c, but fim_generate_alert() in src/analysisd/decoders/syscheck.c writes to the same buffer with an OS_MAXSTR limit rather than the actual allocation size. The generated alert can be longer than the input because of fixed text and expansion of selected values, so the write can run past the end of the heap allocation. The JSON-FIM path does not resize the buffer before the write, unlike the checksum path, which frees and reallocates the buffer. An enrolled agent can send a crafted FIM syscheck event through the agent channel to the manager, and the demonstrated test required no direct manager-side access. wazuh-analysisd runs as root on the manager, but the available evidence confirms only an out-of-bounds write, adjacent heap corruption, and a deterministic remote crash; control-flow hijacking and remote code execution have not been demonstrated.

Exploitability

The attack path is network reachable through the channel used by an agent to send events to the Wazuh manager. The attacker must control an enrolled agent or another component able to write to the manager's local event queue; the demonstrated test used a valid agent and did not require manager-side access. No end-user interaction is required, and a crafted event can terminate wazuh-analysisd after a number of sends that depends on heap layout. The record marks a public exploit as available, and the Wazuh advisory documents a proof of concept for heap corruption and daemon termination. The supplied evidence does not establish in-the-wild exploitation or use in a specific campaign, and it does not demonstrate remote code execution.

Technical impact

  • The demonstrated technical outcome is an out-of-bounds heap write that can corrupt adjacent allocation data and remotely crash wazuh-analysisd.
  • Because wazuh-analysisd is the correlation engine that processes rules and generates alerts for agents, stopping it can remove detection coverage across the deployment.
  • The attack requires an enrolled agent or another trusted event-writing path, so it is not anonymous unauthenticated network access to the manager.
  • Data disclosure and remote code execution have not been demonstrated. The advisory also states that control-flow hijacking was not developed.

Business impact

  • When wazuh-analysisd stops, Wazuh cannot generate alerts for the deployment while the correlation component is unavailable.
  • The primary operational consequence is loss or interruption of centralized detection, creating a blind spot that can delay triage or containment of other activity.
  • A compromised endpoint that still holds a valid agent key can trigger the outage through a legitimate system communication path, making the event resemble instability.
  • The available evidence shows adjacent heap corruption and process termination, but does not demonstrate data disclosure or arbitrary code execution.

Remediation

  1. Upgrade wazuh-manager to exactly 4.14.8, the release identified as fixing the FIM alert heap write by resizing full_log before use.
  2. If the upgrade cannot be performed, no product-level workaround is supplied in the record. For maintainers, the documented fix is to reallocate full_log for the generated output before calling snprintf, or to pass the actual allocation size instead of OS_MAXSTR; the latter converts the overflow into truncation but still requires full validation.
  3. Prioritize managers receiving events from agents that may be compromised, but treat exposure reduction as temporary risk management rather than a fix.
  4. Do not treat the fix for a different issue in 4.14.5 as remediation for this flaw; the advisory states that the relevant code remained unchanged through 4.14.7.

Detection

  • Inventory every Wazuh manager and compare the installed wazuh-manager version with the affected range; identify systems running wazuh-analysisd separately.
  • Review service logs and process supervision telemetry for unexpected wazuh-analysisd termination or restart, especially when it coincides with FIM or syscheck events.
  • Check manager logs for the observed heap-corruption symptom: wazuh-analysisd: ERROR: FIM decoder: Bad response from database: Invalid agent ID 'ere:'. Treat this as supporting investigation evidence, not as a unique IOC or proof of safety when absent.
  • Review gaps in alert generation for all agents after unusual FIM activity, and preserve the relevant manager logs and events for investigation.
  • The absence of a crash, restart, or the noted log message does not rule out exposure; version verification remains the decisive check.
Sources (7)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.