CVE-2026-40080

published 25 Jun 2026 · updated 26 Jun 2026

Cacti: Open Redirect via HTTP_REFERER substring check in auth_login_redirect

6.1MediumCVSS 6.1EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. No fixed version is recorded.

Cacti is an open source performance and fault management framework. Versions 1.2.30 and prior are vulnerable to Open Redirect through a substring check rather than a host check at str_contains($referer, CACTI_PATH_URL). When the user's login_opts == '1' (redirect to referer after login), the function used $_SERVER['HTTP_REFERER'] directly. An attacker could craft a referer such as https://evil.com/cacti/. Where CACTI_PATH_URL is /cacti/, the substring matches and the user is redirected to evil.com after login. The pre-existing validate_redirect_url() helper at lib/html_utility.php performed proper validation but was not invoked from auth_login_redirect(). This issue has been fixed in version 1.2.31.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
CactiCacti<1.2.31

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Cacti, strongest first

10.0CriticalCISA KEVPublic exploit

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-40080 severity on Zeptric[![CVE-2026-40080](https://zeptric.io/badge/cve/CVE-2026-40080.svg)](https://zeptric.io/cve/CVE-2026-40080)