{"cve":"CVE-2023-20862","nvd":{"published":"2023-04-19T20:15:10.910","modified":"2026-06-17T05:31:02.527","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3},"cwes":["CWE-459"],"references":["https://security.netapp.com/advisory/ntap-20230526-0002/","https://spring.io/security/cve-2023-20862","https://security.netapp.com/advisory/ntap-20230526-0002/","https://spring.io/security/cve-2023-20862"],"products":["netapp:active_iq_unified_manager","vmware:spring_security"],"source":"nvd","synced_at":"2026-10-19T21:38:05.473481323+00:00"},"epss":{"cve":"CVE-2023-20862","score":0.00648,"percentile":0.51051,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-x873-6rgc-94jc","url":"https://osv.dev/vulnerability/GHSA-x873-6rgc-94jc","summary":"Spring Security logout not clearing security context","modified":"2024-02-16T08:23:55.197987Z","packages":[{"ecosystem":"Maven","name":"org.springframework.security:spring-security-core","purl":"pkg:maven/org.springframework.security/spring-security-core","ranges":[">=5.7.0 <5.7.8"],"fixed":["5.7.8"]},{"ecosystem":"Maven","name":"org.springframework.security:spring-security-core","purl":"pkg:maven/org.springframework.security/spring-security-core","ranges":[">=5.8.0 <5.8.3"],"fixed":["5.8.3"]},{"ecosystem":"Maven","name":"org.springframework.security:spring-security-core","purl":"pkg:maven/org.springframework.security/spring-security-core","ranges":[">=6.0.0 <6.0.3"],"fixed":["6.0.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}