{"@ID": "1464", "@Name": "Improper Session Invalidation", "@Abstraction": "Base", "@Structure": "Simple", "@Status": "Incomplete", "Description": "The product establishes a session for an authenticated user, but it does not properly invalidate or terminate the session when it is required.", "Related_Weaknesses": {"Related_Weakness": {"@Nature": "ChildOf", "@CWE_ID": "1462", "@View_ID": "1000", "@Ordinal": "Primary"}}, "Applicable_Platforms": {"Language": {"@Class": "Not Language-Specific", "@Prevalence": "Undetermined"}, "Operating_System": {"@Class": "Not OS-Specific", "@Prevalence": "Undetermined"}, "Architecture": {"@Class": "Not Architecture-Specific", "@Prevalence": "Undetermined"}, "Technology": [{"@Class": "Client Server", "@Prevalence": "Undetermined"}, {"@Class": "Web Based", "@Prevalence": "Undetermined"}]}, "Modes_Of_Introduction": {"Introduction": [{"Phase": "Architecture and Design"}, {"Phase": "Implementation"}]}, "Detection_Methods": {"Detection_Method": {"Method": "Dynamic Analysis with Manual Results Interpretation", "Description": "Ensure that application testing includes scenarios that are intended to lead to session invalidation and verify that the session can no longer be used."}}, "Potential_Mitigations": {"Mitigation": {"Phase": "Implementation", "Description": "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": {"Observed_Example": [{"Reference": "CVE-2021-38869", "Description": "Session was not invalidated after inactivity", "Link": "https://www.cve.org/CVERecord?id=CVE-2021-38869"}, {"Reference": "CVE-2019-5638", "Description": "Session not invalidated after security relevant account change", "Link": "https://www.cve.org/CVERecord?id=CVE-2019-5638"}]}, "Taxonomy_Mappings": {"Taxonomy_Mapping": {"@Taxonomy_Name": "WASC", "Entry_ID": "47", "Entry_Name": "Insufficient Session Expiration"}}, "References": {"Reference": [{"@External_Reference_ID": "REF-1520"}, {"@External_Reference_ID": "REF-1565"}]}, "Mapping_Notes": {"Usage": "Allowed", "Rationale": "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.", "Comments": "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.", "Reasons": {"Reason": {"@Type": "Acceptable-Use"}}}, "Notes": {"Note": {"@Type": "Maintenance", "@Version": "5.0", "@ReleaseDate": "2026-10-28", "#text": "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": {"Submission_Name": "CWE Content Team", "Submission_Organization": "MITRE", "Submission_Date": "2026-10-23", "Submission_Version": "5.0", "Submission_ReleaseDate": "2026-10-28"}, "Contribution": {"@Type": "Content", "Contribution_Name": "CDR GitHub User abdullahzarshaid (Abdullah Bin Zarshaid)", "Contribution_Date": "2026-09-15", "Contribution_Version": "5.0", "Contribution_ReleaseDate": "2026-10-28", "Contribution_Comment": "Suggested content related to \"Improper\n\t\t  Enforcement of Explicit Session Termination\" which inspired and\n\t\t  contributed to the content in this CWE entry"}}, "entry_type": "Weakness"}
