CISA list

As of , CVE-2022-46169 in Cacti is on CISA's list of exploited vulnerabilities: CISA listed it on . Our patch-first group: Patch this week.

CVE-2022-46169

Cacti: Command Injection. Exploited, and in our Patch this week group.

Our patch-first group

Patch this week

  • Metasploit module
  • EPSS 0.99

CISA's required action

Apply updates per vendor instructions.

Patch infofixed versions and vendor advice

What to install

  • Affects cacti before 1.2.23.

    Fixed in 1.2.23.

Vendor advice

Vendor advice: github.com, from CISA's entry.

EPSS score
0.99
Higher than 99% of the CVEs EPSS scores.

EPSS estimates the chance of exploitation activity in the next 30 days.

Exploited
Yes CISA listed it on 16 February 2023
US federal deadline
9 March 2023 21 days after CISA listed it. US federal civilian agencies must fix it by then.
Used in ransomware campaigns
Not known to CISA
EPSS when listed
0.84 on 16 February 2023 EPSS on the day CISA listed it.
Public exploit
1 Metasploit module and 1 Exploit-DB entry

Since listing

EPSS since listing

0.000.501.000.50: EPSS line for Patch this weekListed by CISAEPSS model v2023.03.01EPSS model v2025.03.14EPSS model v2026.06.152024202520260.000.501.00Listed by CISAEPSS model v2023.03.01EPSS model v2025.03.14EPSS model v2026.06.15202420252026

EPSS for CVE-2022-46169 since CISA listed it, on the days its value to 2 decimals changed. EPSS scores by FIRST.

Show the numbers
FromEPSS
0.84
0.97
0.96
0.97
0.96
0.97
0.96
0.97
0.96
0.94
0.99

Timeline

What happened when

  1. The CVE record was published.
  2. CISA added it to its list of exploited vulnerabilities.
  3. The US federal deadline to fix it.
  4. Exploit-DB published an exploit (EDB-ID 51166).

CISA's required action

What CISA says to do

Apply updates per vendor instructions.

Read further: CISA's catalog

The flaw

What the flaw is

Cacti contains a command injection vulnerability that allows an unauthenticated user to execute code.

CISA's description

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 CVE record's description, from GitHub_M, shortened; full text on cve.org

CVE published
5 December 2022
Assigned by
GitHub_M
CVSS
9.8 Critical (CVSS 3.1, from the CNA)
CWE-74
Improper Neutralization of Special Elements in Output Used by a Downstream Component
CISA SSVC, exploitation
active
CISA SSVC, automatable
no
CISA SSVC, technical impact
total

Public exploits

Public exploits

Facts from Metasploit's module list and Exploit-DB's index; we never copy exploit code.

Metasploit
Cacti 1.2.22 unauthenticated command injection
exploit module, rank excellent
Exploit-DB
Cacti v1.2.22 - Remote Command Execution (RCE)
EDB-ID 51166, 31 March 2023
Sources
  • CVE records: Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation (source). Licence: CVE Program Terms of Use
  • CWE names: Copyright © 2006-2026, The MITRE Corporation. CWE, CWSS, CWRAF, and the CWE logo are trademarks of The MITRE Corporation (source). Licence: CWE Terms of Use
  • EPSS scores by FIRST (https://www.first.org/epss/), generated by Empirical Security (source)