
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-28220 is a deserialization and RBAC context injection vulnerability in Wazuh's Cluster Distributed API (DAPI) that allows an authenticated cluster peer to execute privileged functions on the master node while bypassing authorization controls. It affects Wazuh versions >= 4.0.0 and was fixed in version 4.14.5. The vulnerability was published on July 20, 2026, with the GitHub Security Advisory (GHSA-w2jj-pfq9-mh9p) originally published July 16, 2026. It carries a CVSS v3.1 base score of 8.4 (High) (GitHub Advisory).
The vulnerability comprises two chained weaknesses. First, unsafe callable deserialization (CWE-502): the cluster code in framework/wazuh/core/cluster/common.py deserializes JSON using as_wazuh_object(), which resolves any {"__callable__": {"__module__": "...", "__name__": "..."}} structure into a live Python callable, with the only restriction being that the top-level package is wazuh or api — an overly broad allowlist (ALLOWED_CALLABLES_PACKAGES). Second, RBAC context injection (CWE-863): DAPI requests handled in framework/wazuh/core/cluster/dapi/dapi.py accept a client-supplied rbac_permissions value that run_local() applies as the global RBAC context; supplying rbac_mode: "black" with no deny rules causes _black_expansion() in framework/wazuh/rbac/decorators.py to expand all required resources as allowed, bypassing @expose_resources-protected function authorization without any legitimate permission. An attacker must be able to authenticate to the cluster channel using the shared cluster key, and a proof-of-concept script (poc_dapi_3primitives.py) was verified against Wazuh 4.14.3 in a multi-node Docker deployment (GitHub Advisory).
Successful exploitation allows an authenticated cluster peer to perform arbitrary privileged administrative actions on the Wazuh master node, including arbitrary file writes under WAZUH_PATH (e.g., /var/ossec/etc/), creation of new backdoor API users with elevated privileges, and tampering with security.yaml (e.g., altering token timeouts and RBAC mode). These capabilities can be chained into full manager compromise, enabling an attacker to influence worker nodes and agents, disable or manipulate monitoring and response across the entire fleet, and establish persistent access via long-lived API credentials (GitHub Advisory).
ossec.conf on a compromised worker node or via misconfigured access controls).{"__callable__": {"__module__": "<wazuh_module>", "__name__": "<function>"}} structure targeting a privileged internal function (e.g., file write or user creation utilities).rbac_permissions field with rbac_mode: "black" and no deny rules to bypass RBAC authorization checks.APIRequestQueue.run() to deserialize and execute the attacker-controlled callable under the injected RBAC context./var/ossec/etc/.POST /security/user/authenticate to obtain a JWT token for persistent access.security.yaml to alter RBAC mode or token settings, weakening the security posture.__callable__ JSON structures or rbac_mode: black in the payload around a suspicious timestamp; authentication events for newly created API users not provisioned by administrators./var/ossec/etc/ (e.g., poc_rce_marker.xml or unknown .xml/.conf files); modifications to /var/ossec/api/configuration/security/security.yaml with altered token_exp_timeout or rbac_mode values.POST /security/user/authenticate.wazuh or api module functions not part of normal cluster operations (GitHub Advisory).Upgrade Wazuh to version 4.14.5 or later, which contains the official fix for this vulnerability. As interim mitigations: restrict network access to the cluster communication port (TCP 1516) to only trusted, known cluster peer IP addresses using firewall rules; implement strict access controls on the shared cluster key and rotate it if there is any possibility of exposure; and audit existing API users and security.yaml for unauthorized modifications. Monitor cluster logs for anomalous DAPI requests containing callable deserialization patterns or unexpected rbac_mode values (GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."