The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2022-46169

CVE-2022-46169: Cacti RCE Vulnerability

CVE-2022-46169 is a critical RCE flaw in Cacti that allows unauthenticated attackers to execute arbitrary code via command injection. This post covers the technical details, affected versions, impact, and mitigation.

Published: February 18, 2026

CVE-2022-46169 Overview

CVE-2022-46169 is a critical command injection vulnerability in Cacti, the open source operational monitoring and fault management platform. This vulnerability allows an unauthenticated attacker to execute arbitrary code on servers running Cacti by exploiting a flaw in the remote_agent.php file. The attack chain combines an authentication bypass with command injection, making it particularly dangerous as it requires no prior authentication.

The vulnerability has been actively exploited in the wild and has been added to the CISA Known Exploited Vulnerabilities (KEV) catalog, indicating its use in real-world attacks against organizations running vulnerable Cacti instances.

Critical Impact

Unauthenticated remote attackers can achieve complete system compromise by executing arbitrary commands on vulnerable Cacti servers, potentially leading to data theft, lateral movement, or ransomware deployment.

Affected Products

  • Cacti versions prior to 1.2.23 (1.2.x branch)
  • Cacti versions prior to 1.3.0 (1.3.x branch)
  • Any Cacti installation with POLLER_ACTION_SCRIPT_PHP poller items configured (common in default templates)

Discovery Timeline

  • December 5, 2022 - CVE-2022-46169 published to NVD
  • October 24, 2025 - Last updated in NVD database

Technical Details for CVE-2022-46169

Vulnerability Analysis

This vulnerability consists of two chained flaws that together enable unauthenticated remote code execution. The first component is an authentication bypass in the remote_agent.php file, which can be accessed without authentication. The authorization mechanism relies on the get_client_addr function to retrieve the client's IP address and resolve it to a hostname via gethostbyaddr. The system then checks if this hostname exists in the poller table.

The authentication bypass occurs because get_client_addr (defined in lib/functions.php) checks several $_SERVER variables to determine the client IP address, including variables beginning with HTTP_ which can be arbitrarily set by attackers via HTTP headers. Since a default entry exists in the poller table with the Cacti server's hostname, an attacker can bypass authentication by providing a header like Forwarded-For: <TARGETIP> where TARGETIP is the server's IP address.

The second component is a command injection vulnerability in the polldata action. When a poller_item has an action type of POLLER_ACTION_SCRIPT_PHP (value 2), the poll_for_data function uses proc_open to execute a PHP script. The $poller_id parameter is retrieved via get_nfilter_request_var, which allows arbitrary strings without sanitization. This parameter is directly inserted into the command string passed to proc_open, enabling command injection (e.g., poller_id=;id executes the id command).

Root Cause

The root cause is twofold: First, the get_client_addr function trusts user-controllable HTTP headers (HTTP_* server variables) for IP address determination, allowing IP spoofing. Second, the $poller_id parameter is passed to proc_open without proper sanitization or validation, enabling arbitrary command injection. The combination of trusting HTTP headers for authentication decisions and insufficient input validation on shell command parameters creates a critical attack surface.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker sends a crafted HTTP request to remote_agent.php with a spoofed Forwarded-For header matching the Cacti server's IP address. This bypasses the authentication check. The attacker then triggers the polldata action with a malicious poller_id parameter containing shell metacharacters and commands. The attacker must brute-force valid host_id and local_data_id values where the corresponding poller_item has POLLER_ACTION_SCRIPT_PHP action type, which is commonly present due to default templates like "Device - Uptime" or "Device - Polling Time".

php
// Patch showing the fix to get_client_addr function call (auth_login.php)
// Source: https://github.com/Cacti/cacti/commit/b43f13ae7f1e6bfe4e8e56a80a7cd867cf2db52b

		cacti_log("LOGIN: Guest User '" . $user['username'] . "' in use", false, 'AUTH');
	}

