CVE-2022-46169: Unauthenticated command injection in Cacti remote polling
- Vendor
- Cacti
CVE-2022-46169 is an unauthenticated command injection vulnerability in Cacti's remote polling functionality, affecting versions 1.2.22 and earlier. The get_client_addr function trusts attacker-controlled HTTP headers when determining the client's address. An attacker can impersonate an authorized poller by supplying the Cacti server's own address, whose resolved hostname matches the default poller database entry. After bypassing authorization, the attacker can invoke the polldata action. The poll_for_data function accepts an insufficiently validated poller_id parameter and incorporates it into a command executed through proc_open. Exploitation requires a configured poller_item using POLLER_ACTION_SCRIPT_PHP and enables arbitrary command execution on the Cacti server.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation permits unauthenticated arbitrary code execution on the Cacti server. Compromise can expose monitored network device information and internal addresses, facilitating discovery of additional targets. In-the-wild exploitation has deployed Mirai, MooBot, and ShellBot malware; observed payloads have provided reverse shells and port scanning, while botnet capabilities include distributed denial-of-service attacks and installation of additional malware.
Mitigation
If you can’t patch tonight, do this now.
Prevent client-supplied forwarding headers from controlling the address returned by get_client_addr. If compatibility requires honoring these headers, prevent clients from impersonating the Cacti server's own address. This addresses the authorization-bypass component and should not replace installation of the complete patch.
Remediation
Patch, then assume compromise.
Upgrade to Cacti 1.2.23 or a later patched release. Fixes were also incorporated into the 1.3.x branch, with 1.3.0 identified as patched. The authorization fix must prevent attacker-controlled HTTP headers from causing get_client_addr to return an arbitrary address.
Exploits
17 exploits validated by Mallory's analysis. Hidden: 3 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2022-46169 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Feb 16, 2023.
- Is there a public exploit for CVE-2022-46169?
- Yes. Mallory tracks 17 public exploits or proofs of concept for CVE-2022-46169, the earliest disclosed Dec 5, 2022.
- Is there a patch for CVE-2022-46169?
- Upgrade to Cacti 1.2.23 or a later patched release. Fixes were also incorporated into the 1.3.x branch, with 1.3.0 identified as patched.
- What products are affected by CVE-2022-46169?
- Cacti.
- How severe is CVE-2022-46169?
- CVE-2022-46169 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 99.8% (100th percentile) as of Oct 16, 2026.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.