{"id":"CVE-2026-40080","aliases":["CVE-2026-40080"],"related":[],"kind":"vulnerability","state":"published","title":"Cacti: Open Redirect via HTTP_REFERER substring check in auth_login_redirect","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-06-25T22:29:51.784Z","modified":"2026-06-29T18:52:43.557Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-601"],"affected":[{"ranges":[{"version":"< 1.2.31","status":"affected"}],"vendor":"Cacti","product":"cacti","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"1.2.31"}],"vendor":"cacti","product":"cacti","cpe":"cpe:2.3:a:cacti:cacti:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/Cacti/cacti/security/advisories/GHSA-6gr7-53g8-vchq","tags":["exploit","mitigation","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/Cacti/cacti/releases/tag/release%2F1.2.31","tags":["product","release-notes","x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-06-26T14:08:58.081Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-40080","url":"https://www.cve.org/CVERecord?id=CVE-2026-40080","licence":"CVE Terms of Use","modified":"2026-06-26T14:09:20.592Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-40080","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40080","licence":"Public domain","modified":"2026-06-29T18:52:43.557Z"}],"updatedAt":"2026-11-25T22:59:26.443Z","epss":{"score":0.00257,"percentile":0.10642,"date":"2026-11-30T12:00:22.000Z"}}