{"@ID": "1466", "@Name": "Improper Session Invalidation after Authentication Credential Change", "@Abstraction": "Variant", "@Structure": "Simple", "@Status": "Incomplete", "Description": "The product provides a capability for users to change their authentication credentials, such as username or password, but it does not properly invalidate any current authenticated sessions after this authentication credential change.", "Related_Weaknesses": {"Related_Weakness": {"@Nature": "ChildOf", "@CWE_ID": "1464", "@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"}]}, "Common_Consequences": {"Consequence": {"Scope": "Authentication", "Impact": "Gain Privileges or Assume Identity", "Note": "When a user changes their credentials, such as a password, they expect that the old password can no longer be used.  If an adversary had previously logged in with a password that was compromised, they establish a session that was authenticated with that password and it must be invalidated on password change to prevent future compromise of the account."}}, "Detection_Methods": {"Detection_Method": {"Method": "Dynamic Analysis with Manual Results Interpretation", "Description": "Ensure that application testing includes scenarios where user authentication credentials are changed and verify that the previously authenticated sessions can no longer be used."}}, "Potential_Mitigations": {"Mitigation": {"Phase": "Implementation", "Description": "Ensure that user sessions are invalidated on the server-side after a change to their authentication credentials. 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-2022-21652", "Description": "session not invalidated on password change", "Link": "https://www.cve.org/CVERecord?id=CVE-2022-21652"}, {"Reference": "CVE-2025-24859", "Description": "session not invalidated on password change", "Link": "https://www.cve.org/CVERecord?id=CVE-2025-24859"}]}, "References": {"Reference": [{"@External_Reference_ID": "REF-1567"}, {"@External_Reference_ID": "REF-1568"}]}, "Mapping_Notes": {"Usage": "Allowed", "Rationale": "This CWE entry is at the Variant 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": "Michal Biesiada", "Contribution_Date": "2023-03-29", "Contribution_Version": "5.0", "Contribution_ReleaseDate": "2026-10-28", "Contribution_Comment": "Suggested content for failure to invalidate a\n\t\t  session when a password was changed, which directly inspired this CWE\n\t\t  entry which aimed to be slightly broader to include any authentication\n\t\t  credentials."}}, "entry_type": "Weakness"}
