Skip to main content
CVE Radar
CISA KEVcriticalRemote Code Execpublic exploit

CVE-2022-46169

CVE-2022-46169 — Unauthenticated Command Injection

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.

Published Updated Sources: NVD, Cacti (CNA), CISA, FIRST EPSS, GitHub, Exploit-DB, Red Hat (VEX), SOCRadar CTI

Triage

Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.

Exploitation

Confirmed

CISA KEV, listed Feb 16, 2023

EPSS

98%

top of FIRST's scoreset

Affects

Cacti

cacti

CVSS base

9.8

critical

CISA SSVC assessment

Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.

CISA

Exploitation

Active

none · proof-of-concept · active

Automatable

No

can an attacker script all four kill-chain steps

Technical impact

Total

partial · total control of the vulnerable component

Remediation

The vendor's own words where we have them.

Upgrade Cacti to a fixed release. Apply vendor patches per advisory and restrict external exposure of the affected component until patched.

CISA required action

Apply updates per vendor instructions.

Federal deadline Mar 9, 2023 — passed 1,366 days ago

Red Hat VEX · CVE-2022-46169

fixed0affected0not affected1

First 24 hours

Ordered from the record's own fields — exposure first, because you cannot patch what you have not found.

  • Identify exposed assets running affected vendor/product/version combinations.
  • Treat as emergency remediation because CISA KEV status is present.
  • Search available logs for exploit probes, errors, authentication anomalies, or suspicious child processes matching the vulnerability class.

Affected scope

Vendor, product and version as the advisories word them.

Affected vendors, products and versions
VendorProductVersionsStatus
Cacticacti< 1.2.23Vulnerable

Attack characteristics

The CVSS vector, decoded. It describes the attack, not your exposure to it.

Availability

High

Confidentiality

High

Integrity

High

Scope

Unchanged

Attack Complexity

Low

Attack Vector

Network

Privileges Req

None

User Interaction

None

Every base score collected

Sources score independently and disagree; each row says who scored it and under which version.

Every CVSS base score collected, by source and version
ScoreVersionSeverityExpl.ImpactSource
9.8CVSS 3.1critical3.95.9GitHub (CNA), NVD, Cacti (CNA), Red Hat (VEX)

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What this weakness leads to

MITRE's own consequences and mitigations for the weakness class — the authority's wording, not guidance derived from the CVSS vector.

MITRE

CWE-74 · Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

  • Read Application Data
  • Bypass Protection Mechanism
  • Alter Execution Logic
  • Other

Mitigation: Programming languages and supporting technologies might be chosen which are not subject to these issues.

CWE-863 · Incorrect Authorization

  • Read Application Data
  • Read Files or Directories
  • Modify Application Data
  • Modify Files or Directories

Mitigation: Divide the software into anonymous, normal, privileged, and administrative areas. Reduce the attack surface by carefully mapping roles with data and functionality. Use role-based access control (RBAC) [REF-229] to enforce the roles at the appropriate boundaries. Note that this approach may not protect against horizontal authorization, i.e., it will not protect a user from attacking others with the same role.

Weakness & attack patterns

  • CWE-74Injection
  • CWE-78OS Command Injection
  • CWE-863Incorrect Authorization

Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.

CAPEC-267 · Leverage Alternate EncodingCAPEC-71 · Using Unicode Encoding to Bypass Validation LogicCAPEC-46 · Overflow Variables and TagsCAPEC-83 · XPath InjectionCAPEC-3 · Using Leading 'Ghost' Character Sequences to Bypass Input FiltersCAPEC-273 · HTTP Response SmugglingCAPEC-13 · Subverting Environment Variable ValuesCAPEC-8 · Buffer Overflow in an API CallCAPEC-250 · XML InjectionCAPEC-47 · Buffer Overflow via Parameter ExpansionCAPEC-52 · Embedding NULL BytesCAPEC-42 · MIME Conversion
  • T1562.003Impair Defenses: Impair Command History Logging
  • T1574.006Hijack Execution Flow: Dynamic Linker Hijacking
  • T1574.007Hijack Execution Flow: Path Interception by PATH Environment Variable

CISA KEV details

CISA lists a CVE here once it has evidence of exploitation against real targets.

Listed

