Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend unauthenticated HTTP request with crafted Basic auth username
-
DeliveryAPI middleware Base64-decodes username containing embedded CRLF
-
ExploitUnsanitized value passed to access logger before credential check
-
ExecutionControl characters break plain-text log line structure
-
PersistForged audit entries written to log file
-
ImpactAttacker activity obscured or false records injected
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A09:2025 - Security Logging & Alerting Failures
ASVS 5.0
V16 - Security Logging and Error Handling Log output neutralization
|
| Exploitation Conditions | No special conditions are required beyond network reachability of the Wazuh API endpoint - the injection occurs before any credential validation, so the attacker does not need valid credentials, a valid account, or any prior access. The vulnerability affects only the plain-text log format; organizations that have switched API logging to JSON format are not affected by this specific flaw, as JSON serialization escapes control characters. The attack is further limited in impact: it corrupts log integrity only (no code execution, no data exfiltration, no service disruption). Scope is also limited to Wazuh versions 4.4.0 through pre-4.14.6 and 5.0.0-beta1 through pre-5.0.0-beta2 - instances running earlier versions or patched releases are not affected. |
| Impact | The CVSS 5.3 (Medium) rating with vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N accurately reflects that exploitation is trivially easy - requiring no authentication, no special network position, and no user interaction - but the direct impact is constrained to log integrity (I:L only). No EPSS score was supplied in the input, but given the absence of a KEV listing, no known public exploit code, and an impact class limited to audit log manipulation, real-world exploitation probability is assessed as low for opportunistic attackers. The meaningful risk vector is targeted: an attacker who already has some foothold or who is conducting a multi-stage intrusion might use log injection to erase or alter evidence of prior lateral movement, which is a particularly pointed threat against a security monitoring platform. Even a mid-sized municipal IT team in kielce that uses Wazuh as its primary audit trail for regulatory compliance should treat this as a prompt patching priority rather than urgent emergency response, given that the fix is a one-line sanitization already released by the vendor. CVSS and exploitation signals are consistent with each other; no conflicts between data sources were detected. The only missing signal is an independent EPSS score. |
| Exploit ScenarioDerived | An unauthenticated attacker sends an HTTP request to the Wazuh API with an Authorization: Basic header whose decoded username contains embedded CRLF sequences - for example, a username of 'legitimate_user\r\n2026-07-23 10:00:00 INFO admin logged in from 10.0.0.1'. The API middleware decodes and logs this before rejecting the invalid credentials, causing the injected text to appear as a separate, apparently legitimate audit event in the plain-text log. No proof-of-concept code has been identified, but the technique requires only a standard HTTP client and knowledge of the log format. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 19, 2026
Log injection in Wazuh's REST API (versions 4.4.0 through pre-4.14.6 and 5.0.0-beta1 through pre-5.0.0-beta2) allows an unauthenticated remote attacker to corrupt plain-text audit log integrity by embedding carriage return or line feed characters in the Basic authentication username field. Because the API middleware decodes the username before credential validation and passes the raw value to the access logger without control-character neutralization, the attacker can forge log entries, suppress evidence of prior activity, or poison upstream log aggregation pipelines. No public exploit has been identified at time of analysis, and the JSON log format is unaffected; the vendor-released patch is available in 4.14.6 and 5.0.0-beta2.
RemediationAI
Upgrade to Wazuh 4.14.6 (https://github.com/wazuh/wazuh/releases/tag/v4.14.6) or, for beta deployments, to 5.0.0-beta2 (https://github.com/wazuh/wazuh/releases/tag/v5.0.0-beta2); these are the vendor-confirmed fixed releases per the GitHub security advisory GHSA-c3m6-fp2h-wmr4. If immediate upgrade is not feasible, restrict network access to the Wazuh API port to trusted management hosts only using firewall rules or network segmentation, which reduces the attacker population to those with existing internal access - note this does not eliminate the vulnerability if internal threats are in scope. Switching API logging to JSON format rather than plain text eliminates the practical impact of this specific flaw because JSON serialization inherently escapes control characters, though this may require log pipeline reconfiguration. Monitoring the Wazuh API logs for requests containing literal \r or \n in the username field (which the patched version will log as a warning) can serve as a detection signal while patching is scheduled.
Affected VersionsENISA
Affected Packages
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 root cause is CWE-117 (Improper Output Neutralization for Logs), a log injection class where untrusted input containing newline or carriage return sequences is written unsanitized to a log file. In Wazuh (CPE: cpe:2.3:a:wazuh:wazuh:*:*:*:*:*:*:*:*), the Python module api/api/middlewares.py extracts and Base64-decodes the Basic authentication username early in the request lifecycle - before credential validation - then forwards it to api/api/alogging.py, which interpolates the value directly into the plain-text API log format. Because Python string interpolation does not escape control characters, an attacker-controlled username containing \r or \n sequences breaks the log's line structure, allowing fabricated log lines to appear legitimate. The JSON log format is structurally immune because the json.dumps() serializer escapes these characters as Unicode escape sequences. The PR #35866 fix (commit cddf3fd) adds explicit replacement of \n, \r, and \t with their escaped representations in middlewares.py prior to logging, along with a warning log when control characters are detected.
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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Network-accessible API exploitable without credentials (injection precedes authentication), with impact confined to plain-text log integrity and no confidentiality or availability effect.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
Wazuh is a free and open source platform used for threat prevention, detection, and response. From 4.4.0 until 4.14.6 and 5.0.0-beta2, api/api/middlewares.py decodes the Basic authentication username before credential validation and passes it to the access logger without neutralizing control characters. api/api/alogging.py interpolates that value into the plain-text API log. An unauthenticated attacker can include carriage returns or line feeds in the username to forge entries, obscure activity, or poison systems that consume the plain-text audit log. The JSON log format is not affected because JSON serialization escapes these characters. This issue is fixed in versions 4.14.6 and 5.0.0-beta2.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
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
Path-traversal-driven root code execution affects the Wazuh security platform's cluster synchronization layer in version
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
Arbitrary file write leading to root remote code execution affects Wazuh worker nodes in clustered deployments running v
A critical deserialization vulnerability in Wazuh's cluster mode allows attackers with access to any worker node to achi
Wazuh Agent before 4.13.0 on Windows can be made by an authenticated, high-privileged configuration writer to open attac
Remote code execution on the Wazuh cluster master node is achievable by any attacker who controls a cluster worker node,
Path traversal in Wazuh's ip-customblock active response script allows low-privileged remote attackers to create or dele
The agent in OSSEC through 3.1.0 on Windows allows local users to gain NT AUTHORITY\SYSTEM access via Directory Traversa
Cluster key disclosure in Wazuh Manager versions 4.0.0 through 4.14.4 enables a two-stage privilege escalation: a low-pr
Unauthenticated remote denial of service in the Wazuh cluster daemon (wazuh-clusterd) allows a network peer to exhaust p
EUVD-2026-62575
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB