CVE-2026-40080
published medium CVSS 3.1 · 6.1Cacti: Open Redirect via HTTP_REFERER substring check in auth_login_redirect
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Cacti | — | cacti< 1.2.31 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | cacti | Fixed | 1.2.31-r0 | Package fix record |
| Alpine Linux | v3.24 | cacti | Fixed | 1.2.31-0 | Package fix record |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.1 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Cacti | cacti | < 1.2.31 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-601 CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
References
2Provider assertions
2GitHub_M · cna
Cacti: Open Redirect via HTTP_REFERER substring check in auth_login_redirect
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5ed6a41087bf58e31bf4f9c28dd488834e56a13886fadebc0d8d07d2f3f6ff44
- Ingested
- 23 Sep 2026, 09:13:02 UTC
- Source record
- Official CVE record