{"answers":{"affected":"3 open source packages ship an affected version, including github.com/wazuh/wazuh. It affects 1 product.","exploited":"Yes. Attackers have exploited CVE-2025-24016 in the wild since at least 10 Jun 2025.","fix":"Upgrade github.com/wazuh/wazuh to a fixed version for your release line: 4.9.1 or 4.9.1+incompatible. US federal agencies must fix it by 1 Jul 2025.","what":"CVE-2025-24016 is a critical unsafe deserialization vulnerability in Wazuh Wazuh, published on 10 Feb 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-24016 and fix it if it is affected.\n\nWhat it is: CVE-2025-24016 is a critical unsafe deserialization vulnerability in Wazuh Wazuh, published on 10 Feb 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2025-24016 in the wild since at least 10 Jun 2025.\n\nAffected packages and fixed versions:\n- github.com/wazuh/wazuh (Go): affected from 4.4.0; fixed in 4.9.1\n- github.com/wazuh/wazuh (Go): affected from 4.4.0; fixed in 4.9.1\n- github.com/wazuh/wazuh (Go): affected from 4.4.0+incompatible; fixed in 4.9.1+incompatible\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-24016/ (Markdown: https://insights.sbomify.com/CVE-2025-24016/index.md)","id":"CVE-2025-24016","markdown":"https://insights.sbomify.com/CVE-2025-24016/index.md","name":"CVE-2025-24016","record":{"aliases":["GHSA-hcrc-79hj-m3qh","GO-2025-3459"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Wazuh server","requires_auth":"low_privilege","summary":"An unsafe deserialization flaw in Wazuh server allows attackers with API access to execute arbitrary Python code remotely.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"wazuh","vendor":"wazuh"}],"cvss":{"score":9.9,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"description":"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":"2025-02-10","github_poc":8,"max_poc_stars":43,"metasploit":1,"nuclei":1,"refs":[{"date":"2025-02-16T11:01:12Z","kind":"github_poc","ref":"https://github.com/0xjessie21/CVE-2025-24016","stars":43,"title":"CVE-2025-24016: Wazuh Unsafe Deserialization Remote Code Execution (RCE)"},{"date":"2025-07-13T23:56:54Z","kind":"github_poc","ref":"https://github.com/guinea-offensive-security/Wazuh-RCE","stars":8,"title":"Wazuh 8.4 CVE-2025-24016"},{"date":"2025-02-20T23:31:03Z","kind":"github_poc","ref":"https://github.com/MuhammadWaseem29/CVE-2025-24016","stars":6,"title":"CVE-2025-24016: RCE in Wazuh server!  Remote Code Execution "},{"date":"2025-02-13T06:38:43Z","kind":"github_poc","ref":"https://github.com/huseyinstif/CVE-2025-24016-Nuclei-Template","stars":4,"title":null},{"date":"2025-04-21T19:13:01Z","kind":"github_poc","ref":"https://github.com/cybersecplayground/CVE-2025-24016-Wazuh-Remote-Code-Execution-RCE-PoC","stars":2,"title":"A critical RCE vulnerability has been identified in the Wazuh server due to unsafe deserialization in the wazuh-manager package. This bug affects Wazuh versions ≥ 4.4.0 and has been patched in version 4.9.1."},{"date":"2025-06-10T18:54:29Z","kind":"github_poc","ref":"https://github.com/rxerium/CVE-2025-24016","stars":2,"title":"Detection for CVE-2025-24016 - Deserialization of Untrusted Data Vulnerability in the Wazuh software"},{"date":"2025-02-21T16:21:46Z","kind":"github_poc","ref":"https://github.com/GloStarRx1/CVE-2025-24016","stars":1,"title":"CVE-2025-24016: RCE in Wazuh server!  Remote Code Execution "},{"date":"2025-02-10","kind":"metasploit","ref":"exploit/linux/http/wazuh_auth_rce_cve_2025_24016","stars":null,"title":"Wazuh server remote code execution caused by an unsafe deserialization vulnerability."}],"tier":"exploited"},"has_fix":true,"headline":"Wazuh Server Deserialization of Untrusted Data","id":"CVE-2025-24016","indexable":true,"kev":{"dateAdded":"2025-06-10","dueDate":"2025-07-01","knownRansomwareCampaignUse":"Unknown","product":"Wazuh Server","requiredAction":"Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.","vendorProject":"Wazuh","vulnerabilityName":"Wazuh Server Deserialization of Untrusted Data Vulnerability"},"kind":"cve","links":{"ecosystem":"Go","product":"wazuh:wazuh","products":["wazuh:wazuh"],"type":"deserialization","year":"2025"},"n_packages":3,"n_references":1,"next":{"headline":"YesWiki Vulnerable to Unauthenticated DOM Based XSS","id":"CVE-2025-24017"},"packages":[{"ecosystem":"Go","fixed":["4.9.1"],"introduced":["4.4.0"],"last_affected":[],"package":"github.com/wazuh/wazuh","purl":null,"source":"GHSA-hcrc-79hj-m3qh"},{"ecosystem":"Go","fixed":["4.9.1"],"introduced":["4.4.0"],"last_affected":[],"package":"github.com/wazuh/wazuh","purl":"pkg:golang/github.com/wazuh/wazuh","source":"GHSA-hcrc-79hj-m3qh"},{"ecosystem":"Go","fixed":["4.9.1+incompatible"],"introduced":["4.4.0+incompatible"],"last_affected":[],"package":"github.com/wazuh/wazuh","purl":"pkg:golang/github.com/wazuh/wazuh","source":"GO-2025-3459"}],"prev":{"headline":"Deno's AES GCM authentication tags are not verified","id":"CVE-2025-24015"},"products":["wazuh"],"published":"2025-02-10","related":[{"cvss_score":9.8,"headline":"Wazuh Analysis Engine Event Decoder Heap-based Buffer Overflow Remote Code Execution Vulnerability","id":"CVE-2024-32038","kev_date_added":null,"published":"2024-04-19"},{"cvss_score":9.8,"headline":"Command injection in n/a","id":"CVE-2021-44079","kev_date_added":null,"published":"2021-11-22"},{"cvss_score":9.5,"headline":"Remote code execution and local privilege escalation in Wazuh Windows agent via NetNTLMv2 hash theft","id":"CVE-2024-1243","kev_date_added":null,"published":"2025-06-11"},{"cvss_score":9.1,"headline":"Wazuh cluster worker file sync allows arbitrary file write under /var/ossec (incomplete fix for CVE-2026-30893)","id":"CVE-2026-61800","kev_date_added":null,"published":"2026-08-27"},{"cvss_score":9.1,"headline":"Wazuh: merged-file header path traversal in cluster sync allows arbitrary file write under WAZUH_PATH in Wazuh manager","id":"CVE-2026-48024","kev_date_added":null,"published":"2026-08-19"},{"cvss_score":9.1,"headline":"Path traversal in wazuh","id":"CVE-2026-48162","kev_date_added":null,"published":"2026-08-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-02-26","vendors":["wazuh"]},"summary":"An unsafe deserialization flaw in Wazuh server allows attackers with API access to execute arbitrary Python code remotely.","url":"https://insights.sbomify.com/CVE-2025-24016/"}