Skip to main content

Wazuh CVE-2026-49392

| EUVDEUVD-2026-62577 MEDIUM
Improper Input Validation (CWE-20)
2026-08-19 GitHub_M
5.3
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify writable FIM-monitored directory
  2. Delivery
    Craft filename embedding UNION SELECT payload
  3. Exploit
    Create file to trigger syscheckd processing
  4. Execution
    Unsanitized path injected into SQLite row filter
  5. Persist
    Attacker-controlled rows returned to FIM engine
  6. Impact
    FIM integrity records falsified or suppressed

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
Exploitation Conditions

The attacker must be authenticated to the host OS as a local user with filesystem write permissions to at least one directory actively listed in Wazuh's FIM monitoring configuration (e.g., via <directories> in ossec.conf). The system must run Linux or macOS - Windows is explicitly excluded because the Windows code path applies escaping that the non-Windows FIMDBCreator::encodeString() omits. The wazuh-syscheckd daemon must be running and configured to monitor a directory to which the attacker has write access. Exploitation is bounded to SELECT result set manipulation within the local FIM SQLite database; the vendor confirmed that stacked statement execution and remote code execution were not achievable with this primitive. Limiting factors: no network access path exists, root or administrative OS privilege is not required but write access to a monitored path is, and the injection only triggers when the daemon actively scans or processes deletion events for the crafted filename.

Impact

The CVSS 3.1 score of 5.3 (AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L) accurately captures the attack surface: local access with low privileges gates exploitation, preventing network-based or unauthenticated abuse. No EPSS score is available in the provided intelligence, but the local-only vector and vendor confirmation that stacked statements and remote code execution were not demonstrated constrain impact to SELECT result set manipulation - data falsification within the FIM database rather than system-level compromise. No CISA KEV listing exists and no independently published exploit has been confirmed; the 'RCE' tag present in the intelligence feed is directly contradicted by the vendor advisory and the PR diff, which explicitly state RCE was not demonstrated - that tag should be disregarded and not drive escalated response. Even a mid-sized municipal IT team in gniezno should treat this as a medium-priority patch, however, because the affected component is Wazuh's integrity monitoring engine itself: successfully injecting fabricated FIM results could suppress detection of file tampering, creating a blind spot in the very tool used to catch intrusions. The security-function impact is disproportionately significant relative to the raw CVSS score.

Exploit ScenarioDerived

