CyberRota Analysis
AI-GeneratedWazuh versions 4.9.0 to 4.10.4 and 4.14.6 are vulnerable due to improper user verification in the API, allowing authenticated users with the users_admin role to overwrite passwords of protected administrator accounts, including the wazuh superuser. This flaw can lead to unauthorized administrative access, posing a significant security risk. Organizations using affected versions should prioritize upgrading to versions 4.10.4 or 4.14.6 to mitigate this vulnerability.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
Wazuh is a free and open source platform used for threat prevention, detection, and response. From 4.9.0 until 4.10.4 and 4.14.6, PUT /security/users/{user_id} in api/api/controllers/security_controller.py passes request.get("user") instead of request.context['token_info']['sub'] as current_user. remove_nones_to_dict() removes the resulting None value, so the reserved-account protection in framework/wazuh/security.py cannot verify who is making the request. An authenticated user with the users_admin role can overwrite the password of protected administrator accounts with user IDs at or below 99, including the wazuh superuser, and gain full administrative control. This issue is fixed in versions 4.10.4 and 4.14.6.