Skip to content
Fencer Vulns
medium 6.3

CVE-2023-20862 json

Spring Security logout not clearing security context

published 2023-04-19 3 y ago modified 2026-06-17 4 mo ago also GHSA-x873-6rgc-94jc , EUVD-2023-1423

cvss
6.3
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.6%
EPSS 0.6% chance of exploitation in 30 days, percentile 51%
public exploits
0
none known

Summary

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.

Patch / fix

  • maven org.springframework.security:spring-security-core 5.7.8, 5.8.3, 6.0.3
  • vmware spring_security 5.7.8, 5.8.3, 6.0.3
  • jenkins ocp tools 4.12 2.426.3.1706515686-3.el8
  • jenkins-2-plugins ocp tools 4.12 4.12.1706515741-1.el8

red hat advisories RHSA-2024:0778

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2023-20862 updated cvss 6.3

spring-security: Empty SecurityContext Is Not Properly Saved Upon Logout

  • Red Hat build of Quarkus quarkus-spring-security
    affected: no fix planned “Will not fix”
  • Red Hat Decision Manager 7 spring-security spring-security Red Hat Fuse 7 spring-security spring-security
    affected: no fix planned “Out of support scope”
  • Red Hat Integration Camel Quarkus 2 spring-security spring-security
    affected: no fix planned “Will not fix”
  • Red Hat JBoss A-MQ 6 spring-security spring-security Red Hat JBoss Enterprise Application Platform 6 spring-security spring-security Red Hat JBoss Fuse 6 spring-security spring-security Red Hat JBoss Fuse Service Works 6 spring-security spring-security Red Hat OpenShift Container Platform 3.11 jenkins
    affected: no fix planned “Out of support scope”
  • Red Hat OpenShift Dev Spaces devspaces/pluginregistry-rhel8
    affected: no fix available
  • Red Hat Process Automation 7 spring-security spring-security
    affected: no fix planned “Out of support scope”
  • Red Hat OpenShift Developer Tools and Services for OCP 4.12 jenkins 2.426.3.1706515686-3.el8
    fixed: vendor fix RHSA-2024:0778
  • Red Hat A-MQ Clients 2 spring-security spring-security Red Hat OpenShift Developer Tools and Services for OCP 4.12 jenkins-2-plugins 4.12.1706515741-1.el8 Red Hat build of Apache Camel for Spring Boot 3 spring-security spring-security Red Hat Data Grid 8 spring-security spring-security Red Hat Enterprise Linux 8 log4j, log4j-jcl, log4j-web, log4j-slf4j Red Hat Enterprise Linux 9 log4j, log4j-jcl, log4j-slf4j
    +6 more products
    Red Hat JBoss Data Grid 7 spring-security spring-security Red Hat JBoss Enterprise Application Platform 7 spring-security spring-security Red Hat JBoss Enterprise Application Platform 8 spring-security spring-security Red Hat JBoss Enterprise Application Platform Expansion Pack spring-security spring-security Red Hat OpenShift Container Platform 4 jenkins Red Hat Single Sign-On 7 spring-security spring-security
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
21 mo ago

Exploit prediction

0.65% chance of exploitation in the next 30 days, higher than 51% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CISA ADP 3.1 6.3 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
NVD 3.1 6.3 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
CNA 3.1 6.3 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
GitHub 3.1 6.3 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

Affected packages

ecosystem package affected fixed in
maven org.springframework.security:spring-security-core
>=5.7.0, <5.7.8
>=5.8.0, <5.8.3
>=6.0.0, <6.0.3
5.7.8
5.8.3
6.0.3

Affected products

  • n/a Spring Security

Classification

Weakness
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.