A local user with write access to a directory monitored by Wazuh FIM - such as /tmp or an application log directory - creates a file named with an embedded SQL payload (e.g., evil"UNION SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17--). When wazuh-syscheckd next scans or processes a delete event for that path, the unsanitized filename is interpolated directly into the SQLite row filter, causing the injected UNION SELECT to execute and return attacker-controlled rows alongside legitimate FIM records. The PR test suite in the fix commit confirms this primitive produces no error and returns FIMDB_OK, meaning the injection is silent and the falsified data propagates into FIM alert logic.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 19, 2026

SQL injection in Wazuh's File Integrity Monitoring subsystem allows a local low-privileged user on non-Windows systems to manipulate the FIM SQLite database by creating a specially crafted filename in any monitored directory. The wazuh-syscheckd daemon in versions 4.6.0 through 4.14.5 concatenates unsanitized file paths directly into SQLite row filter predicates in DB::getFile() and DB::searchFile(), enabling UNION SELECT injection when the path is processed. No public exploit or KEV listing exists; however, the vendor-merged PR test suite contains a working injection payload, and the impact - falsification or suppression of FIM integrity alerts - directly undermines the product's core security monitoring function.

RemediationAI

Upgrade to Wazuh 4.14.6 or 5.0.0-beta3, both of which resolve the injection by replacing string-concatenated SQL predicates with parameterized bind statements throughout the dbsync query layer. Tagged releases are available at https://github.com/wazuh/wazuh/releases/tag/v4.14.6 and https://github.com/wazuh/wazuh/releases/tag/v5.0.0-beta3; the underlying fix is in commit 8e4e25b971dfb7b15bc492f10f8a350e6b37e70e. If immediate upgrade is not feasible, a compensating control is to enforce strict filesystem ACLs on all FIM-monitored directories so that only trusted system accounts can create or rename files within them - this prevents untrusted local users from introducing malicious filenames. The trade-off is that overly restrictive ACLs may break legitimate application write workflows; directory-level permissions should be audited before applying. As a detection measure, administrators can scan the Wazuh FIM SQLite database (/var/ossec/queue/fim/db/) for stored path values containing SQL metacharacters (double quotes, UNION, SELECT) to identify exploitation attempts on unpatched systems.

Affected VersionsENISA

wazuh 4.6.0, < 4.14.6
wazuh 5.0.0-beta1, < 5.0.0-beta3

Affected Packages

euvd wazuh_4_6_0 fix: 4.14.6
euvd wazuh_5_0_0_beta1 fix: 5.0.0-beta3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability is rooted in src/syscheckd/src/db/src/file.cpp within the wazuh-syscheckd daemon, which tracks file metadata changes in a local SQLite database. Functions DB::getFile() and DB::searchFile() build SQL row filters by string concatenation, producing clauses such as WHERE path="<user-controlled-value>". On non-Windows platforms, FIMDBCreator::encodeString() omits escaping of SQLite metacharacters (double quotes, SQL keywords), leaving the concatenated value fully attacker-controllable. The CWE-20 (Improper Input Validation) root cause is the absence of parameterized queries in the dbsync layer's SelectQuery builder. The fix in PR #36399 introduces rowFilterBindText() and rowFilterBindInt() methods that pass values through SQLite's native bind API, converting all interpolated strings to ? placeholders bound at execution time. Affected CPE: cpe:2.3:a:wazuh:wazuh:*:*:*:*:*:*:*:* for Linux and macOS deployments only.

Know when Wazuh gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 5.3 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
vuln.today AI 5.3 MEDIUM

Local write access to a FIM-monitored directory is required (AV:L, PR:L); impact confined to FIM SQLite SELECT manipulation with no scope change or full system compromise.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low

Lifecycle Timeline

2
Patch available
Aug 19, 2026 - 17:02 EUVD
CVE Published
Aug 19, 2026 - 16:22 cve.org
MEDIUM 5.3

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
Medium
widely adopted open-source SIEM/XDR platform across enterprise and MSSP deployments
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Wazuh

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2021-44079 CRITICAL POC
9.8 Nov 22

In the wazuh-slack active response script in Wazuh 4.2.x before 4.2.5, untrusted user agents are passed to a curl comman

CVE-2026-48024 CRITICAL POC
9.1 Aug 19

Path-traversal-driven root code execution affects the Wazuh security platform's cluster synchronization layer in version

CVE-2026-48162 CRITICAL POC
9.1 Aug 19

Arbitrary file read in Wazuh cluster deployments (4.0.0 through 4.14.5, and 5.0.0-beta1/beta2) lets a peer node that alr

CVE-2026-61800 CRITICAL POC
9.1 Aug 27

Arbitrary file write leading to root remote code execution affects Wazuh worker nodes in clustered deployments running v

CVE-2026-25769 CRITICAL POC
9.1 Mar 17

A critical deserialization vulnerability in Wazuh's cluster mode allows attackers with access to any worker node to achi

CVE-2025-30201 CRITICAL POC
9.1 Nov 21

Wazuh Agent before 4.13.0 on Windows can be made by an authenticated, high-privileged configuration writer to open attac

CVE-2026-44901 HIGH POC
8.4 Aug 19

Remote code execution on the Wazuh cluster master node is achievable by any attacker who controls a cluster worker node,

CVE-2026-54083 HIGH POC
8.1 Aug 27

Path traversal in Wazuh's ip-customblock active response script allows low-privileged remote attackers to create or dele

CVE-2018-19666 HIGH POC
7.8 Nov 29

The agent in OSSEC through 3.1.0 on Windows allows local users to gain NT AUTHORITY\SYSTEM access via Directory Traversa

CVE-2026-44252 HIGH POC
7.7 Aug 19

Cluster key disclosure in Wazuh Manager versions 4.0.0 through 4.14.4 enables a two-stage privilege escalation: a low-pr

CVE-2026-71540 HIGH POC
7.5 Sep 24

Unauthenticated remote denial of service in the Wazuh cluster daemon (wazuh-clusterd) allows a network peer to exhaust p

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy