CVE-2021-3311
PHP vulnerability analysis and mitigation

Overview

An authentication vulnerability was discovered in October CMS through build 471, identified as CVE-2021-3311. The issue allows the reactivation of previously invalidated session IDs after a user logs out and then logs back in. This vulnerability was discovered in February 2021 and affects the authentication behavior implemented in Auth/Manager.php (October Commit, Exploit Analysis).

Technical details

The vulnerability stems from improper session handling in the logout functionality. When a user logs out, the system only flushes the session attributes using Session::flush() without properly invalidating the session ID. This implementation allows old session tokens to be reactivated upon subsequent logins. The vulnerability has been assigned a CVSS v3.1 base score of 9.8 (CRITICAL) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD Database).

Impact

If exploited, this vulnerability could allow an attacker who has obtained a user's previous session token to regain unauthorized access to their account after the user logs out and logs back in. This creates a significant security risk as it violates the intended authentication behavior and could lead to unauthorized account access (Exploit Analysis).

Exploitability

The vulnerability requires an attacker to first obtain a victim's session token before it can be exploited. The attack scenario is constrained by a time window, as the token's last use must be within the October CMS framework's default session timeout period of 2 hours. While these conditions make exploitation more difficult, the vulnerability remains significant due to its potential impact (Exploit Analysis).

Mitigation and workarounds

The vulnerability was patched by replacing Session::flush() with Session::invalidate() in the logout function. This change ensures that old session IDs are properly destroyed and cannot be reactivated. Users should upgrade to a version of October CMS that includes the security fix implemented in commit 642f597 (October Commit).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-8cfw-pcwh-v63wHIGH8.4
  • PHP logoPHP
  • winter/wn-system-module
NoYesAug 20, 2026
GHSA-p2ch-c2c3-4xm5MEDIUM6.1
  • PHP logoPHP
  • winter/wn-backend-module
NoYesAug 20, 2026
GHSA-fm29-4mq3-phg6MEDIUM5.3
  • PHP logoPHP
  • winter/wn-backend-module
NoYesAug 20, 2026
GHSA-hq84-x37p-j6q5MEDIUM4.5
  • PHP logoPHP
  • winter/wn-backend-module
NoYesAug 20, 2026
GHSA-mpmw-f6h6-3g26MEDIUM4.3
  • PHP logoPHP
  • winter/wn-backend-module
NoYesAug 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management