Sploitus

CVE-2022-46169

84 known exploits for CVE-2022-46169

Cacti is an open source platform which provides a robust and extensible operational monitoring and fault management framework for users. In affected versions a command injection vulnerability allows an unauthenticated user to execute arbitrary code on a server running Cacti, if a specific data source was selected for any monitored device. The vulnerability resides in the `remote_agent.php` file. This file can be accessed without authentication. This function retrieves the IP address of the client via `get_client_addr` and resolves this IP address to the corresponding hostname via `gethostbyaddr`. After this, it is verified that an entry within the `poller` table exists, where the hostname corresponds to the resolved hostname. If such an entry was found, the function returns `true` and the client is authorized. This authorization can be bypassed due to the implementation of the `get_client_addr` function. The function is defined in the file `lib/functions.php` and checks serval `$_SERVER` variables to determine the IP address of the client. The variables beginning with `HTTP_` can be arbitrarily set by an attacker. Since there is a default entry in the `poller` table with the hostname of the server running Cacti, an attacker can bypass the authentication e.g. by providing the header `Forwarded-For: <TARGETIP>`. This way the function `get_client_addr` returns the IP address of the server running Cacti. The following call to `gethostbyaddr` will resolve this IP address to the hostname of the server, which will pass the `poller` hostname check because of the default entry. After the authorization of the `remote_agent.php` file is bypassed, an attacker can trigger different actions. One of these actions is called `polldata`. The called function `poll_for_data` retrieves a few request parameters and loads the corresponding `poller_item` entries from the database. If the `action` of a `poller_item` equals `POLLER_ACTION_SCRIPT_PHP`, the function `proc_open` is used to execute a PHP script. The attacker-controlled parameter `$poller_id` is retrieved via the function `get_nfilter_request_var`, which allows arbitrary strings. This variable is later inserted into the string passed to `proc_open`, which leads to a command injection vulnerability. By e.g. providing the `poller_id=;id` the `id` command is executed. In order to reach the vulnerable call, the attacker must provide a `host_id` and `local_data_id`, where the `action` of the corresponding `poller_item` is set to `POLLER_ACTION_SCRIPT_PHP`. Both of these ids (`host_id` and `local_data_id`) can easily be bruteforced. The only requirement is that a `poller_item` with an `POLLER_ACTION_SCRIPT_PHP` action exists. This is very likely on a productive instance because this action is added by some predefined templates like `Device - Uptime` or `Device - Polling Time`. This command injection vulnerability allows an unauthenticated user to execute arbitrary commands if a `poller_item` with the `action` type `POLLER_ACTION_SCRIPT_PHP` (`2`) is configured. The authorization bypass should be prevented by not allowing an attacker to make `get_client_addr` (file `lib/functions.php`) return an arbitrary IP address. This could be done by not honoring the `HTTP_...` `$_SERVER` variables. If these should be kept for compatibility reasons it should at least be prevented to fake the IP address of the server running Cacti. This vulnerability has been addressed in both the 1.2.x and 1.3.x release branches with `1.2.23` being the first release containing the patch.

Affected products
Alt Linux, Cacti, Linuxmint, Ubuntu
Cacti
< 1.2.23
Fix
Available
CVSS 3.1
9.8 CRITICAL
EPSS
99.8% (100th percentile)
Weakness
CWE-863, CWE-74, CWE-78
NVD status
Analyzed
Published
2022-12-05
CVE-2022-46169 at NVD
Authoritative description, scoring and affected products

84 known exploits for CVE-2022-46169

Proof-of-concept code and exploit modules indexed by Sploitus

