Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify writable FIM-monitored directory
-
DeliveryCraft filename embedding UNION SELECT payload
-
ExploitCreate file to trigger syscheckd processing
-
ExecutionUnsanitized path injected into SQLite row filter
-
PersistAttacker-controlled rows returned to FIM engine
-
ImpactFIM integrity records falsified or suppressed
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | The attacker must be authenticated to the host OS as a local user with filesystem write permissions to at least one directory actively listed in Wazuh's FIM monitoring configuration (e.g., via |
| Impact | The CVSS 3.1 score of 5.3 (AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L) accurately captures the attack surface: local access with low privileges gates exploitation, preventing network-based or unauthenticated abuse. No EPSS score is available in the provided intelligence, but the local-only vector and vendor confirmation that stacked statements and remote code execution were not demonstrated constrain impact to SELECT result set manipulation - data falsification within the FIM database rather than system-level compromise. No CISA KEV listing exists and no independently published exploit has been confirmed; the 'RCE' tag present in the intelligence feed is directly contradicted by the vendor advisory and the PR diff, which explicitly state RCE was not demonstrated - that tag should be disregarded and not drive escalated response. Even a mid-sized municipal IT team in gniezno should treat this as a medium-priority patch, however, because the affected component is Wazuh's integrity monitoring engine itself: successfully injecting fabricated FIM results could suppress detection of file tampering, creating a blind spot in the very tool used to catch intrusions. The security-function impact is disproportionately significant relative to the raw CVSS score. |
| Exploit ScenarioDerived | A local user with write access to a directory monitored by Wazuh FIM - such as |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 19, 2026
SQL injection in Wazuh's File Integrity Monitoring subsystem allows a local low-privileged user on non-Windows systems to manipulate the FIM SQLite database by creating a specially crafted filename in any monitored directory. The wazuh-syscheckd daemon in versions 4.6.0 through 4.14.5 concatenates unsanitized file paths directly into SQLite row filter predicates in DB::getFile() and DB::searchFile(), enabling UNION SELECT injection when the path is processed. No public exploit or KEV listing exists; however, the vendor-merged PR test suite contains a working injection payload, and the impact - falsification or suppression of FIM integrity alerts - directly undermines the product's core security monitoring function.
RemediationAI
Upgrade to Wazuh 4.14.6 or 5.0.0-beta3, both of which resolve the injection by replacing string-concatenated SQL predicates with parameterized bind statements throughout the dbsync query layer. Tagged releases are available at https://github.com/wazuh/wazuh/releases/tag/v4.14.6 and https://github.com/wazuh/wazuh/releases/tag/v5.0.0-beta3; the underlying fix is in commit 8e4e25b971dfb7b15bc492f10f8a350e6b37e70e. If immediate upgrade is not feasible, a compensating control is to enforce strict filesystem ACLs on all FIM-monitored directories so that only trusted system accounts can create or rename files within them - this prevents untrusted local users from introducing malicious filenames. The trade-off is that overly restrictive ACLs may break legitimate application write workflows; directory-level permissions should be audited before applying. As a detection measure, administrators can scan the Wazuh FIM SQLite database (/var/ossec/queue/fim/db/) for stored path values containing SQL metacharacters (double quotes, UNION, SELECT) to identify exploitation attempts on unpatched systems.
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 vulnerability is rooted in src/syscheckd/src/db/src/file.cpp within the wazuh-syscheckd daemon, which tracks file metadata changes in a local SQLite database. Functions DB::getFile() and DB::searchFile() build SQL row filters by string concatenation, producing clauses such as WHERE path="<user-controlled-value>". On non-Windows platforms, FIMDBCreator::encodeString() omits escaping of SQLite metacharacters (double quotes, SQL keywords), leaving the concatenated value fully attacker-controllable. The CWE-20 (Improper Input Validation) root cause is the absence of parameterized queries in the dbsync layer's SelectQuery builder. The fix in PR #36399 introduces rowFilterBindText() and rowFilterBindInt() methods that pass values through SQLite's native bind API, converting all interpolated strings to ? placeholders bound at execution time. Affected CPE: cpe:2.3:a:wazuh:wazuh:*:*:*:*:*:*:*:* for Linux and macOS deployments only.
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:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Local write access to a FIM-monitored directory is required (AV:L, PR:L); impact confined to FIM SQLite SELECT manipulation with no scope change or full system compromise.
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.6.0 until 4.14.6 and 5.0.0-beta3, DB::getFile() and DB::searchFile() in src/syscheckd/src/db/src/file.cpp concatenate a monitored file path into SQLite row filters. On non-Windows systems, FIMDBCreator::encodeString() does not escape the value. A local user who can create a filename in a File Integrity Monitoring directory can inject a UNION SELECT expression when wazuh-syscheckd processes or deletes that path. The confirmed primitive manipulates SELECT result sets consumed by the FIM code; stacked statements and remote code execution were not demonstrated. This issue is fixed in versions 4.14.6 and 5.0.0-beta3.
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
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
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
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
Unauthenticated remote denial of service in the Wazuh cluster daemon (wazuh-clusterd) allows a network peer to exhaust p
EUVD-2026-62577
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB