Common Weakness Enumeration

CWE-1464

Weakness Allowed

Improper Session Invalidation

Abstraction: Base · Status: Incomplete

The product establishes a session for an authenticated user, but it does not properly invalidate or terminate the session when it is required.

Mapping guidance

This CWE entry is at the Base level of abstraction, which is a preferred level of abstraction for mapping to the root causes of vulnerabilities.

Carefully read both the name and description to ensure that this mapping is an appropriate fit. Do not try to 'force' a mapping to a lower-level Base/Variant simply to comply with this preferred level of abstraction.

Relationships and members
ChildOf: CWE-1462 · View CWE-1000
Modes of introduction
Architecture and Design
Implementation
Detection methods

Dynamic Analysis with Manual Results Interpretation

Ensure that application testing includes scenarios that are intended to lead to session invalidation and verify that the session can no longer be used.

Notes

Maintenance · CWE 5.0 · 2026-10-28

This entry was created in CWE 5.0 to address known gaps in CWE coverage. It is not as complete as other new entries that were published in recent years. The CWE Team plans to work with the CWE community to make this entry more complete in later 5.x releases.

Content history
Submission: CWE Content Team · MITRE · 2026-10-23 · CWE 5.0
Contribution: CDR GitHub User abdullahzarshaid (Abdullah Bin Zarshaid) · 2026-09-15 · CWE 5.0

Suggested content related to "Improper Enforcement of Explicit Session Termination" which inspired and contributed to the content in this CWE entry

0 vulnerabilities reference this CWE, most recent first.

No vulnerabilities reference this CWE.

Mitigation
Implementation

Ensure that user sessions are invalidated on the server-side for all possible security related events relevant to the application. It is important that the server-side handles all session invalidation and does not rely on the client to remove or delete a session, due to the possibility of adversaries capturing session identifiers or cookies for later reuse.

No CAPEC attack patterns related to this CWE.