CVE-2023-20862
Spring Security logout not clearing security context
Reported by vmware · Published April 19, 2023
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.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | 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 |
| n/a | 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 |
Timeline
- Apr 17, 2023 CVE Published
- Apr 20, 2023 EPSS Score (30 in total, the first dated here)
- Apr 20, 2024 PoC Published
- Feb 5, 2025 CVE Updated
- Mar 17, 2026 Security Advisory (7 in total, the first dated here)
- May 20, 2026 Coalition ESS Score
- Nov 21, 2026 Distribution Patch (6 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-20862
vulnetix vdb fixes CVE-2023-20862
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-20862/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart