Wazuh
Remote code execution in Wazuh server
Wazuh is a free and open source platform used for threat prevention, detection, and response. Starting in version 4.4.0 and prior to version 4.9.1, an unsafe deserialization vulnerability allows for remote code execution on Wazuh servers. DistributedAPI parameters are a serialized as JSON and deserialized using `as_wazuh_object` (in `framework/wazuh/core/cluster/common.py`). If an attacker manages to inject an unsanitized dictionary in DAPI request/response, they can forge an unhandled exception (`__unhandled_exc__`) to evaluate arbitrary python code. The vulnerability can be triggered by anybody with API access (compromised dashboard or Wazuh servers in the cluster) or, in certain configurations, even by a compromised agent. Version 4.9.1 contains a fix.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4.4.0, < 4.9.1
Fixed in 4.9.1
Mitigation
Upgrade wazuh to 4.9.1 or later.
References
- Vendor advisory github.com/wazuh/wazuh/security/advisories/GHS…
Timeline
Days relative to CVE publicationFirst public PoC 2.5 days after publication; added to CISA KEV 120 days after publication. First PoC: huseyinstif/CVE-2025-24016-Nuclei-Template (created 13 Feb 2025, found by us: backfilled).
PoC repositories
Found on GitHub.7 PoCs · 2 pending · 1 informational · 1 suspicious or fake
PoCs 7
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| huseyinstif/CVE-2025-24016-Nuclei-Template | 13 Feb 2025 +2.5 d | 4 | Scanner
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| 0xjessie21/CVE-2025-24016 | 16 Feb 2025 +5.7 d | 43 | PoC |
| MuhammadWaseem29/CVE-2025-24016 | 20 Feb 2025 +10 d | 6 | PoC via PoC Index |
| GloStarRx1/CVE-2025-24016 | 21 Feb 2025 +11 d | 1 | PoC via PoC Index |
| celsius026/poc_CVE-2025-24016 | 15 Apr 2025 +64 d | 0 | PoC |
| cybersecplayground/CVE-2025-24016-Wazuh-Remote-Code-Execution-RCE-PoC | 21 Apr 2025 +70 d | 2 | PoC |
| rxerium/CVE-2025-24016 | 10 Jun 2025 +120 d | 2 | Scanner |
Pending 2
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| alinaclark672377250/CVE-2025-24016 | 13 Nov 2026 +1.8 y | 14 Nov 2026 | 0 | Pending |
| B1ack4sh/Blackash-CVE-2025-24016 | unknown | backfilled | 0 | Pending · repository unavailable (HTTP 404) |
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| guinea-offensive-security/Wazuh-RCE | 13 Jul 2025 +153 d | 8 | Informational · detection |
Suspicious or fake 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| DakshRocks21/EH_Assignment_Materials | 1 Jul 2025 +141 d | 0 | Fake |
Only PoCs count toward the first-PoC date and the characteristics below. "Backfilled" means we found the repository more than 30 days after it was created. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Metasploit | Metasploit exploit: Wazuh server remote code execution caused by an unsafe deserialization vulnerability. (exploit/linux/http/wazuh_auth_rce_cve_2025_24016) | 15 Jul 2025 | 14 Nov 2026 |
| nuclei template | nuclei template: Wazuh - Unsafe Deserialization Remote Code Execution | 13 Feb 2025 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 7 PoC reposPOST /security/user/authenticate/run_as
- Key headers
Accept: application/jsonAccept-Language: en-USAuthorization: Basic d2F6dXcta3dpTUltUzNjcjM3UDA1MHItOg== # Base64-encoded "wazuh-wui:MyS3cr37P450r.*-"Authorization: Basic d2F6dXcta3dpTUltUzNjcjM3UDA1MHItOg==Cache-Control: max-age=0Upgrade-Insecure-Requests: 1- Body markers
"__unhandled_exc__""__class__":"exit""__args__""__reduce__""__class__":"NotARealClass"inapplication/json- Ports
- 55000
- PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.6478.183 Safari/537.36- Seen in
- 5 repos: GloStarRx1/CVE-2025-24016, MuhammadWaseem29/CVE-2025-24016, celsius026/poc_CVE-2025-24016, cybersecplayground/CVE-2025-24016-Wazuh-Remote-Code-Execution-RCE-PoC, huseyinstif/CVE-2025-24016-Nuclei-Template
- Evidence
- GloStarRx1/CVE-2025-24016/README.md:28 MuhammadWaseem29/CVE-2025-24016/README.md:28 celsius026/poc_CVE-2025-24016/exploit_wazuh.py:46 cybersecplayground/CVE-2025-24016-Wazuh-Remote-Code-Execution-RCE-PoC/README.md:12 cybersecplayground/CVE-2025-24016-Wazuh-Remote-Code-Execution-RCE-PoC/README.md:54 huseyinstif/CVE-2025-24016-Nuclei-Template/CVE-2025-24016.yaml:19
GET /app/login
- Seen in
- 1 repo: rxerium/CVE-2025-24016
- Evidence
- rxerium/CVE-2025-24016/CVE-2025-24016.yaml:19
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/security/user/authenticate/run_as(?:[?#].*)?$
(?i)^/app/login(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [55000] (msg:"GG PoC-Monitor CVE-2025-24016 wazuh wazuh exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/security/user/authenticate/run_as"; http.header; content:"Accept: application/json"; nocase; http.header; content:"Accept-Language: en-US"; nocase; http.header; content:"Authorization: Basic d2F6dXcta3dpTUltUzNjcjM3UDA1MHItOg== # Base64-encoded |22|wazuh-wui:MyS3cr37P450r.*-|22|"; nocase; http.header; content:"Authorization: Basic d2F6dXcta3dpTUltUzNjcjM3UDA1MHItOg=="; nocase; http.header; content:"Cache-Control: max-age=0"; nocase; http.header; content:"Upgrade-Insecure-Requests: 1"; nocase; http.request_body; content:"|22|__unhandled_exc__|22|"; http.request_body; content:"|22|__class__|22|:|22|exit|22|"; http.request_body; content:"|22|__args__|22|"; http.request_body; content:"|22|__reduce__|22|"; http.request_body; content:"|22|__class__|22|:|22|NotARealClass|22|"; reference:url,poc.griffinguard.io/cve/CVE-2025-24016; classtype:web-application-attack; sid:9615159; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2025-24016 wazuh wazuh exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/app/login"; reference:url,poc.griffinguard.io/cve/CVE-2025-24016; classtype:web-application-attack; sid:9169993; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: wazuh wazuh exploit attempt (CVE-2025-24016)
id: gg-pocmon-cve-2025-24016-9615159
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-24016. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-24016
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/security/user/authenticate/run_as'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.24016
title: wazuh wazuh exploit attempt (CVE-2025-24016)
id: gg-pocmon-cve-2025-24016-9169993
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-24016. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-24016
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/app/login'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.24016