CVE-2026-40082

Cacti: Session Fixation via missing session_regenerate_id() after login

Published Jun 25, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
Description
Cacti is an open source performance and fault management framework. Versions 1.2.30 and prior have missing session_regenerate_id() after login, leading to Session Fixation. session_regenerate_id() is NOT called after successful login. The login flow at auth_login.php:203-207 directly sets $_SESSION[SESS_USER_ID] without rotating the session ID. The session cookie configuration is otherwise good (httponly=true, samesite=Strict, secure=true for HTTPS at include/global.php:513-537), but these do not prevent session fixation via same-site vectors. This issue has been fixed in version 1.2.31.

Analysis

AI-generated

Technical impact

The vulnerability arises because the Cacti application fails to regenerate the session ID after a successful login, allowing an attacker to predefine or fix a session identifier and subsequently hijack a session. This flaw results in session fixation, where a compromised session cookie enables an attacker to impersonate a legitimate user and gain unauthorized access to monitoring and fault‑management data. The weakness is classified as CWE‑384, indicating that the session is not refreshed to prevent fixation.

Affected Systems

Cacti, the open‑source performance and fault‑management framework, is affected in all releases up to and including version 1.2.30. Version 1.2.31 introduces the fix by calling session_regenerate_id() after authentication. No other vendors or products are listed as affected.

Risk and Exploitability

The CVSS score of 5.4 indicates moderate risk, and the EPSS score is not available. The vulnerability is not listed in the CISA KEV catalog. Based on the description, the likely attack vector is same‑site, where an attacker must provide a valid session identifier to the target browser—either by tricking the user into visiting a URL that includes a prefixed session ID or by exploiting pre‑existing session cookies. Successful exploitation would allow session hijacking and unauthorized access with the same privileges as the compromised user.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Cacti to version 1.2.31 or later, which restores session regeneration after login.
  • Verify that session_regenerate_id() is invoked during the login process and that the session ID changes on each successful authentication.
  • Ensure that secure session cookie attributes (HttpOnly, Secure, SameSite=Strict) remain enabled to mitigate other session‑related threats.

Generated by OpenCVE AI on June 26, 2026 at 00:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Cacti
Cacti cacti
Vendors & Products Cacti
Cacti cacti
Type Values Removed Values Added
Description Cacti is an open source performance and fault management framework. Versions 1.2.30 and prior have missing session_regenerate_id() after login, leading to Session Fixation. session_regenerate_id() is NOT called after successful login. The login flow at auth_login.php:203-207 directly sets $_SESSION[SESS_USER_ID] without rotating the session ID. The session cookie configuration is otherwise good (httponly=true, samesite=Strict, secure=true for HTTPS at include/global.php:513-537), but these do not prevent session fixation via same-site vectors. This issue has been fixed in version 1.2.31.
Title Cacti: Session Fixation via missing session_regenerate_id() after login
Weaknesses CWE-384
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 26, 2026, 6:42 PM
Reserved
Apr 9, 2026, 12:39 AM
Status
Analyzed
Published
Jun 25, 2026, 11:17 PM
Modified
Jun 29, 2026, 6:50 PM