CVE-2026-22802: Authentication Bypass leads to information disclosure
CVE-2026-22802 affects 48 listed versions of Cacti in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Cacti
48 of 50 listed versions are affected. Fixed in 1.2.31. The newest release, 1.2.32, is not affected.
1.2.30 1.2.29 1.2.28 1.2.27 1.2.26 1.2.25 1.2.24 1.2.23 1.2.22 1.2.21 1.2.20 1.2.19 1.2.18 1.1.38 1.1.36 1.1.27 1.1.25 1.1.17 1.1.15 1.1.13 1.1.12 1.0.0 0.8.8g 0.8.8f 0.8.8d 0.8.8c 0.8.8b 0.8.8a 0.8.8 0.8.7i 0.8.7h 0.8.7g 0.8.7f 0.8.7e 0.8.7d 0.8.7c 0.8.7b 0.6.8a 0.6.8 0.6.7 0.6.6 0.6.5 0.6.4 0.6.3 0.6.2 0.6.1 0.6 0.5
What it is
## 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](https://github.com/Cacti/cacti/pull/6968) and [#7054](https://github.com/Cacti/cacti/pull/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.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N (GitHub)
Published by GitHub on 29 November 2026.
Sources
Check one version you run: look CVE-2026-22802 up, or pick a product and version in the quick lookup.
Updated 1 December 2026.