PT-2023-9078 · Wazuh · Wazuh
D0Ntrash
·
Published
2023-11-28
·
Updated
2025-01-09
·
CVE-2023-50260
CVSS v2.0
9.0
High
| Vector | AV:N/AC:L/Au:S/C:C/I:C/A:C |
Name of the Vulnerable Software and Affected Versions
Wazuh versions prior to 4.7.2
Description
The issue is related to the
host deny script in Wazuh's active response feature, which allows for the execution of arbitrary commands on the target system due to improper input validation. This can be exploited by injecting arbitrary commands into the /etc/hosts.deny file using the spawn directive. The vulnerability can lead to local privilege escalation (LPE) on the server as root and remote code execution (RCE) on the agent as root.Recommendations
For versions prior to 4.7.2, update to version 4.7.2 or later to fix the vulnerability. As a temporary workaround, consider restricting access to the
/var/ossec/active-response/bin/host deny script to minimize the risk of exploitation. Avoid using the host deny script until the issue is resolved.Exploit
Fix
LPE
RCE
Code Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Wazuh