GitHub Advisoryadvisory · Maven

GHSA-x873-6rgc-94jc Spring Security logout not clearing security context

MEDIUM Published 2023-04-19 Modified 2023-08-23 Official page ↗
Aliases
CVE-2023-20862
Ecosystem
Maven
Packages
org.springframework.security:spring-security-core
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Weaknesses
CWE-459
Reviewed
2023-05-05

Affected packages

• Maven org.springframework.security:spring-security-core: >= 5.7.0, < 5.7.8 → fixed in 5.7.8 • Maven org.springframework.security:spring-security-core: >= 5.8.0, < 5.8.3 → fixed in 5.8.3 • Maven org.springframework.security:spring-security-core: >= 6.0.0, < 6.0.3 → fixed in 6.0.3

Description

In Spring Security, versions 5.7.x prior to 5.7.8, versions 5.8.x prior to 5.8.3, and versions 6.0.x prior to 6.0.3, the logout support does not properly clean the security context if using serialized versions. Additionally, it is not possible to explicitly save an empty security context to the HttpSessionSecurityContextRepository. This vulnerability can keep users authenticated even after they performed logout. Users of affected versions should apply the following mitigation. 5.7.x users should upgrade to 5.7.8. 5.8.x users should upgrade to 5.8.3. 6.0.x users should upgrade to 6.0.3.

Related

Alias · CVE (1)

  • CVE-2023-20862 In Spring Security, versions 5.7.x prior to 5.7.8, versions 5.8.x prior to 5.8.3, and versions 6.0.x prior to 6.0.3, the logout support… vulnerability

Weakness · CWE (1)

  • CWE-459 Incomplete Cleanup weakness

References