Feb 16, 2023

Federal deadline

Mar 9, 2023

passed 1,366 days ago

Ransomware use

Unknown

CISA records ransomware use only for campaigns it has confirmed, so “Unknown” means unrecorded, not ruled out. The deadline binds US federal agencies; for everyone else it is a date to argue against.

Public exploit

Capability, not use: code existing is a different claim from anyone running it.

PoC repos

94

2 of the 5 sampled are weaponized

Exploit entries

49

Exploit-DB and CTI exploit indexes

Social mentions

Posts naming this CVE. Attention, not evidence of exploitation — it spikes on disclosure and decays whether or not anything is exploited.

Detection rules

Sigma and YARA rules a source published for this CVE — the only detection content any connected source supplies.

SOCRadar

Detection

Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.

  • Search application, proxy, and WAF logs for requests touching /functions.php.
  • Prioritize edge telemetry for network-reachable Cacti.
  • Monitor for scanner or exploit-pattern traffic after 143 public PoC repositories were reported.
web/proxy/WAF logsapplication logsnetwork IDS/IPSEDR process telemetryhost service logs

Exposure queries

Search-engine queries that surface exposed instances. Run them against your own estate first.

SOCRadar
  • title:"Login to Cacti"

Timeline

What happened to this CVE, newest first — with the readings a source repeats on a schedule counted underneath rather than listed.

  1. 2026
  2. Added · CVSS 3.1 9.8 (AV:N)

    Jun 17, 2026 · NVD

  3. 2025
  4. Bulletin released on NIST.

    Oct 16, 2025 · SOCRadar CTI

  5. Bulletin released on NIST.

    Oct 16, 2025 · SOCRadar CTI

  6. Bulletin released on Mitre.

    Jul 28, 2025 · SOCRadar CTI

  7. Cve is exploited alv-david/CVE-2022-46169-Cacti-1.2.22

    Jul 8, 2025 · SOCRadar CTI

  8. Cve is exploited RdBBB3/SHELL-POC-CVE-2022-46169

    May 23, 2025 · SOCRadar CTI

  9. 2023
  10. Added · webapps entry: Cacti 1.2.22 - Remote Command Execution (RCE)

    Mar 31, 2023 · Exploit-DB

  11. Added to CISA KEV catalog

    Feb 16, 2023 · CISA

  12. 2022
  13. Initial · CVE published

    Dec 5, 2022 · NVD

Source activity

Readings a source repeats on a schedule, counted rather than listed.

  • 9×SVRS was changedMay 24, 2025 – Apr 20, 2026 · SOCRadar CTI
  • 5×Github ReposMay 21, 2025 – Oct 8, 2026 · SOCRadar CTI
  • 5×TweetsJan 6, 2025 – Oct 2, 2026 · SOCRadar CTI
  • 4×CVE modified by MITRE: CVSS metrics updated.Oct 21, 2025 – Oct 24, 2025 · SOCRadar CTI
  • 1×1 time mentioned on 1 Telegram channelOct 20, 2026 · SOCRadar CTI

References

10 on the record

Coverage

1 story from the feeds we poll

Related CVEs

Same product first, then the same weakness or threat actor.

Elsewhere on this site

Not in any source we poll

Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.

  • No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
  • No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
  • No exploit packet captures, log samples, or incident case IDs supplied.
Answered from this record1

What should defenders know first?

CVE-2022-46169 is Unauthenticated Command Injection, a critical vulnerability affecting Cacti from Cacti. The current evidence lists it in CISA KEV, and the exploit status is: Yes: CISA KEV signal present. Public exploit evidence is: 143 public PoC repositories reported; 2 marked weaponized in current dataset. The affected-version evidence is listed in the key facts and affected products tables. Defenders should first verify whether exposed or business-critical assets run those versions, then apply vendor patches or mitigations, restrict reachable attack surface, and preserve logs for detection review. CVSS 9.8 describes technical severity, while EPSS 98% helps estimate near-term exploit likelihood; neither replaces asset context. Unknown fields should remain explicit in tickets, and threat actor, IOC, victimology, or payload claims should not be added unless a cited source supports them. Monitor CISA KEV, vendor advisories, NVD changes, public PoC repositories, and internal telemetry for update triggers.