PT-2023-9021 · Spring · Spring Security

Daniel Furtlehner

·

Published

2023-04-18

·

Updated

2024-04-17

·

CVE-2023-20862

CVSS v2.0

10

High

VectorAV:N/AC:L/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions Spring Security versions 5.7.x through 5.7.7 Spring Security versions 5.8.x through 5.8.2 Spring Security versions 6.0.x through 6.0.2
Description The issue is related to the logout support not properly cleaning the security context if using serialized versions, and it is not possible to explicitly save an empty security context to the HttpSessionSecurityContextRepository. This can keep users authenticated even after they performed logout. The vulnerability is associated with incomplete cleanup of temporary or auxiliary resources, allowing a remote attacker to access confidential data or cause a denial of service.
Recommendations For Spring Security versions 5.7.x, upgrade to 5.7.8. For Spring Security versions 5.8.x, upgrade to 5.8.3. For Spring Security versions 6.0.x, upgrade to 6.0.3.

Fix

Weakness Enumeration

Related Identifiers

BDU:2024-03033
CVE-2023-20862
GHSA-X873-6RGC-94JC
RHSA-2024:0778

Affected Products

Spring Security