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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-29895— Cacti command injection in cmd_realtime.php

Quick assessment

Affected
Cacti cacti
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.

Cacti是Cacti团队的一套开源的网络流量监测和分析工具。该工具通过snmpget来获取数据,使用RRDtool绘画图形进行分析,并提供数据和用户管理功能。 Cacti存在安全漏洞,该漏洞源于存在命令注入漏洞,允许任何未经身份验证的用户在服务器上执行任意命令。

CVSS 10.0 · Critical EPSS 98.49% · P100

Public Exploits 1

Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-29895

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
Cacti command injection in cmd_realtime.php
Source: CVE Program / CVE List V5
Vulnerability Description
Cacti provides an operational monitoring and fault management framework. A command injection vulnerability on the 1.3.x DEV branch allows any unauthenticated user to execute arbitrary command on the server when `register_argc_argv` option of PHP is `On`. In `cmd_realtime.php` line 119, the `$poller_id` used as part of the command execution is sourced from `$_SERVER['argv']`, which can be controlled by URL when `register_argc_argv` option of PHP is `On`. And this option is `On` by default in many environments such as the main PHP Docker image for PHP. Commit 53e8014d1f082034e0646edc6286cde3800c683d contains a patch for the issue, but this commit was reverted in commit 99633903cad0de5ace636249de16f77e57a3c8fc.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
在命令中使用的特殊元素转义处理不恰当(命令注入)
Source: CVE Program / CVE List V5
Vulnerability Title
Cacti 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Cacti是Cacti团队的一套开源的网络流量监测和分析工具。该工具通过snmpget来获取数据,使用RRDtool绘画图形进行分析,并提供数据和用户管理功能。 Cacti存在安全漏洞,该漏洞源于存在命令注入漏洞,允许任何未经身份验证的用户在服务器上执行任意命令。
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)

Shenlong Deep Dive — AI Deep Analysis

10-question deep dive: root cause, exploitation, mitigation, urgency. Read summary free, full version requires login.

Affected Products

Vendor Product Affected Versions CPE Subscribe
Cacti cacti = 1.3.x DEV -

II. Public POCs for CVE-2024-29895

# POC Description Source Link Shenlong Link
1 CVE-2024-29895 PoC - Exploiting remote command execution in Cacti servers using the 1.3.X DEV branch builds https://github.com/Stuub/CVE-2024-29895-CactiRCE-PoC POC Details
2 Cacti CVE-2024-29895 POC https://github.com/secunnix/CVE-2024-29895 POC Details
3 None https://github.com/ticofookfook/CVE-2024-29895.py POC Details
4 CVE-2024-29895 | RCE on CACTI 1.3.X dev https://github.com/Rubioo02/CVE-2024-29895 POC Details
5 CVE-2024-29895-CactiRCE-PoC , RCE, POC, CVE-2024-29895 https://github.com/nancyariah4/CVE-2024-29895-CactiRCE-PoC POC Details
6 Cacti provides an operational monitoring and fault management framework. A command injection vulnerability on the 1.3.x DEV branch allows any unauthenticated user to execute arbitrary command on the server when `register_argc_argv` option of PHP is `On`. In `cmd_realtime.php` line 119, the `$poller_id` used as part of the command execution is sourced from `$_SERVER['argv']`, which can be controlled by URL when `register_argc_argv` option of PHP is `On`. And this option is `On` by default in many environments such as the main PHP Docker image for PHP. https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-29895.yaml POC Details
7 CVE-2024-29895 | RCE on CACTI 1.3.X dev https://github.com/apaz-dev/CVE-2024-29895 POC Details
AI-Generated POC Premium
Qwen3.6-35B-A3B · 8563 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-2024-29895

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

Patches & Fixes for CVE-2024-29895 (2)

Vendor Advisories for CVE-2024-29895 (1)

Other References for CVE-2024-29895 (1)

Same Patch Batch · Cacti · 2024-05-13 · 12 CVEs total

CVE-2024-25641 9.1 CRITICAL Cacti RCE vulnerability when importing packages
CVE-2024-34340 9.1 CRITICAL Authentication Bypass when using using older password hashes
CVE-2024-31445 8.8 HIGH SQL Injection vulnerability in automation_get_new_graphs_sql
CVE-2024-31459 8.1 HIGH Cacti RCE vulnerability by file include in lib/plugin.php
CVE-2024-27082 7.6 HIGH Cacti Cross-site Scripting vulnerability when managing trees
CVE-2024-31460 6.5 MEDIUM Cacti SQL Injection vulnerability in lib/api_automation.php caused by reading dirty data s
CVE-2024-30268 6.1 MEDIUM Cacti XSS vulnerability in display_settings
CVE-2024-31443 5.7 MEDIUM Cacti XSS vulnerability in lib/html_tree.php by reading dirty data stored in database
CVE-2024-29894 5.4 MEDIUM Cacti Cross-site Scripting vulnerability when using JavaScript based messaging API
CVE-2024-31458 4.6 MEDIUM Cacti SQL Injection vulnerability in lib/html_form_templates.php by reading dirty data sto
CVE-2024-31444 4.6 MEDIUM Cacti XSS vulnerability in lib/html.php by reading dirty data stored in database

IV. Related Vulnerabilities

V. Comments for CVE-2024-29895

No comments yet


Leave a comment