CWE-1464 Improper Session Invalidation

On cwe.mitre.org
Type
Base
Status
Incomplete
Mapping
Allowed
Catalogue
CWE 5.0, 28 Oct 2026

Should you map to this?

Allowed Fine to map a vulnerability to.

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.

Description

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

Mitigations

  1. 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.

Observed examples

ReferenceWhat happened
CVE-2021-38869Session was not invalidated after inactivity
CVE-2019-5638Session not invalidated after security relevant account change