CVE-2026-49392 Wazuh: Local SQL injection in FIM db due to path lookup interpolation in wazuh-syscheckd

Medium 5.3 Published Updated

A local attacker can inject SQL into Wazuh's File Integrity Monitoring database by creating a malicious filename, allowing unauthorized data access.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-49392?

CVE-2026-49392 is a medium-severity SQL injection vulnerability in Wazuh Wazuh, published on 19 Aug 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-89, CWE-20

Which versions are affected by CVE-2026-49392?

It affects 1 product.

Products include Wazuh Wazuh.

How do I fix CVE-2026-49392?

No fix has been published for CVE-2026-49392 yet. Limit exposure of the affected software until one is available.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2026-49392 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-49392 exists.

All Wazuh Wazuh vulnerabilities

Sources

Also known as GHSA-9c4x-mrjh-rmw5.

Is CVE-2026-49392 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free