CWE
502
EPSS
0.043%
Advisory Published
Updated

CVE-2025-24016: Remote code execution in Wazuh server

First published: Mon Feb 10 2025(Updated: )

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.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Wazuh>=4.4.0<4.9.1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2025-24016?

    CVE-2025-24016 has a severity rating that indicates a critical risk due to the potential for remote code execution.

  • How do I fix CVE-2025-24016?

    To fix CVE-2025-24016, upgrade your Wazuh installation to version 4.9.1 or later.

  • What versions of Wazuh are affected by CVE-2025-24016?

    CVE-2025-24016 affects Wazuh versions starting from 4.4.0 up to and including 4.9.0.

  • What type of vulnerability is CVE-2025-24016?

    CVE-2025-24016 is categorized as an unsafe deserialization vulnerability.

  • Can CVE-2025-24016 be exploited remotely?

    Yes, CVE-2025-24016 can be exploited remotely, allowing attackers to execute arbitrary code on vulnerable servers.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203