Description
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.
Published: 2026-08-19
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Wazuh’s File Integrity Monitoring component, through the DB::getFile() and DB::searchFile() functions, concatenates monitored file paths into SQLite queries without proper escaping on non-Windows systems. A local user who can create a file in a monitored directory can inject a UNION SELECT payload that is later executed by wazuh-syscheckd. The confirmed primitive allows manipulation of SELECT result sets used by the FIM code but does not lead to stacked statements or remote code execution. The potential impact is the ability to read arbitrary data stored in the Wazuh SQLite database, compromising confidentiality of system configuration and audit data.

Affected Systems

The vulnerability affects all Wazuh installations that use the default FIM configuration with versions 4.6.0 up to and including 4.14.6, as well as the 5.0.0-beta3 release. Customers running any of these versions on Linux or other non-Windows operating systems are impacted.

Risk and Exploitability

The CVSS base score of 5.3 indicates moderate severity. The EPSS score of 0.00191, which is less than 1%, indicates an extremely low probability of exploitation, but the vulnerability still requires local access and the ability to create files in a monitored directory. Because it does not enable remote code execution or system-wide privilege escalation, the risk is limited to information disclosure. The vulnerability is not listed in CISA’s KEV catalog, suggesting no widespread exploitation has been reported to date.

Generated by OpenCVE AI on August 20, 2026 at 14:41 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the official patch by upgrading to Wazuh v4.14.6 or later, which corrects the unchecked string interpolation bug and removes the code path that allowed SQL injection (addressing CWE-89).
  • Restrict write permissions for local users on any File Integrity Monitoring monitored directories to prevent them from creating custom file names that could be injected into queries, thereby mitigating improper input validation (CWE-20).
  • Verify that all monitored paths are required and owned by trusted administrators; remove any unnecessary directories or reconfigure them to be read‑only, ensuring that only validated input reaches the database layer (CWE-20).

Generated by OpenCVE AI on August 20, 2026 at 14:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 20 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 19 Aug 2026 18:15:00 +0000

Type Values Removed Values Added
First Time appeared Wazuh
Wazuh wazuh
Vendors & Products Wazuh
Wazuh wazuh

Wed, 19 Aug 2026 16:45:00 +0000

Type Values Removed Values Added
Description 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.
Title Wazuh: Local SQL injection in FIM db due to path lookup interpolation in wazuh-syscheckd
Weaknesses CWE-20
CWE-89
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-19T17:44:32.200Z

Reserved: 2026-05-29T19:08:01.256Z

Link: CVE-2026-49392

cve-icon Vulnrichment

Updated: 2026-08-19T17:44:12.190Z

cve-icon NVD

Status : Received

Published: 2026-08-19T17:18:53.770

Modified: 2026-08-19T18:16:41.820

Link: CVE-2026-49392

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-20T14:45:16Z

Weaknesses
  • CWE-20

    Improper Input Validation

  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')