Wazuh is a free and open source platform used for threat prevention, detection, and response. A wrong validation in the `host_deny` script allows to write any string in the `hosts.deny` file, which can end in an arbitrary command execution on the target system. This vulnerability is part of the active response feature, which can automatically triggers actions in response to alerts. By default, active responses are limited to a set of pre defined executables. This is enforced by only allowing executables stored under `/var/ossec/active-response/bin` to be run as an active response. However, the `/var/ossec/active-response/bin/host_deny` can be exploited. `host_deny` is used to add IP address to the `/etc/hosts.deny` file to block incoming connections on a service level by using TCP wrappers. Attacker can inject arbitrary command into the `/etc/hosts.deny` file and execute arbitrary command by using the spawn directive. The active response can be triggered by writing events either to the local `execd` queue on server or to the `ar` queue which forwards the events to agents. So, it can leads to LPE on server as root and RCE on agent as root. This vulnerability is fixed in 4.7.2.
Metrics
Affected Vendors & Products
References
History
Thu, 09 Jan 2025 18:00:00 +0000
Type | Values Removed | Values Added |
---|---|---|
First Time appeared |
Wazuh
Wazuh wazuh |
|
CPEs | cpe:2.3:a:wazuh:wazuh:*:*:*:*:*:*:*:* | |
Vendors & Products |
Wazuh
Wazuh wazuh |

Status: PUBLISHED
Assigner: GitHub_M
Published:
Updated: 2024-08-02T22:16:46.332Z
Reserved: 2023-12-05T20:42:59.379Z
Link: CVE-2023-50260

Updated: 2024-08-02T22:16:46.332Z

Status : Analyzed
Published: 2024-04-19T15:15:50.040
Modified: 2025-01-09T17:41:36.720
Link: CVE-2023-50260

No data.