News
Cacti 1.2.31 guest access can run commands, and no patch is out.
Cacti Core 1.2.31, the current release, can be driven from a guest session to command execution on the server when the guest account is enabled. No CVE is assigned yet, and no fix is named.

Impact
- What was impacted
- Cacti Core 1.2.31, the latest version named in this report, when the guest account is enabled. A guest session can store a non-numeric value in the setting preview_graphs_per_page. Opening the graph view with default filters turns that value into SQL that changes the poller table. The realtime poller then passes a command string from the database to PHP popen() with no allowlist. The proof of concept has no CVE. It is tracked as 4HTTP2SHELL and 4HTTP2ROOT. No fixed build is named.
- Who was impacted
- Anyone running Cacti with the guest account turned on, including a host that is otherwise isolated. Teams that keep router, switch, and server credentials in Cacti, because command execution on the monitoring server can reach the rest of the network.
- What you need to do
- Turn the guest account off and restrict the Cacti web interface to trusted networks. Review poller configuration entries for unexpected command values. Install the vendor fix when one is published. This report does not name a patched version. Do not send the guest requests, write a SQL string into preview_graphs_per_page, or open the realtime poller to test the bug.
A zero-day in Cacti, the open-source network monitoring tool, can be turned into remote command execution. The proof of concept does not have a CVE identifier yet. It is being tracked under the names 4HTTP2SHELL and 4HTTP2ROOT. Researcher ek0ms savi0r said a fresh HTTP session, with no login, no API key, and no phishing message, can reach command execution as the Cacti server user by using four requests against the default guest surface. The issue affects Cacti Core 1.2.31, described as the latest version, including on an isolated host, when the guest account is enabled. This report does not say whether older releases are affected, and it does not name a safe build.
The guest can write a non-numeric value into the setting preview_graphs_per_page through auth_profile.php, using the update_data action. That setting is supposed to say how many graphs appear on a page in Preview Mode. Cacti does not check that the saved value is an integer. When graph_view.php loads with its default filters, the stored text becomes a second-order SQL injection. The query described in the research is an UPDATE against Cacti's poller table. From the same guest session, graph_realtime.php reads the changed row and passes it to PHP's popen() with no allowlist and no sanitization. Four failures line up. The guest can store an arbitrary string in a setting that should be a number. The stored default skips later request validation. Cacti's PHP PDO driver accepts stacked statements through the SQL LIMIT clause. The poller runs a command string that was kept in the database.
A successful attack can take over the Cacti server and use it to move further into the network. It can also expose data the server holds, or quiet alerts by changing the poller table. watchTowr said Cacti often stores credentials and connection details for routers, switches, servers, and other devices, so command execution on the monitoring host can reach past that one machine. No fix is named. Until one is published, disable the guest account, limit who can open the Cacti web interface, review poller configuration entries for command values you do not expect, and install the patch as soon as the vendor ships it.
For your AI agent
Agent instructions — copy paste to Claude
You are helping me respond to an unpatched flaw in Cacti Core 1.2.31. A guest session can store a non-numeric setting that later becomes SQL and then a command passed to PHP popen(). Do not send the four requests. Do not write a value into preview_graphs_per_page. Do not open graph_view.php or graph_realtime.php to see if the bug works. Do not call popen, build a stacked SQL statement, or write a proof of concept. Ask before disabling an account, changing a firewall, editing the poller table, rotating a credential, or taking a host offline. Facts from the report: - The flaw has no CVE identifier yet. The proof of concept is tracked as 4HTTP2SHELL and 4HTTP2ROOT. Do not invent a CVE. - Researcher ek0ms savi0r described a path from a fresh unauthenticated HTTP session to command execution as the Cacti server user, in four requests, against the default guest surface. No login, no valid API key, and no phishing were required in that description. Do not reconstruct the requests. - It affects Cacti Core 1.2.31, described as the latest version, including on an isolated host, when the guest account is enabled. This report does not say older versions are safe, and it does not name a fixed build. Do not invent 1.2.32 or any other safe version. - The guest can write non-numeric text into the setting preview_graphs_per_page via auth_profile.php with action update_data. That setting controls how many graphs are shown per page in Preview Mode. Cacti does not validate that the input is an integer. - Loading graph_view.php with default filters turns the stored text into a second-order SQL injection. The demonstrated query is an UPDATE of a record in the poller table. Do not run that update. - graph_realtime.php, called from the same guest session, reads the modified poller row and passes it to PHP popen() with no allowlist and no sanitization. - Four failures: the guest can write a numeric setting as an arbitrary string; the stored default bypasses request validation; Cacti's PHP PDO driver accepts stacked statements through the SQL LIMIT clause; the poller executes a database-stored command string. - Exploitation can compromise the Cacti server, expose sensitive data, suppress alerts by modifying the poller table, and provide a pivot into the network. watchTowr said Cacti often stores credentials and connection details for routers, switches, servers, and other devices. - With no fix available, the advice is to disable the guest account, restrict access to the Cacti web interface, review poller configuration entries for unexpected command values, and apply the fix when it is published. Context: - What was impacted: Cacti Core 1.2.31 with the guest account enabled, including the poller command path and any device credentials stored on that server. - Who should care: operators of Cacti, especially where the web interface is reachable beyond the team that runs it. - What to do: disable the guest account, restrict the web interface, review poller command values, and wait for a vendor build this report does not name. Do this in order. Prefer read-only checks first. Ask before any change that disables an account, edits the database, rotates a secret, or limits network access. 1. Inventory - Find whether we run Cacti. Record the version string if it is already visible. If it is not 1.2.31, still record it and say this report only names 1.2.31. Do not mark another version safe or unsafe. - Record whether the guest account is enabled. Do not log in as guest and do not submit the profile form. - Record who can reach the Cacti web interface from outside the management network. - Read poller configuration entries and list command values that are not part of the vendor default, if we can see them without changing the table. Do not execute those commands. - Note whether the server stores device credentials. Do not print the secrets. Say only whether credential fields are populated. 2. Contain - If the guest account is enabled, propose disabling it. Ask before you do. - If the web interface is reachable from untrusted networks, propose restricting it. Ask before you change a firewall or a web server rule. - If a poller command looks unexpected, propose taking that host off the network until it is reviewed. Ask before you isolate it. Do not delete the row in this step. 3. Remediate - This report names no patched version. Do not install a build you invented. If I give you a vendor advisory that names a fix, summarize that advisory before changing anything. - If device credentials may have been exposed, propose rotating them. Ask before you rotate. This report does not say our server was compromised. - Do not edit preview_graphs_per_page, the poller table, or PHP source to "test the patch." 4. Verify - Report the version, whether guest access is still enabled, whether the web interface is still broadly reachable, and whether any poller command still looks unexpected. 5. Report back - What matched, what you changed, and that no CVE and no fixed Cacti build were in this report. Do not invent a CVE, a safe version, or exploit steps. If a check needs access I have not given you, say what you need and stop.