CVE-2026-22802: cacti/cacti Auth Bypass

CVE-2026-22802

NVD

Vulnerability Summary

Authentication Bypass via Short-Hostname Comparison in remote_agent.php Affected Component `remote_agent.php:128-136, 159, 190` Root Cause `remote_agent_strip_domain()` strips everything after the first dot, reducing FQDNs to short hostnames. At line 159, the client PTR result is stripped; at line 190, the poller hostname is stripped. A machine whose PTR resolves to `poller1.attacker.com` is stripped to `poller1` and matches a legitimate poller `poller1.example.com`. PR #6972 added forward-verification (commit a053260db), but the forward lookup at line 163 resolves the already-stripped short hostname, not the full PTR result. If the attacker controls DNS for the bare name (via LLMNR/mDNS), forward verification passes. Authentication Pre-auth (IP-based authentication, no session required). PoC 1. Legitimate poller registered as `poller1.corp.example.com`. 2. Attacker configures PTR for their IP to `poller1.evil.com`. 3. Both strip to `poller1`, matching. 4. Attacker accesses SNMP data, graph data, data queries via remote_agent.php. Fix Remove `remote_agent_strip_domain()` calls at lines 159 and 190. Require exact FQDN match (as in commit eff2d086c). --- Maintainer Remediation & Release Information This vulnerability is fixed in Cacti 1.2.31 (`release/1.2.31`) via PRs #6968 and #7054, which remove short-hostname domain stripping in `remote_agent.php` and enforce exact FQDN validation. Users should upgrade to Cacti 1.2.31 or later.
Severity Level
MEDIUM(5.9)
Published Date
Nov 29, 2026
Last Modified
Nov 29, 2026
Exploitation Status
No confirmed exploitation yet
CVE Record Status
Reserved
This CVE ID is referenced in a public advisory, but the CVE Program has not published its official CVE Record yet. Full CVSS/CPE data from NVD will appear here once it does.
Root Weakness (CWE)
When an actor claims to have a given identity, the software does not prove or insufficiently proves that the claim is correct.
CVSS v3.1 Base Metrics — Score 5.9
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityNone
AvailabilityNone

Affected & Patched Versions

Affected Versions
  • cacti/cacti <= 1.2.30
Patched Versions
  • cacti/cacti 1.2.31

What to do

Fix it during your normal patch cycle. No exploitation is confirmed yet.

  1. Check whether you run cacti/cacti and which version.
  2. Update to a patched version listed above, then confirm the new version.

Timeline

  • Nov 29, 2026Published
  • Nov 29, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new cacti/cacti CVEsYou are reading CVE-2026-22802. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Nov 29, 2026 23:01 UTC