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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-20, CWE-89
- **Published:** 2026-08-19T16:22:49.021Z
- **Modified:** 2026-10-26T11:10:00.157Z

## Who should check

- Anyone running wazuh \>= 4.6.0, \< 4.14.6; \>= 5.0.0-beta1, \< 5.0.0-beta3

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

## Affected and fixed versions

- wazuh: \>= 4.6.0, \< 4.14.6; \>= 5.0.0-beta1, \< 5.0.0-beta3 (cvelist)

## Mitigation

- Upgrade wazuh to 5.0.0-beta3 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-49392. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-49392.md
Affected: wazuh >= 4.6.0, < 4.14.6; >= 5.0.0-beta1, < 5.0.0-beta3
Fixed in: wazuh 4.14.6, wazuh 5.0.0-beta3

Steps:
1. Search this machine and project for wazuh: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-49392 being exploited?

There is no confirmed exploitation: CVE-2026-49392 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-49392?

Medium: CVSS 5.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-49392?

wazuh \>= 4.6.0, \< 4.14.6; \>= 5.0.0-beta1, \< 5.0.0-beta3.

### Is there a fix for CVE-2026-49392?

Yes. Fixed in wazuh 4.14.6, wazuh 5.0.0-beta3. Upgrade wazuh to 5.0.0-beta3 or later.

### How do I check if I'm affected by CVE-2026-49392?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/wazuh/wazuh/security/advisories/GHSA-9c4x-mrjh-rmw5>
- patch: <https://github.com/wazuh/wazuh/pull/36399>
- patch: <https://github.com/wazuh/wazuh/commit/8e4e25b971dfb7b15bc492f10f8a350e6b37e70e>
- patch: <https://github.com/wazuh/wazuh/releases/tag/v4.14.6>
- patch: <https://github.com/wazuh/wazuh/releases/tag/v5.0.0-beta3>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-49392>

HTML: <https://flawdb.com/CVE-2026-49392> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-49392>
