# CVE-2023-20862: Spring Security logout not clearing security context

- Severity: Medium 6.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.73%, higher than 50% of CVEs (2026-11-30)
- Published: 2023-04-19T00:00:00.000Z
- Modified: 2026-06-17T05:31:02.527Z
- Also known as: GHSA-x873-6rgc-94jc
- Weaknesses: CWE-459
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: vmware

## 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.

(As written by CVE List.)

## Affected

- Spring Security: 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
- org.springframework.security:spring-security-core (Maven): from 5.7.0 before 5.7.8; from 5.8.0 before 5.8.3; from 6.0.0 before 6.0.3
- vmware spring_security: from 5.7.0 before 5.7.8; from 5.8.0 before 5.8.3; from 6.0.0 before 6.0.3
- netapp active_iq_unified_manager: no versions given

## Every score

- CISA-ADP: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`

## References

- <https://spring.io/security/cve-2023-20862> (vendor-advisory, web)
- <https://security.netapp.com/advisory/ntap-20230526-0002/> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-20862> (advisory)
- <https://github.com/spring-projects/spring-security> (package)
- <https://security.netapp.com/advisory/ntap-20230526-0002> (web)

## Sources

- CVE List: [CVE-2023-20862](https://www.cve.org/CVERecord?id=CVE-2023-20862), CVE Terms of Use, modified 2025-02-05
- GitHub Advisory Database: [GHSA-x873-6rgc-94jc](https://github.com/advisories/GHSA-x873-6rgc-94jc), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2023-20862](https://nvd.nist.gov/vuln/detail/CVE-2023-20862), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-20862 · Whole record: https://cve.day/CVE-2023-20862.json · Rebuilt by cve.day 2026-11-25T22:58:23.648Z
