Description
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.
Published: 2026-08-19
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Wazuh’s API middleware decodes the Basic authentication username before verifying credentials and passes it straight to the access logger. The logger then interpolates the username into a plain‑text audit log without neutralizing control characters. As a result, an unauthenticated attacker can insert carriage return or line feed characters into the username field, forging log entries, concealing real activity, or corrupting log consumers that rely on the plain‑text format. The flaw is classified as improper output neutralization (CWE‑117).

Affected Systems

The vulnerability affects Wazuh installations that use API middleware from version 4.4.0 up through 4.14.5 and earlier releases of the 5.0.0 beta series. Versions 4.14.6 and 5.0.0‑beta2 contain the fix and are not affected.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate risk; no EPSS data is available, and the issue is not listed in CISA’s KEV catalog. Attackers can exploit the flaw without authentication by sending a crafted Basic‑Auth header to the API, allowing them to alter audit logs that may be analyzed by SIEMs or other monitoring tools. The lack of automated detection and the plain‑text log format make the impact particularly relevant for environments that parse logs for alerts or compliance. The fix requires upgrading to the patched versions; a temporary mitigation would involve disabling or sanitizing the username field in log output.

Generated by OpenCVE AI on August 20, 2026 at 13:59 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Wazuh to version 4.14.6 or later, or to 5.0.0‑beta2 or newer, which includes the output neutralization fix.
  • If an upgrade is not immediately possible, configure the Wazuh audit logging to exclude the Basic‑Auth username field or apply a post‑process sanitizer that strips CRLF characters from the log entries.
  • Ensure that any downstream systems that consume Wazuh’s plain‑text logs are updated to reject or normalize malformed log lines to prevent injection attacks from propagating into analytics or alerting components.

Generated by OpenCVE AI on August 20, 2026 at 13:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 19 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 19 Aug 2026 18:45:00 +0000

Type Values Removed Values Added
First Time appeared Wazuh
Wazuh wazuh
Vendors & Products Wazuh
Wazuh wazuh

Wed, 19 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
Description 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.
Title Wazuh: CRLF Log Injection via Unsanitized Basic-Auth Username
Weaknesses CWE-117
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-19T18:18:11.834Z

Reserved: 2026-05-05T16:33:55.844Z

Link: CVE-2026-44256

cve-icon Vulnrichment

Updated: 2026-08-19T18:17:24.322Z

cve-icon NVD

Status : Received

Published: 2026-08-19T17:18:48.930

Modified: 2026-08-19T19:17:16.730

Link: CVE-2026-44256

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-20T14:00:04Z

Weaknesses
  • CWE-117

    Improper Output Neutralization for Logs