-		$client_addr = get_client_addr('');
+		$client_addr = get_client_addr();

	db_execute_prepared(
		'INSERT IGNORE INTO user_log
php
// Patch showing the fix to proxy_headers handling (lib/functions.php)
// Source: https://github.com/Cacti/cacti/commit/a8d59e8fa5f0054aa9c6981b1cbe30ef0e2a0ec9

function get_client_addr() {
	global $config, $allowed_proxy_headers;

-	$proxy_headers = $config['proxy_headers'] ?? null;
+	$proxy_headers = (isset($config['proxy_headers']) ? $config['proxy_headers'] : null);
	if ($proxy_headers === null) {
		$last_time = read_config_option('proxy_alert');
		if (empty($last_time)) {

Detection Methods for CVE-2022-46169

Indicators of Compromise

  • HTTP requests to remote_agent.php containing action=polldata parameter
  • Suspicious Forwarded-For, X-Forwarded-For, or similar proxy headers in web server logs pointing to internal IP addresses
  • Unusual process spawning from PHP or web server processes (e.g., sh, bash, cmd.exe)
  • Web server logs showing brute-force attempts with varying host_id and local_data_id parameters
  • Unexpected outbound network connections from the Cacti server

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block requests to remote_agent.php with suspicious poller_id values containing shell metacharacters (;, |, &, $(), backticks)
  • Monitor web server access logs for requests to remote_agent.php from external IP addresses, especially those containing action=polldata
  • Deploy SIEM rules to correlate authentication bypass attempts with subsequent command execution patterns
  • Use endpoint detection and response (EDR) solutions to monitor for suspicious child processes spawned by web server or PHP processes

Monitoring Recommendations

  • Enable detailed logging for the Cacti web application and PHP error logs
  • Monitor for process creation events where the parent process is the web server (Apache, Nginx) or PHP-FPM
  • Implement network monitoring to detect unexpected outbound connections from monitoring infrastructure
  • Review Cacti audit logs for unusual poller activity or configuration changes

How to Mitigate CVE-2022-46169

Immediate Actions Required

  • Upgrade Cacti to version 1.2.23 or later (for 1.2.x branch) or 1.3.0 or later (for 1.3.x branch) immediately
  • If immediate patching is not possible, restrict network access to remote_agent.php to only trusted poller IP addresses
  • Review web server logs for evidence of exploitation attempts
  • Implement network segmentation to limit Cacti server exposure
  • Consider temporarily disabling remote agent functionality if not required

Patch Information

The vulnerability has been addressed in Cacti version 1.2.23 and the 1.3.x release branch. The patch modifies the get_client_addr function to properly handle proxy headers and sanitizes input to the proc_open call. Security patches are available via the following commits:

  • Cacti Commit 7f0e16312dd5ce20f93744ef8b9c3b0f1ece2216
  • Cacti Commit a8d59e8fa5f0054aa9c6981b1cbe30ef0e2a0ec9
  • Cacti Commit b43f13ae7f1e6bfe4e8e56a80a7cd867cf2db52b

For detailed information, see the GitHub Security Advisory GHSA-6p93-p743-35gf.

Workarounds

  • Block external access to remote_agent.php at the web server or firewall level
  • Configure web server to reject requests with suspicious proxy headers from untrusted sources
  • Implement IP-based allowlisting for remote agent functionality
  • Use a reverse proxy with strict input validation to filter malicious requests
bash
# Apache configuration to restrict remote_agent.php access
# Add to your Cacti Apache configuration

<Files "remote_agent.php">
    Require ip 127.0.0.1
    Require ip 10.0.0.0/8
    # Add your trusted poller IP addresses
    Require ip YOUR_TRUSTED_POLLER_IP
</Files>

# Nginx configuration alternative
location ~ remote_agent\.php$ {
    allow 127.0.0.1;
    allow 10.0.0.0/8;
    # Add your trusted poller IP addresses
    allow YOUR_TRUSTED_POLLER_IP;
    deny all;
    # Continue with PHP handling
    include fastcgi_params;
    fastcgi_pass unix:/var/run/php-fpm.sock;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechCacti

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability94.47%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • CWE-74

  • CWE-78
  • Technical References
  • CISA Known Exploited Vulnerability
  • Vendor Resources
  • Cacti Commit Update

  • Cacti Commit Change

  • Cacti Commit Modification

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2024-25641: Cacti Package Import RCE Vulnerability

  • CVE-2025-24367: Cacti Graph Template RCE Vulnerability

  • CVE-2025-22604: Cacti SNMP Parser RCE Vulnerability

  • CVE-2024-29895: Cacti Command Injection RCE Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English