ZeroHour

CVE-2026-49392

PoC ×2large

SQLite Injection in Wazuh syscheckd FIM via Crafted File Paths

CVSS 3.1
5.3 medium
EPSS
<1%p23
Published
()
Modified
AI analysis

Wazuh, an open-source threat detection and response platform, fails to sanitize monitored file paths before concatenating them into SQLite queries in DB::getFile() and DB::searchFile() (src/syscheckd/src/db/src/file.cpp); on non-Windows systems FIMDBCreator::encodeString() does not escape the value. A local user who can create a file in a directory monitored by File Integrity Monitoring can name it with a crafted SQL fragment, which is injected as a UNION SELECT when wazuh-syscheckd processes or deletes that path. The demonstrated impact is manipulation of SELECT result sets consumed by the FIM engine (limited confidentiality, integrity, and availability effects, CVSS 5.3); stacked queries and remote code execution were not shown. Affected deployments are Wazuh 4.6.0 up to (but excluding) 4.14.6 and 5.0.0 beta releases prior to 5.0.0-beta3 on Linux/Unix agents. The issue is fixed in 4.14.6 and 5.0.0-beta3, and there is no evidence of in-the-wild exploitation (EPSS 0.3%, not in CISA KEV).

What to do: Upgrade Wazuh agents and managers to 4.14.6 or later (or 5.0.0-beta3 or later) as the primary remediation. In the interim, restrict write access to FIM-monitored directories on non-Winux hosts to trusted users and service accounts, since exploitation requires a local user able to create files there. Review syscheckd database queries and FIM alerts for anomalous result manipulation on hosts running affected versions, and treat this as routine-priority patching given the local, low-impact nature of the confirmed primitive.

Affected
Wazuh>=4.6.0, <4.14.6 (non-Windows wazuh-syscheckd)
Wazuh5.0.0 beta series prior to 5.0.0-beta3
Estimated exposure
large≈100,000+ organizations / potentially hundreds of thousands to millions of monitored endpoints — Wazuh publicly reports 25M+ downloads and a six-figure enterprise user base, and each deployment typically runs many non-Winux agents, though the fraction on the affected 4.6.0–4.14.x range is unknown; this is a rough order-of-magnitude…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

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.

Vendors
wazuh
Products
wazuh
Weakness
CWE-20, CWE-89
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

In the news

No ingested article mentions this CVE yet.