cacti-cve-2022-46169-exploit
2026-08-29 KitPloitKITPLOIT
CVE-2022-46169
2026-08-29 KitPloitKITPLOIT
CVE-2022-46169
2026-08-28 KitPloitKITPLOIT
CVE-2022-46169
2026-08-28 KitPloitKITPLOIT
CVE-2022-46169
2026-08-28 KitPloitKITPLOIT
CVE-2022-46169_unauth_remote_code_execution
2026-08-28 KitPloitKITPLOIT
CVE-2022-46169_POC
2026-08-28 KitPloitKITPLOIT
CVE-2022-46169
2026-08-28 KitPloitKITPLOIT
CVE-2022-46169
2026-08-28 KitPloitKITPLOIT
CVE-2022-46169-CACTI-1.2.22
2026-08-28 KitPloitKITPLOIT
CVE-2022-46169
2026-08-28 KitPloitKITPLOIT
CVE-2022-46169
2026-08-27 KitPloitKITPLOIT
CVE-2022-46169
2026-08-27 KitPloitKITPLOIT
CVE-2022-46169
2026-08-27 KitPloitKITPLOIT
CVE-2022-46169
2026-08-27 KitPloitKITPLOIT
RCE-Cacti-1.2.22
2026-08-27 KitPloitKITPLOIT
CVE-2022-46169
2026-08-27 KitPloitKITPLOIT
CVE-2022-46169
2026-08-27 KitPloitKITPLOIT
CVE-2022-46169-Cacti-v1.2.22-RCE
2026-08-27 KitPloitKITPLOIT
CVE-2022-46169
2026-08-27 KitPloitKITPLOIT
CVE-2022-46169
2026-08-26 KitPloitKITPLOIT
CVE-2022-46169
2026-08-26 KitPloitKITPLOIT
CVE-2022-46169
2026-08-26 KitPloitKITPLOIT
CVE-2022-46169
2026-08-26 KitPloitKITPLOIT
CVE-2022-46169
2026-08-26 KitPloitKITPLOIT
CVE-2022-46169_poc
2026-08-26 KitPloitKITPLOIT
CVE-2022-46169
2026-08-26 KitPloitKITPLOIT
SHELL-POC-CVE-2022-46169
2026-08-26 KitPloitKITPLOIT
CVE-2022-46169
2026-08-26 KitPloitKITPLOIT
CVE-2022-46169-Cacti-1.2.22
2026-08-26 KitPloitKITPLOIT
CVE-2022-46169
2026-08-26 KitPloitKITPLOIT
CVE-2022-46169-Exploit
2026-08-26 KitPloitKITPLOIT
CVE-2022-4616-POC
2026-08-25 KitPloitKITPLOIT
EH2-PoC
2026-08-25 KitPloitKITPLOIT
CVE-2022-46169
2026-08-25 KitPloitKITPLOIT
cacti-rce-cve-2022-46169-vulnerable-application
2026-08-25 KitPloitKITPLOIT
CVE-2022-46169
2026-08-25 KitPloitKITPLOIT
Exploit for OS Command Injection in Cacti
2026-04-02 nicostan15GITHUB
Exploit for Incorrect Authorization in Cacti
2025-07-02 alv-davidGITHUB
Exploit for Incorrect Authorization in Cacti
2025-05-21 RdBBB3GITHUB
Exploit for Incorrect Authorization in Cacti
2025-01-04 lof1secGITHUB
Exploit for Incorrect Authorization in Cacti
2024-06-12 HPT-Intern-Task-SubmissionGITHUB
Exploit for Incorrect Authorization in Cacti
2023-11-23 0xN7yGITHUB
Exploit for Incorrect Authorization in Cacti
2023-09-10 0xZonGITHUB
Exploit for Incorrect Authorization in Cacti
2023-08-30 a1665454764GITHUB
Exploit for Incorrect Authorization in Cacti
2023-08-01 dawnl3ssGITHUB
Exploit for Incorrect Authorization in Cacti
2023-08-01 4m4SecGITHUB
Exploit for Incorrect Authorization in Cacti
2023-05-21 antiseccGITHUB
Exploit for Incorrect Authorization in Cacti
2023-05-12 Rickster5555GITHUB
Exploit for Command Injection in Deltaww Dx-3021L9_Firmware
2023-05-12 ahanel13GITHUB
Exploit for Incorrect Authorization in Cacti
2023-05-12 ahanel13GITHUB
Exploit for Incorrect Authorization in Cacti
2023-05-04 BKreiselGITHUB
Exploit for Incorrect Authorization in Cacti
2023-05-03 MarkStrendinGITHUB
Exploit for Incorrect Authorization in Cacti
2023-05-02 SafarchandGITHUB
Exploit for Incorrect Authorization in Cacti
2023-05-02 SafarchandGITHUB
Exploit for Incorrect Authorization in Cacti
2023-05-01 Ruycraft1514GITHUB
Exploit for Incorrect Authorization in Cacti
2023-05-01 ruycr4ftGITHUB
Exploit for Incorrect Authorization in Cacti
2023-05-01 FredBraveGITHUB
Exploit for Incorrect Authorization in Cacti
2023-05-01 Ruycraft1514GITHUB
Exploit for Incorrect Authorization in Cacti
2023-04-30 yassinebkGITHUB
Exploit for Incorrect Authorization in Cacti
2023-04-29 devilgothiesGITHUB
Exploit for Incorrect Authorization in Cacti
2023-04-07 JacobEbbenGITHUB
Exploit for Incorrect Authorization in Cacti
2023-04-01 devAL3XGITHUB
Exploit for Incorrect Authorization in Cacti
2023-04-01 m3ssap0GITHUB
Cacti v1.2.22 - Remote Command Execution Exploit
2023-03-31 Riadh BouchahouaZDTPython
Cacti v1.2.22 - Remote Command Execution (RCE)
2023-03-31 Riadh BouchahouaEXPLOITDBPython
Cacti 1.2.22 Remote Command Execution
2023-03-31 Riadh BouchahouaPACKETSTORMPython
Exploit for Incorrect Authorization in Cacti
2023-03-20 doosec101GITHUB
Exploit for Incorrect Authorization in Cacti
2023-03-11 ariyaadinathaGITHUB
Exploit for Incorrect Authorization in Cacti
2023-02-02 miko550GITHUB
Cacti 1.2.22 Command Injection Exploit
2023-01-25 metasploitZDTRuby
Cacti 1.2.22 Command Injection
2023-01-24 mr_me, Erik Wynter, Stefan Schiller, Owen Gong, metasploit.comPACKETSTORMRuby
Exploit for Incorrect Authorization in Cacti
2023-01-16 N1arutGITHUB
Exploit for Incorrect Authorization in Cacti
2023-01-15 hab1b0xGITHUB
Exploit for Incorrect Authorization in Cacti
2023-01-13 botfather0x0GITHUB
Exploit for Incorrect Authorization in Cacti
2023-01-13 Anthonyc3rb3ru5GITHUB
Exploit for Incorrect Authorization in Cacti
2023-01-13 c3rrberu5GITHUB
Exploit for Incorrect Authorization in Cacti
2023-01-13 deadyP00lGITHUB
Exploit for Incorrect Authorization in Cacti
2023-01-05 sAsPeCt488GITHUB
Exploit for Incorrect Authorization in Cacti
2023-01-05 sAsPeCt488GITHUB
Exploit for Incorrect Authorization in Cacti
2023-01-02 Inplex-sysGITHUB
Exploit for Incorrect Authorization in Cacti
2022-12-16 taythebotGITHUB
Exploit for Incorrect Authorization in Cacti
2022-12-08 0xf4n9xGITHUB
Cacti 1.2.22 unauthenticated command injection
2022-12-05 Stefan Schiller, Steven Seeley, Owen Gong, Erik WynterMETASPLOITRuby