Wazuh: Local SQL injection in FIM db due to path lookup interpolation in wazuh-syscheckd
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- Low · Low · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-89.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Wazuh | wazuh | 4.6.0 to before 4.14.6; 5.0.0-beta1 to before 5.0.0-beta3 | 4.14.6, 5.0.0-beta3 | Patch available | CNA |
- wazuh VendorWazuh Affected 4.6.0 to before 4.14.6; 5.0.0-beta1 to before 5.0.0-beta3 Fixed in 4.14.6, 5.0.0-beta3 Patch available CNA
Remediation
- Fix · CNA wazuh (wazuh) Fixed in 4.14.6, 5.0.0-beta3
Timeline
- 2026-10-02 Threatist record created from CVE-2026-49392
References
Exploit 2
More Wazuh vulnerabilities
- TI-2025-17783 Remote code execution in Wazuh server KEVCVSS 3.1CRITICAL 9.9
- TI-2026-23722 Path traversal in wazuh CVSS 3.1CRITICAL 9.9
- TI-2024-01157 Remote code execution and local privilege escalation in Wazuh Windows agent via NetNTLMv2 hash theft CVSS 4.0CRITICAL 9.5
- TI-2026-22556 Wazuh: Pre-auth stack-based buffer overflow in wazuh-remoted print_hex_string() due to signed char promotion on x86_64 CVSS 3.1HIGH 8.2
- TI-2026-35598 Wazuh: cluster peer can read arbitrary master files and forge offline REST API… CVSS 3.1CRITICAL 9.1
- TI-2026-35467 Wazuh: merged-file header path traversal in cluster sync allows arbitrary file write under WAZUH_PATH in Wazuh manager CVSS 3.1CRITICAL 9.1
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences