{"id":"CVE-2023-20862","published":"2023-04-19T00:00:00Z","modified":"2025-02-05T15:47:05Z","title":"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…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00648,"percentile":0.51986,"provenance":"source"},"cwes":[{"id":"CWE-459","name":"Incomplete Cleanup"}],"references":[{"url":"https://spring.io/security/cve-2023-20862","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20230526-0002/","tags":[]}],"priority":{"score":14.8,"factors":[{"name":"EPSS percentile","points":10.4},{"name":"CVSS severity","points":4.41}]},"affectedVersions":[{"vendor":"n/a","product":"Spring Security","versions":["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"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-02-05T15:45:51.141064Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.springframework.security:spring-security-core","vulnerableRanges":[">=5.7.0, <5.7.8",">=5.8.0, <5.8.3",">=6.0.0, <6.0.3"],"patched":["5.7.8","5.8.3","6.0.3"],"from":["GHSA-x873-6rgc-94jc"],"provenance":"source"}],"summary":{"text":"In Spring Security, the logout support in affected versions does not properly clean the security context when serialized versions are used, and the HttpSessionSecurityContextRepository cannot be explicitly given an empty security context to save. An attacker with network access and low-privileged authentication can keep a user authenticated even after that user has logged out, with no user interaction required and no special configuration needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:35:05Z"},"euvd":{"id":"EUVD-2023-1423","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-22976","published":"2022-05-19","fixed":"5.6.4","kev":false},{"cve":"CVE-2022-22978","published":"2022-05-19","fixed":"5.6.4","kev":false},{"cve":"CVE-2022-31692","published":"2022-10-31","fixed":"5.7.5","kev":false,"link":{"from":"CVE-2022-31692","to":"CVE-2023-20862","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.springframework.security:spring-security-core","fromFixed":"5.7.5","toFixed":"5.7.8","daysApart":170}]}},{"cve":"CVE-2023-20862","published":"2023-04-19","fixed":"6.0.3","kev":false},{"cve":"CVE-2024-22234","published":"2024-02-20","fixed":"6.2.2","kev":false},{"cve":"CVE-2024-22257","published":"2024-03-18","fixed":"6.2.3","kev":false,"link":{"from":"CVE-2023-20862","to":"CVE-2024-22257","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.springframework.security:spring-security-core","fromFixed":"5.7.8","toFixed":"5.7.12","daysApart":334}]}},{"cve":"CVE-2024-38810","published":"2024-08-20","fixed":"6.3.2","kev":false},{"cve":"CVE-2024-38827","published":"2024-12-02","fixed":"6.3.5","kev":false,"link":{"from":"CVE-2023-20862","to":"CVE-2024-38827","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.springframework.security:spring-security-core","fromFixed":"6.0.3","toFixed":"6.0.14","daysApart":593}]}}],"package":"Maven:org.springframework.security:spring-security-core"}}