Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain access to monitored log source or agent
-
DeliveryCraft log event with srcip containing ../ sequences
-
ExploitTrigger Wazuh alert matching ip-customblock rule
-
ExecutionActive response daemon resolves traversal path as root
-
PersistCreate or delete arbitrary file on manager host
-
ImpactDisrupt authentication, configuration, or establish persistence
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The ip-customblock active response must be explicitly configured and enabled in Wazuh - it is not active by default, and deployments using only the sibling scripts (host-deny, default-firewall-drop, firewalld-drop) are not affected. An attacker must be able to inject a crafted srcip value into an alert-triggering log event; this requires one of: write access to a log source monitored by Wazuh, control over a Wazuh agent on a monitored host, or the ability to generate network traffic parsed by a Wazuh rule that exposes the srcip field. The CVSS PR:L metric reflects this requirement for low-level privileged access to the monitored environment. Exploitation is limited to Linux/Unix hosts running the Wazuh manager with ip-customblock configured; the impact is bounded to the manager host's filesystem, not agent hosts. |
| Impact | CVSS 8.1 (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H) is well-supported by the description: network vector is accurate because alert srcip values originate from remotely sourced log events; PR:L correctly reflects that some foothold - control over a monitored log source, a Wazuh agent, or a log pipeline - is required to inject crafted srcip values; no confidentiality impact aligns with file creation/deletion rather than data exfiltration. The absence of scope change (S:U) is accurate as impact stays on the Wazuh host. Real-world risk is meaningfully gated by the deployment condition: ip-customblock must be explicitly configured as an active response, which is non-default. Environments that have deployed it are directly threatened, since a compromised monitored endpoint is a realistic and common attacker position. No EPSS data was provided and no KEV listing exists, so exploitation probability cannot be quantified; however, the missing validation is straightforward enough that POC development is low-effort for any researcher comparing ip-customblock.c against its sibling scripts. The combination of root-level execution, file deletion capability targeting credentials and configuration, and a clear, narrow fix makes this a genuine remediation priority for any Wazuh deployment using ip-customblock. |
| Exploit ScenarioDerived | An attacker with control over a Wazuh-monitored endpoint or its log pipeline crafts a log event that triggers an ip-customblock rule, setting the srcip field to a traversal string such as ../../etc/cron.d/evil. When Wazuh fires the active response, the daemon constructs the path /ipblock/../../etc/cron.d/evil, resolving to /etc/cron.d/evil, and opens it in append mode as root - creating a foothold for scheduled execution. Alternatively, using the unblock action with srcip set to ../../etc/passwd, the attacker causes remove() to delete /etc/passwd as root, disrupting authentication across the entire host. No public proof-of-concept exploit has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 28, 2026
Path traversal in Wazuh's ip-customblock active response script allows low-privileged remote attackers to create or delete arbitrary files as root by injecting directory traversal sequences into the srcip field of alert-triggering log events. Versions prior to 4.14.7 are affected when ip-customblock is configured as an active response - the block action creates an empty file at an attacker-controlled path, while the unblock action deletes it, both executing as root and enabling destruction of credentials, configuration, or other critical files. No public exploit has been identified at time of analysis, and this CVE is not listed in the CISA KEV catalog, though the missing validation is trivially observable by comparing ip-customblock.c against its sibling scripts.
RemediationAI
Upgrade Wazuh to version 4.14.7 or later, which resolves the issue by inserting a get_ip_version() validation call that rejects any srcip value that is not a well-formed IP address before path construction proceeds. The fix commit is at https://github.com/wazuh/wazuh/commit/e6ef99025b2ca4ba8003efb591c51545006bc2d4 and the vendor advisory is at https://github.com/wazuh/wazuh/security/advisories/GHSA-m4mf-qmhf-8vj6. If immediate upgrade is not possible, disable the ip-customblock active response in Wazuh configuration - the trade-off is loss of the custom IP blocking capability for the associated alert rules, which must be accepted or covered by an alternative blocking mechanism. As a secondary compensating control, restrict which agents and log sources can trigger active responses, reducing the set of principals capable of injecting crafted srcip values; this narrows but does not eliminate the attack surface.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Wazuh's active response framework executes C scripts when alert conditions are met. The vulnerable script ip-customblock.c reads the srcip field from incoming alert JSON and concatenates it directly onto the hardcoded base path /ipblock/ to construct a file path, then opens that path in append mode (block action) or passes it to remove() (unblock action). Unlike the sibling scripts host-deny.c, default-firewall-drop.c, and firewalld-drop.c - which all call get_ip_version() to validate that srcip is a well-formed IP address before use - ip-customblock.c omitted this check entirely, leaving the raw string unchecked. The root cause is CWE-22 (Improper Limitation of a Pathname to a Restricted Directory). The fix in commit e6ef99025b2ca4ba8003efb591c51545006bc2d4 inserts the identical get_ip_version() guard and returns OS_INVALID on non-IP input. The active response daemon runs as root, so the accessible filesystem scope is unrestricted. Affected CPE: cpe:2.3:a:wazuh:wazuh:*:*:*:*:*:*:*:*.
Know when Wazuh gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Network vector applies as crafted srcip values arrive via remote log events; PR:L reflects required log pipeline or agent access; C:N because only file creation and deletion occur, not data disclosure.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
DescriptionCVE.org
Wazuh is an open-source security platform providing unified XDR and SIEM protection for endpoints and cloud workloads. The ip-customblock active response script contains a path traversal vulnerability that lets an attacker create or delete arbitrary files on the filesystem as root. The script builds a file path by concatenating the srcip field taken from alert JSON directly onto the fixed /ipblock/ base directory, without validating that the value is a well-formed IP address. Because the extraction routine returns the raw string unchecked, an attacker who can trigger alert-matching log events with a crafted srcip containing ../ sequences can escape the base directory. The block action opens the resulting path in append mode, creating an empty file at an arbitrary location, while the unblock action passes it to remove(), deleting an arbitrary file; since the active response daemon runs as root, this includes sensitive files such as system credentials and Wazuh configuration. Unlike the sibling scripts host-deny.c, default-firewall-drop.c, and firewalld-drop.c, which reject non-IP input via get_ip_version(), ip-customblock.c omits this validation. This issue is fixed in version 4.14.7.
Executive ViewAI
Wazuh versions before 4.14.7 contain a path traversal vulnerability in the ip-customblock active response script that allows remote attackers to create or delete arbitrary files with root privileges. This affects organizations using Wazuh for security monitoring and incident response, potentially enabling attackers to destroy credentials, tamper with security configurations, or disable monitoring capabilities entirely.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Affected Products (CPE)CVE.org
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
In the wazuh-slack active response script in Wazuh 4.2.x before 4.2.5, untrusted user agents are passed to a curl comman
Path-traversal-driven root code execution affects the Wazuh security platform's cluster synchronization layer in version
Arbitrary file read in Wazuh cluster deployments (4.0.0 through 4.14.5, and 5.0.0-beta1/beta2) lets a peer node that alr
Arbitrary file write leading to root remote code execution affects Wazuh worker nodes in clustered deployments running v
A critical deserialization vulnerability in Wazuh's cluster mode allows attackers with access to any worker node to achi
Remote code execution on the Wazuh cluster master node is achievable by any attacker who controls a cluster worker node,
The agent in OSSEC through 3.1.0 on Windows allows local users to gain NT AUTHORITY\SYSTEM access via Directory Traversa
Cluster key disclosure in Wazuh Manager versions 4.0.0 through 4.14.4 enables a two-stage privilege escalation: a low-pr
Unauthenticated remote denial of service in the Wazuh cluster daemon (wazuh-clusterd) allows a network peer to exhaust p
Arbitrary file deletion on a Wazuh manager via the cluster synchronization protocol allows a cluster-authenticated attac
CVE-2024-1243 is an improper input validation vulnerability in Wazuh agent for Windows (versions prior to 4.8.0) that al
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB