Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCompromise Wazuh cluster worker node
-
DeliveryCraft JSON response with sort_casting set to exec
-
ExploitEmbed Python payload in affected_items field
-
ExecutionTrigger distributed API request across cluster nodes
-
PersistMaster deserializes worker response and calls getattr(builtins, 'exec')
-
ImpactPayload executes as root on master node
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires prior compromise of at least one Wazuh cluster worker node - either through a separate vulnerability, stolen credentials, or insider access. The attack is only triggerable during distributed API merge operations, which occur exclusively in multi-node Wazuh cluster deployments; standalone (single-node) installations are not exploitable under any conditions. The attacker-controlled worker must be able to send crafted JSON responses to the master over the cluster communication channel (AV:A). Key limiting factors: (1) a worker node must already be under attacker control (PR:H - high privilege prerequisite within the cluster trust model); (2) only clustered Wazuh deployments are affected; (3) the attack is not directly exploitable from the public internet without first breaching a cluster worker; (4) the malicious response must be delivered during an active multi-node API operation. |
| Impact | The CVSS 8.4 score with AV:A/PR:H accurately captures the real-world attack profile: exploitation requires the attacker to already control a cluster worker node, limiting the attack surface to clustered Wazuh deployments only - standalone installations are entirely unaffected. The scope change (S:C) is justified because the trust boundary between worker and master is crossed, yielding root execution on the master. No EPSS score was provided and there is no KEV listing, so exploitation probability from external threat actors is not quantified; however, the attack is not remotely exploitable from the public internet without a prior worker compromise. The real priority signal is environmental: organizations running multi-node Wazuh clusters where worker nodes are internet-exposed, poorly segmented, or shared with less-trusted parties face a critical lateral movement risk. For single-node deployments, this CVE carries no exploitable risk at all. The high-privilege prerequisite meaningfully lowers mass-exploitation potential compared to the raw score suggests. |
| Exploit ScenarioDerived | An attacker who has compromised a Wazuh cluster worker node crafts a malicious API response with sort_casting set to ["exec"] and Python reverse-shell or backdoor code placed in the affected_items array. When the Wazuh master node processes the next distributed API request that triggers a multi-node merge, it resolves exec through getattr(builtins, 'exec') and calls it with the attacker's payload, executing arbitrary code as root on the master. No public proof-of-concept code has been identified, but the exploit is mechanically straightforward given worker node control. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 19, 2026
Remote code execution on the Wazuh cluster master node is achievable by any attacker who controls a cluster worker node, exploiting unsafe Python builtin resolution in the distributed API merge path. Affected versions span 4.0.0 through 4.14.5 and 5.0.0-beta1; the vulnerable code in framework/wazuh/core/results.py called getattr(builtins, type_) with attacker-supplied strings from worker JSON responses, enabling exec or eval injection. No public exploit code has been identified at time of analysis and the vulnerability is not listed in CISA KEV, but the attack primitive is mechanically trivial once a worker node is controlled, with the payload executing as root on the master.
RemediationAI
Upgrade to Wazuh 4.14.6 (https://github.com/wazuh/wazuh/releases/tag/v4.14.6) or 5.0.0-beta2 (https://github.com/wazuh/wazuh/releases/tag/v5.0.0-beta2); these releases introduce a strict sort_casting allowlist validated at both decode and merge stages, confirmed via PR #35757 and commit b29849f8. If immediate patching is not possible, restrict network-layer access between worker and master nodes to trusted, segmented infrastructure so that only legitimate worker hosts can reach the master's cluster communication port - this does not eliminate the vulnerability but raises the bar for exploitation by requiring network-level control first. Additionally, audit all cluster worker nodes for indicators of prior compromise before trusting cluster integrity, as a previously compromised worker may have already staged a payload. There is no configuration toggle to disable the vulnerable code path without patching; the merge operation is fundamental to clustered API functionality.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw resides in AffectedItemsWazuhResult.decode_json() and the merge() function in framework/wazuh/core/results.py (CPE: cpe:2.3:a:wazuh:wazuh:*:*:*:*:*:*:*:*). During distributed cluster API operations, the Wazuh master aggregates JSON responses from worker nodes; each response includes a sort_casting field specifying Python type names used to cast sort keys. The original code resolved these names directly via getattr(builtins, type_), meaning any Python builtin - including exec, eval, compile, or __import__ - was reachable. Placing exec in sort_casting and Python source code in affected_items caused the master to invoke the payload during merge. This is a textbook CWE-502 (Deserialization of Untrusted Data) pattern: network-controlled data drives a code-resolution path with no allowlist. The fix confirmed by PR #35757 and commit b29849f8 introduces ALLOWED_TYPES = {'int', 'float', 'str', 'bool'} with strict validation at both decode and merge stages, rejecting any type name outside that set.
Know when Python 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:A/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
AV:A because worker-to-master communication is cluster-adjacent; PR:H because worker node compromise is required; S:C because trust boundary between worker and master is crossed yielding root RCE.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
Wazuh is a free and open source platform used for threat prevention, detection, and response. From 4.0.0 until 4.14.6 and 5.0.0-beta2, AffectedItemsWazuhResult.merge() in framework/wazuh/core/results.py trusts the sort_casting field in a cluster worker's JSON response. During a distributed API merge, attacker-controlled type names are resolved through Python builtins without an allowlist. A compromised worker can set sort_casting to exec and place Python source in affected_items, causing the master to execute the payload as root when responses from multiple nodes are merged. This issue is fixed in versions 4.14.6 and 5.0.0-beta2.
Executive ViewAI
Wazuh cluster installations (versions 4.0.0-4.14.5 and 5.0.0-beta1) contain a remote code execution vulnerability in the master node that is exploitable by attackers who control a worker node, executing code as root. This undermines the security monitoring infrastructure itself, compromising the reliability of threat detection, alerting, and incident response across the organization.
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
Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-62555
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB