CVE-2023-20862
MEDIUM 6.3CVSS 3.1Spring Security logout not clearing security context
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.
- Published
- 19 Apr 2023
- Last modified
- 17 Jun 2026
- Assigned by
- security@vmware.com
- NVD status
- Modified
- Weakness
- CWE-459
- Also known as
- GHSA-x873-6rgc-94jc
- Sources
- NVDJSONOSV GHSA-x873-6rgc-94jcJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | vmware | spring_securitycpe:2.3:a:vmware:spring_security:*:*:*:*:*:*:*:* |
>= 5.7.0, < 5.7.8 | 5.7.8 |
| NVD | vmware | spring_securitycpe:2.3:a:vmware:spring_security:*:*:*:*:*:*:*:* |
>= 5.8.0, < 5.8.3 | 5.8.3 |
| NVD | vmware | spring_securitycpe:2.3:a:vmware:spring_security:*:*:*:*:*:*:*:* |
>= 6.0.0, < 6.0.3 | 6.0.3 |
| NVD | netapp | active_iq_unified_managercpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:linux:*:* |
(no version) | |
| NVD | netapp | active_iq_unified_managercpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:vmware_vsphere:*:* |
(no version) | |
| NVD | netapp | active_iq_unified_managercpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:windows:*:* |
(no version) | |
| OSV | Maven | org.springframework.security:spring-security-core | >= 5.7.0, < 5.7.8 | 5.7.8 |
| OSV | Maven | org.springframework.security:spring-security-core | >= 5.8.0, < 5.8.3 | 5.8.3 |
| OSV | Maven | org.springframework.security:spring-security-core | >= 6.0.0, < 6.0.3 | 6.0.3 |
References
- https://security.netapp.com/advisory/ntap-20230526-0002/ · Third Party Advisory, WEB
- https://spring.io/security/cve-2023-20862 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-20862 · ADVISORY
- https://github.com/spring-projects/spring-security · PACKAGE
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 19 Apr 2023)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 19 Apr 2023)