Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with agent:read on one agent
-
DeliveryCraft q=name=:search with UNION payload in search
-
ExploitTrigger placeholder cross-contamination injecting SQL
-
ExecutionRun blind boolean oracle on total_affected_items
-
ImpactExfiltrate every agent's internal_key secret
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated Wazuh API account (port 55000) holding agent:read on at least one agent - the minimum useful privilege - and at least two agents enrolled so the attacker can read secrets of agents outside their RBAC scope; this matches the PR:L metric. The flaw is in default WazuhDBBackend._substitute_params behavior, so no non-default configuration is needed. Exploitation uses the q and search parameters (q=name=:search collides with the :search placeholder) and depends on the blind boolean oracle exposed through the total_affected_items response field; direct UNION row exfiltration is blocked, so only the count-based oracle path works. Limiting factors: a valid low-privilege API credential is mandatory (no unauthenticated path), network reachability to the API, and the presence of other enrolled agents whose internal_key is worth extracting. |
| Impact | Signals are moderate and internally consistent rather than alarming. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H, VI:N/VA:N, score 7.1) describes a network-reachable, low-complexity, confidentiality-only flaw that requires an authenticated low-privilege account (PR:L) - so this is not an unauthenticated internet-wide exposure. The vuln.today decision label is 'this_week' (not act_now/emergency), VulnCheck is the reporter, and the GHSA advisory embeds a full Python exploit confirmed working against a live Wazuh Manager 4.14.7, so a public working PoC exists even though the input provides no explicit 'POC: Publicly available (confirmed)' field. No CISA KEV entry is present in the input and no EPSS score was supplied, so there is no evidence of active or widespread exploitation at this time. What elevates real-world concern above the modest confidentiality-only CVSS is the specific asset leaked: the 64-character internal_key pre-shared agent-manager secret for EVERY enrolled agent, extractable from an account scoped to a single agent - a credential-disclosure impact that can enable downstream agent impersonation, which the base metrics (VI:N/VA:N) do not capture. Net assessment: a genuine this-week patching priority for Wazuh operators because of the RBAC-bypassing secret disclosure and public PoC, but tempered by the requirement for a pre-existing authenticated agent:read account and at least two enrolled agents, which limits the attacker population to insiders or those who have already obtained low-privilege API credentials. |
| Exploit ScenarioDerived | An authenticated API user holding only agent:read on a single agent sends crafted /agents requests where q=name=:search collides with the :search placeholder, causing sequential regex substitution to splice attacker SQL into an already-quoted literal and execute a UNION SELECT against the manager's global.db. By embedding SUBSTR(internal_key,...)=CHAR(...) conditions and watching whether total_affected_items increases, the attacker runs a blind boolean oracle that reconstructs the 64-character internal_key of every enrolled agent character by character. A working PoC script is published in the GHSA advisory and was confirmed on a live Wazuh Manager 4.14.7. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 06, 2026
SQL injection in Wazuh Manager 4.0.0 through 4.14.8 lets an authenticated API user who holds only agent:read on a single agent extract the 64-character internal_key (the pre-shared agent-to-manager authentication secret) of every other enrolled agent. The flaw is a placeholder cross-contamination bug in WazuhDBBackend._substitute_params: a q filter value containing the literal placeholder name (e.g. q=name=:search) causes the later :search substitution to splice an attacker value inside an already-quoted string, breaking out into raw SQL against global.db. Direct UNION row output is suppressed by internal count logic, so extraction works through a blind boolean oracle on the total_affected_items response field; the vendor advisory publishes a worked proof-of-concept demonstrated against a live Wazuh Manager 4.14.7 instance, and no evidence of in-the-wild exploitation was provided (no CISA KEV listing).
RemediationAI
Upgrade Wazuh Manager to 4.14.9, the first release containing the fix (release notes and build artifacts at https://github.com/wazuh/wazuh/releases/tag/v4.14.9; vendor advisory GHSA-qj88-7rr2-4chx at https://github.com/wazuh/wazuh/security/advisories/GHSA-qj88-7rr2-4chx). No patched version is listed for the 5.x main branch, where the advisory reports the vulnerable substitution code is still unchanged, so 5.1.0-alpha0 deployments have no vendor-confirmed fix and should not rely on the 4.14.9 release. Because exploitation requires a valid API account (port 55000) holding agent:read, interim exposure reduction on unpatched managers consists of restricting network reachability to the Wazuh API to trusted administrative sources and reviewing which accounts and roles carry agent:read on any agent - each such account is a potential injection point, and the trade-off is that broad agent-fleet read access for monitoring staff and integrations must be narrowed or fronted by a proxy. Patches should be prioritised this week per the assigned decision label; the vendor advisory documents no alternative code-level workaround beyond updating.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CWE-89 injection arises because WazuhDBBackend._substitute_params (framework/wazuh/core/utils.py:1117-1141) performs sequential re.sub passes over the entire query string for each request parameter, one placeholder at a time, using manual quoting (f"'{v}'") without escaping. Because each pass rescans text inserted by earlier passes, a value that contains the literal name of a not-yet-substituted placeholder is re-substituted: _parse_query stores request['name$0'] = ':search' from q=name=:search, _add_search_to_query later stores request['search'] = '%<attacker_value>%', and the :search pass then rewrites the :search text sitting inside the quoted name literal, terminating the string and turning the remainder into SQL. The intermediate sanitisation layers are insufficient for this class of bug: _clean_filter only strips quote characters, the _search_param validator regex blocks ;, |, &, ^, * and > but permits UNION, SELECT, parentheses, = and %, the q parameter has no format validation, the query_regex value class explicitly allows :, $, spaces, = and %, and wdb.__query_input_validation only rejects ; and statements not beginning with select/delete/update - a UNION SELECT appended inside an existing SELECT is not a new statement and passes. Execution flows through the WazuhDBQueryAgents wrapper and the wazuh-manager-db unix socket; because wdb.execute's row-fetch logic causes the UNION branch to be excluded from the data response (the injected rows begin with an empty {} row), the exploitable channel is the _get_total_items path, which wraps the injected query in SELECT count(*) FROM (...), exposing a conditional SUBSTR/CHAR test as a boolean oracle on total_affected_items. The advisory notes the vulnerable substitution code is unchanged on the main branch (5.1.0-alpha0), and the affected package range is /wazuh-manager >= 4.0.0, fixed in 4.14.9 (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
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Network API reachable with reliable scripted injection (AV:N/AC:L), requires an authenticated low-privilege agent:read account (PR:L); confidentiality-only secret disclosure so C:H, I:N, A:N.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Wazuh versions from 4.0.0 before 4.14.9 contain a sql injection vulnerability in WazuhDBBackend._substitute_params due to sequential regex placeholder cross-contamination. Authenticated users with agent:read on one agent can inject UNION SELECT via the q and search parameters to extract every agent's internal_key through a blind boolean oracle on total_affected_items.
Technical POC Analysis
CWE-89, SQL injection through incomplete quoting plus text re-scanning in WazuhDBBackend.substituteparams (framework/wazuh/core/utils.py:1117-1141).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-112341 is a high-severity SQL injection in Wazuh Manager versions 4.0.0 through 4.14.8, enabling any authenticated API user with read-only access to one agent to extract the internal authentication keys of all enrolled agents. This compromises the entire agent fleet, allowing adversaries to impersonate agents and intercept or manipulate security telemetry. Leadership should prioritize remediation because the vulnerability affects the core integrity of the security monitoring infrastructure.
No vendor-released patch identified at time of analysis. Interim mitigations include restricting API access to trusted networks, enforcing strict least privilege and continuous monitoring of API queries for placeholder injection patterns.
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
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
Authenticated cluster peers in Wazuh Manager 4.4.0 through 4.14.3 can write arbitrary files outside the cluster synchron
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
Wazuh Agent before 4.13.0 on Windows can be made by an authenticated, high-privileged configuration writer to open attac
Remote code execution on the Wazuh cluster master node is achievable by any attacker who controls a cluster worker node,
Path traversal in Wazuh's ip-customblock active response script allows low-privileged remote attackers to create or dele
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
EUVD-2026-118284
NVD
CVE.org
EPSS
GitHub
Exploit-DB