ZeroHour
Help Net Securitypublished ()ingested @helpnetsecurity

SQLi vulnerability in Cacti could lead to RCE (CVE-2023-51448)

criticalVulnerability exploited in the wildimportance 60CVE-2023-51448CVE-2022-46169

Vulnerabilities mentionedAll →

CVEVulnerabilityCVSSEPSSFlagsAffectedExposurePublished
CVE-2022-46169
Unauthenticated Command Injection in Cacti (CVE-2022-46169)

Cacti, a widely used open-source network monitoring and graphing platform, contains a command injection flaw (CWE-74) that lets a completely unauthenticated attacker execute arbitrary commands on the Cacti server. The bug is reachable through the web-facing remote_agent.php script, where an attacker can spoof a trusted poller address (e.g., via a forwarded-client HTTP header) to bypass authentication and inject shell metacharacters into parameters used to build polling commands. Successful exploitation yields code execution in the context of the web server, giving an attacker a foothold on a monitoring system that typically has broad network visibility and stored credentials for many managed devices. Any Cacti deployment running vulnerable code is affected, with internet-exposed instances at greatest risk. Exploitation is confirmed in the wild — the flaw was added to CISA's Known Exploited Vulnerabilities catalog on 2023-02-16, and EPSS assigns it a 99.8% probability of exploitation.

Do: Apply CISA's required action by upgrading Cacti to the patched release (1.2.23 or later per vendor guidance). Until patched, restrict access to remote_agent.php to known poller source addresses and monitor web access and Cacti logs for signs of exploitation. Prioritize internet-exposed Cacti servers, since KEV listing confirms active exploitation and ransomware use is listed as unknown.

9.8100% KEV PoC
  • Cacti CISA data lists no explicit version range; public advisories describe releases prior to 1.2.23 as vulnerable
largetens of thousands of internet-exposed instances (roughly 10,000-50,000 Cacti web frontends visible in public scans), plus an unknown additional population of…
CVE-2023-51448
Cacti provides an operational monitoring and fault management framework.

Cacti provides an operational monitoring and fault management framework. Version 1.2.25 has a Blind SQL Injection (SQLi) vulnerability within the SNMP Notification Receivers feature in the file `‘managers.php’`. An authenticated attacker with the “Settings/Utilities” permission can send a crafted HTTP GET request to the endpoint `‘/cacti/managers.php’` with an SQLi payload in the `‘selected_graphs_array’` HTTP GET parameter. As of time of publication, no patched versions exist.

NVD description · AI analysis pending
8.867% PoC ×2
  • cacti cacti
Full article273 words · extracted from helpnetsecurity.com · click to collapse

A blind SQL injection vulnerability (CVE-2023-51448) in Cacti, a widely-used network monitoring, performance and fault management framework, could lead to information disclosure and potentially remote code execution.

CVE-2023-51448

Cacti is often used in network operation centers of telecoms and web hosting providers, to collect network performance data and store it in RRDtool, a logging and graphing database and system that, through a web interface, creates graphical representations of the collected data.

About CVE-2023-51448

CVE-2023-51448 is a vulnerability within Cacti’s SNMP Notification Receivers feature that could allow a threat actor to disclose all Cacti database contents or, depending on the database configuration, even trigger remote code execution (RCE).

“An authenticated attacker with the ‘Settings/Utilities’ permission can send a crafted HTTP GET request to the endpoint ‘/cacti/managers.php’ with an SQLi payload in the ‘selected_graphs_array’ HTTP GET parameter,” Cacti noted in the security advisory.

The Cacti maintainers have outlined a possible attack and say that a PoC script for testing it is available “upon request”.

The vulnerability, which affects versions 1.2.25, was discovered by Synopsys researcher Matthew Hogg and has been fixed by the maintainers in late December 2023.

Cacti servers in the crosshairs

A year ago, internet-exposed Cacti servers were targeted by attackers wielding an exploit for CVE-2022-46169, a critical command injection flaw that could be exploited remotely by unauthenticated users.

To exploit CVE-2023-51448, though, they must have access to an account with specific permissions or leverage another vulnerability to bypass the authentication requirement.

There is currently no indication that the vulnerability is being exploited in the wild. Cacti users are advised to upgrade to version 1.2.26, which fixed this and other vulnerabilities.

Text extracted automatically; images, tables and formatting may be missing. Original: https://www.helpnetsecurity.com/2024/01/09/cve-2023-51448/