CVE-2026-40080: Cacti: Open Redirect via HTTP_REFERER substring check in auth_login_redirect

Published Jun 25, 2026
·
Updated

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 strcontains($referer, CACTIPATHURL). When the user's loginopts == '1' (redirect to referer after login), the function used $SERVER['HTTPREFERER'] directly. An attacker could craft a referer such as https://evil.com/cacti/. Where CACTIPATHURL is /cacti/, the substring matches and the user is redirected to evil.com after login. The pre-existing validateredirecturl() helper at lib/htmlutility.php performed proper validation but was not invoked from authloginredirect(). This issue has been fixed in version 1.2.31.

Affected Software

2 affected components
Cacti Cacti<=1.2.30
Cacti Cacti<1.2.31

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Cacti to a version that resolves this vulnerability.

    Fixed in 1.2.31
  2. Compensating control

    If users can authenticate with login_opts == '1' (redirect to referer after login), restrict or block use of untrusted HTTP_REFERER values at the edge (e.g., via WAF/ACL) to prevent open-redirect behavior using substring matching of 'referer' containing '/cacti/' (CACTI_PATH_URL).

Event History

Jun 25, 2026
CVE Published
via MITRE·10:29 PM
Data Sourced
via MITRE·10:29 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:17 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-40080?

The severity of CVE-2026-40080 is rated medium with a score of 6.1.

2

How do I fix CVE-2026-40080?

To fix CVE-2026-40080, upgrade to Cacti version 1.2.31 or later.

3

What type of vulnerability is CVE-2026-40080?

CVE-2026-40080 is an Open Redirect vulnerability affecting Cacti.

4

Which versions of Cacti are affected by CVE-2026-40080?

Cacti versions 1.2.30 and prior are affected by CVE-2026-40080.

5

What does CVE-2026-40080 exploit involve?

CVE-2026-40080 exploits an inadequate check of the HTTP_REFERER for redirects after login.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203