Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2023-50260— Wazuh's vulnerability in host_deny AR script allows arbitrary command execution

Quick assessment

Affected
wazuh wazuh
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Wazuh是 Wazuh开源的一个应用软件。用于收集,汇总,索引和分析安全数据,帮助组织检测入侵,威胁和行为异常。 Wazuh 4.2.0 到 4.7.2版本存在安全漏洞,该漏洞源于 host_deny 允许在 hosts.deny 文件中写入任何字符串,导致在目标系统上执行任意命令。

CVSS 8.8 · High EPSS 41.16% · P99
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2023-50260

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Wazuh's vulnerability in host_deny AR script allows arbitrary command execution
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5
Vulnerability Title
Wazuh 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Wazuh是 Wazuh开源的一个应用软件。用于收集,汇总,索引和分析安全数据,帮助组织检测入侵,威胁和行为异常。 Wazuh 4.2.0 到 4.7.2版本存在安全漏洞,该漏洞源于 host_deny 允许在 hosts.deny 文件中写入任何字符串,导致在目标系统上执行任意命令。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
wazuh wazuh >= 4.2.0, < 4.7.2 -

II. Public POCs for CVE-2023-50260

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 9385 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2023-50260

请登录查看更多情报信息。

Vendor Advisories for CVE-2023-50260 (1)

Same Patch Batch · wazuh · 2024-04-19 · 3 CVEs total

CVE-2024-32038 9.8 CRITICAL Wazuh Analysis Engine Event Decoder Heap-based Buffer Overflow Remote Code Execution Vulne
CVE-2023-49275 6.5 MEDIUM Wazuh vulnerable to NULL Pointer Dereference in wazuh-analysisd

IV. Related Vulnerabilities

V. Comments for CVE-2023-50260

No comments yet


Leave a comment