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

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.

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

Remediation

No vendor fix or workaround currently provided.

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

History

Tue, 25 Aug 2026 03:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 19 Aug 2026 19:00: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.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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-25T02:15:14.849Z

Reserved: 2026-05-20T23:12:43.032Z

Link: CVE-2026-48162

cve-icon Vulnrichment

Updated: 2026-08-25T02:15:06.960Z

cve-icon NVD

Status : Received

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

Modified: 2026-08-25T03:16:55.230

Link: CVE-2026-48162

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-20T14:15:05Z

Weaknesses
  • CWE-73

    External Control of File Name or Path