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
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.
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
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.
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Cacti | cacti | < 1.2.23 | Vulnerable |
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.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 9.8 | CVSS 3.1 | critical | 3.9 | 5.9 | GitHub (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.
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.
- 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.
Real Cacti. Real CVE-2022-46169. Real pivot into a FreeBSD box. In NODE: PROTOCOL you don't hack a fake "mainframe." You exploit the same monitoring software and the same bugs you'd meet on a real engagement. Free demo at Steam Next Fest, Oct 19. #infosec #hacking #indiedev https://t.co/3QkN3BNp3V
@hacking_game_· Oct 1, 2026
I just completed Cactus room on TryHackMe! Bypass authentication and execute commands remotely on Cacti using CVE-2022-46169. https://t.co/LBG6SMLqbf #tryhackme via @tryhackme
@NapaCorruption· Jul 12, 2026
Detection rules
Sigma and YARA rules a source published for this CVE — the only detection content any connected source supplies.

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.
Exposure queries
Search-engine queries that surface exposed instances. Run them against your own estate first.

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.
- 2026
Added · CVSS 3.1 9.8 (AV:N)
Jun 17, 2026 · NVD
- 2025
Bulletin released on NIST.
Oct 16, 2025 · SOCRadar CTI
Bulletin released on NIST.
Oct 16, 2025 · SOCRadar CTI
Bulletin released on Mitre.
Jul 28, 2025 · SOCRadar CTI
Cve is exploited alv-david/CVE-2022-46169-Cacti-1.2.22
Jul 8, 2025 · SOCRadar CTI
Cve is exploited RdBBB3/SHELL-POC-CVE-2022-46169
May 23, 2025 · SOCRadar CTI
- 2023
Added · webapps entry: Cacti 1.2.22 - Remote Command Execution (RCE)
Mar 31, 2023 · Exploit-DB
Added to CISA KEV catalog
Feb 16, 2023 · CISA
- 2022
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
- github.com/Cacti/cacti/commit/7f0e16312dd5ce20f93744ef8b9c3b0f1ece2216
Patch, Third Party Advisory, NIST, Mitre, MITRE
- github.com/Cacti/cacti/commit/a8d59e8fa5f0054aa9c6981b1cbe30ef0e2a0ec9
Patch, Third Party Advisory, NIST, Mitre, MITRE
- github.com/Cacti/cacti/commit/b43f13ae7f1e6bfe4e8e56a80a7cd867cf2db52b
Patch, Third Party Advisory, NIST, Mitre, MITRE
- github.com/Cacti/cacti/security/advisories/GHSA-6p93-p743-35gf
Exploit, Mitigation, Patch, Third Party Advisory, NIST, Mitre, MITRE, Vendor Advisory
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-46169
US Government Resource
- www.exploit-db.com/exploits/51166
Vendor Advisory
- access.redhat.com/security/cve/CVE-2022-46169
Vendor Advisory
- www.cve.org/CVERecord?id=CVE-2022-46169
Vendor Advisory
Coverage
1 story from the feeds we poll
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2024-29895 Cacti command injection in cmd_realtime.phpCVSS 10.0
- CVE-2026-39902 Cacti: Authenticated RCE on Data InputCVSS 7.2
- CVE-2026-49442 Cacti: User Enumeration via Error MessagesCVSS 5.3
- CVE-2026-105134 Ahsay AhsayCBS Replication Receiver UpdateReceivers.do os command injectionCVSS 10.0 · CISA KEV
- CVE-2026-49869 Kestra: Unauthenticated Remote Code Execution via Authentication Bypass in `AuthenticationFilter`CVSS 10.0 · CISA KEV
- CVE-2026-16812 VeloCloud Orchestrator OS Command InjectionCVSS 10.0 · CISA KEV
Elsewhere on this site
- Cactievery CVE for this vendor
- cactievery page on this product
- February 2023what else CISA listed
- Remote Code Execsame class
- CWE-74other pages naming this weakness
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.