
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-40082 is a Session Fixation vulnerability in Cacti, an open-source performance and fault management framework, caused by a missing call to session_regenerate_id() after successful login. All versions up to and including 1.2.30 are affected; the issue was fixed in version 1.2.31. The vulnerability was published on June 25, 2026, with the GitHub Security Advisory (GHSA-273r-qr93-wgcp) published on June 18, 2026. It carries a CVSS v3.1 base score of 5.4 (Medium) (GitHub Advisory, Red Hat Bugzilla).
The root cause is classified as CWE-384 (Session Fixation) and CWE-613 (Insufficient Session Expiration). The login flow in auth_login.php (lines 203–207) directly assigns $_SESSION[SESS_USER_ID] without first calling session_regenerate_id(), meaning the pre-authentication session ID is preserved after login. The same flaw exists in the cookie-restore and basic-auth paths within include/auth.php. Although the session cookie configuration is otherwise hardened (httponly=true, samesite=Strict, secure=true for HTTPS as configured in include/global.php:513-537), these protections do not prevent session fixation via same-site vectors such as subdomain cookie injection or XSS. The fix, implemented in commit 2fa404e, adds proper session ID rotation in the affected authentication paths (GitHub Advisory, GitHub Commit).
A successful exploit allows an unauthenticated attacker to hijack an authenticated user's session, effectively impersonating that user within the Cacti application. This results in low confidentiality and integrity impact — the attacker can access monitoring data, configuration settings, and perform actions on behalf of the victim user, including potentially modifying device configurations or accessing sensitive network performance data. Availability is not directly impacted, but the ability to act as an authenticated user (including administrators) could enable further privilege escalation or destructive actions within the Cacti instance (GitHub Advisory).
PHPSESSID cookie value assigned by the server before authentication.PHPSESSID value in the victim's browser.session_regenerate_id() is never called, the server retains the same session ID and associates it with the now-authenticated session.PHPSESSID value in their own browser to send requests to the Cacti instance, gaining full access to the victim's authenticated session and all associated privileges (GitHub Advisory).auth_login.php) from one IP address followed shortly by authenticated requests using the same PHPSESSID from a different IP address.user_log table) where the session ID does not change between pre- and post-login requests.The primary remediation is to upgrade Cacti to version 1.2.31 or later, which adds proper session_regenerate_id() calls in auth_login.php and the cookie-restore/basic-auth paths in include/auth.php (GitHub Release, GitHub Commit). No official configuration-based workaround is provided for unpatched versions. As supplementary measures, administrators should restrict Cacti access to trusted networks, ensure HTTPS is enforced (which limits some cookie injection vectors), and consider deploying a web application firewall with rules to detect session fixation patterns.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."