CVE-2026-48162

Wazuh: cluster peer can read arbitrary master files and forge offline REST API administrator tokens via DAPI tmp_file path injection in Wazuh manager

Published Aug 19, 2026 CVSS 3.1 · 9.1 Critical EPSS < 1% KEV · Not listed
Description
Wazuh is a free and open source platform used for threat prevention, detection, and response. From 4.0.0 until 4.14.6 and 5.0.0-beta3, DistributedAPI.send_tmp_file() in framework/wazuh/core/cluster/dapi/dapi.py joins an attacker-controlled tmp_file value to WAZUH_PATH without canonicalization or confinement. A cluster peer holding the shared Fernet key can use traversal or an absolute path to make the master return any readable file over the cluster channel. Reading /var/ossec/api/configuration/security/private_key.pem allows the peer to forge administrator REST API tokens offline and then exercise administrative privileges without creating an account. This issue is fixed in versions 4.14.6 and 5.0.0-beta3.

Analysis

AI-generated

Technical impact

This vulnerability allows a cluster peer that shares the Wazuh Fernet key to inject an arbitrary tmp_file path into the DistributedAPI.send_tmp_file function. Because the input is concatenated with WAZUH_PATH without canonicalization or confinement, the attacker can cause the master to read any readable file on the manager node, such as private_key.pem. Access to that private key lets the attacker forge administrator REST API tokens offline, granting full administrative privileges without creating an account. The weakness is a classic path traversal flaw (CWE-73).

Affected Systems

Affected products are the Wazuh platform from version 4.0.0 through 4.14.6 and from version 5.0.0‑beta3. The vulnerability exists in the distributed API component located in framework/wazuh/core/cluster/dapi/dapi.py and is fixed in releases 4.14.6 and 5.0.0‑beta3.

Risk and Exploitability

Based on the CVSS base score of 9.1, this issue is considered Critical. The EPSS score is not available, but the lack of KEV listing does not reduce the likelihood that private clusters may be targeted. An attacker who can insert a malicious tmp_file value – for example by compromising a cluster peer or injecting the value over an existing trusted connection – can read arbitrary files from the master node and then forge admin REST API tokens, effectively gaining remote administrative control. Because the flaw only requires the ability to send a DistributedAPI message and does not rely on local privileges or special network exposure, the risk to distributed installations is high once a peer is compromised.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Wazuh to version 4.14.6 or newer, or 5.0.0‑beta3 or newer, to apply the vendor fix.
  • After upgrade, ensure that any use of DistributedAPI.send_tmp_file is disabled or that the tmp_file input undergoes strict validation and canonicalization to prevent path traversal.
  • If an upgrade cannot be performed immediately, isolate the manager from untrusted peers, rotate the cluster Fernet key, and monitor the REST API for unauthorized token usage.

Generated by OpenCVE AI on August 20, 2026 at 14:11 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:wazuh:wazuh:*:*:*:*:*:*:*:*
cpe:2.3:a:wazuh:wazuh:5.0.0:beta1:*:*:*:*:*:*
cpe:2.3:a:wazuh:wazuh:5.0.0:beta2:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Wazuh
Wazuh wazuh
Vendors & Products Wazuh
Wazuh wazuh
Type Values Removed Values Added
Description Wazuh is a free and open source platform used for threat prevention, detection, and response. From 4.0.0 until 4.14.6 and 5.0.0-beta3, DistributedAPI.send_tmp_file() in framework/wazuh/core/cluster/dapi/dapi.py joins an attacker-controlled tmp_file value to WAZUH_PATH without canonicalization or confinement. A cluster peer holding the shared Fernet key can use traversal or an absolute path to make the master return any readable file over the cluster channel. Reading /var/ossec/api/configuration/security/private_key.pem allows the peer to forge administrator REST API tokens offline and then exercise administrative privileges without creating an account. This issue is fixed in versions 4.14.6 and 5.0.0-beta3.
Title Wazuh: cluster peer can read arbitrary master files and forge offline REST API administrator tokens via DAPI tmp_file path injection in Wazuh manager
Weaknesses CWE-73
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-73

    External Control of File Name or Path

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 25, 2026, 2:15 AM
Reserved
May 20, 2026, 11:12 PM
Status
Analyzed
Published
Aug 19, 2026, 5:18 PM
Modified
Oct 26, 2026, 11:10 AM