The short version: A researcher published a working exploit for the Cacti network-monitoring tool on Thanksgiving Day without telling the developers first. It takes four web requests, needs no password, and ends with commands running on the server. A fix was merged the next day, but only as source code in the 1.2.31 maintenance branch. If you run Cacti, turn the guest account off now.

How the bug works

Four-step chain: guest session, saved graph display settings, stored SQL injection that rewrites the poller configuration, poller runs operating-system commands
Name4HTTP2SHELL (no CVE yet)
NeedsThe Cacti guest account turned on. No credentials.
Tested onCacti 1.2.31. Unclear whether older versions are affected.
ExploitPublic on GitHub, with a write-up and video
FixMerged November 28 into the 1.2.31 branch: guests can no longer save display preferences, and graph settings get stricter input checks
Attacks seenNone reported as of November 27

“No attacks reported yet” won’t last long once an exploit and a video are public.

Why a monitoring server is a big prize

Cacti polls your network devices, so it stores the credentials and SNMP passphrases for them. The commands run with the poller’s account, which is often a low-privilege web user. The researcher showed root, though. Either way, an attacker on that box can probably reach most of your network. Monitoring tools, backup servers and CI runners all have access to nearly everything, and they rarely get patched first.

The playbook for any unpatched bug

Cacti is this week’s example. The same steps apply the next time there’s a public exploit and no release.

Five steps: check what is reachable, remove the precondition, narrow network access, hunt for signs of use, patch from source after testing

1. Find every instance. Include the one a contractor set up in 2019. You can’t protect a server you don’t know about.

2. Remove the precondition. Most exploits need something to be switched on. For this one it’s the guest account. In Cacti’s authentication settings, set the guest user to none. This one change blocks the published exploit.

3. Narrow who can reach it. A monitoring dashboard doesn’t need to be on the internet. Put it behind the VPN or limit it to trusted networks.

4. Hunt for signs of use. Cacti’s advice is to review poller configurations for commands you didn’t add, and to check logs for warnings about non-numeric values in graph display settings. If you find anything, rotate every credential the server stores, because those devices are now in scope too.

5. Patch from source, carefully. Cacti suggests testing the merged fix in a lab before it goes to production. That’s the right call for a tool your on-call team depends on. Then move to the official release when it ships.

OptionTimeWhat it buys you
Turn off the guest accountMinutesBlocks the published exploit
Restrict network accessAn hourLimits who can try anything else
Hunt for signs of useAn afternoonTells you whether you’re cleaning up or just preventing
Apply the merged fixA day with testingRemoves the bug itself

Do the first row today. The rest can follow this week.

Plan before the next one

The teams that handle these weeks well already know what they run, which settings can be turned off safely, and who’s allowed to take a system offline. If you don’t have that written down, start with an incident response plan.

Want to know which of your internal tools could be taken over this way? An internal penetration test will show you. Talk to us.

Security services from Libre Labs View all posts