CVE-2023-49084: RCE via SQL Injection and LFI in Cacti link.php (CVE-2023-49084)
- Vendor
- Cacti
CVE-2023-49084 is a critical vulnerability in Cacti version 1.2.25, specifically in the link.php component. The vulnerability arises from a combination of SQL Injection and Local File Inclusion (LFI) due to improper sanitization of user-controlled input used in file include statements. An authenticated attacker with high privileges can inject arbitrary PHP code into a log file (cacti.log) via error-based SQL Injection, and then trigger its execution by manipulating the file path through the contentfile field, bypassing directory traversal protections. This allows for remote code execution on the server.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows an authenticated attacker to execute arbitrary code on the server, leading to full compromise of confidentiality, integrity, and availability. The attacker can run system commands, potentially gaining complete control over the affected system. The attack is network-based and does not require user interaction, but does require high privileges.
Mitigation
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, restrict access to the Cacti interface to trusted users only, monitor for suspicious activity in the cacti.log file, and ensure that only necessary users have high privileges. Apply web application firewall (WAF) rules to block SQL Injection and LFI attempts targeting the link.php endpoint.
Remediation
Patch, then assume compromise.
Upgrade Cacti to version 1.2.26 or later, where the vulnerability is patched by improving data escaping and sanitization to prevent LFI and SQL Injection in the link.php component.
Exploits
1 exploit validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2023-49084 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2023-49084 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2023-49084?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2023-49084, the earliest disclosed Dec 20, 2023.
- Is there a patch for CVE-2023-49084?
- Upgrade Cacti to version 1.2.26 or later, where the vulnerability is patched by improving data escaping and sanitization to prevent LFI and SQL Injection in the link.php component.
- What products are affected by CVE-2023-49084?
- Cacti.
- How severe is CVE-2023-49084?
- CVE-2023-49084 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 64.4% (99th percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.