CVE-2023-20862
Java packages · CVE-2023-20862
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.648% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:57:41.748Z. Public exploit availability is not used to set this status.
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T16:57:41.748Z | CISA KEV |
| cvss | unknown | unknown | unknown |
| epss | verified | 2026-11-19T16:04:35.920Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:10.865Z | OSV |
| affected | verified | 2026-11-19T12:56:46.831Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:56:46.831Z | CVE Program |
Affected versions and configuration
n/a Spring Security; default status: unknown: 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 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "n/a",
"product": "Spring Security",
"versions": [
{
"status": "affected",
"version": "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"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://spring.io/security/cve-2023-20862",
"tags": [
"x_transferred"
]
},
{
"url": "https://security.netapp.com/advisory/ntap-20230526-0002/",
"tags": [
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-02T09:21:32.378Z"
}
},
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"cvssV3_1": {
"scope": "UNCHANGED",
"version": "3.1",
"baseScore": 6.3,
"attackVector": "NETWORK",
"baseSeverity": "MEDIUM",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L",
"integrityImpact": "LOW",
"userInteraction": "NONE",
"attackComplexity": "LOW",
"availabilityImpact": "LOW",
"privilegesRequired": "LOW",
"confidentialityImpact": "LOW"
}
},
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2023-20862",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2025-02-05T15:45:51.141064Z"
}
}
}
],
"problemTypes": [
{
"descriptions": [
{
"lang": "en",
"type": "CWE",
"cweId": "CWE-459",
"description": "CWE-459 Incomplete Cleanup"
}
]
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2025-02-05T15:47:05.524Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-x873-6rgc-94jc",
"aliases": [
"CVE-2023-20862"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.7.0"
},
{
"fixed": "5.7.8"
}
]
}
],
"package": {
"name": "org.springframework.security:spring-security-core",
"purl": "pkg:maven/org.springframework.security/spring-security-core",
"ecosystem": "Maven"
},
"versions": [
"5.7.0",
"5.7.1",
"5.7.2",
"5.7.3",
"5.7.4",
"5.7.5",
"5.7.6",
"5.7.7"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/04/GHSA-x873-6rgc-94jc/GHSA-x873-6rgc-94jc.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.8.0"
},
{
"fixed": "5.8.3"
}
]
}
],
"package": {
"name": "org.springframework.security:spring-security-core",
"purl": "pkg:maven/org.springframework.security/spring-security-core",
"ecosystem": "Maven"
},
"versions": [
"5.8.0",
"5.8.1",
"5.8.2"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/04/GHSA-x873-6rgc-94jc/GHSA-x873-6rgc-94jc.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.0.0"
},
{
"fixed": "6.0.3"
}
]
}
],
"package": {
"name": "org.springframework.security:spring-security-core",
"purl": "pkg:maven/org.springframework.security/spring-security-core",
"ecosystem": "Maven"
},
"versions": [
"6.0.0",
"6.0.1",
"6.0.2"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/04/GHSA-x873-6rgc-94jc/GHSA-x873-6rgc-94jc.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-20862",
"type": "ADVISORY"
},
{
"url": "https://github.com/spring-projects/spring-security",
"type": "PACKAGE"
},
{
"url": "https://security.netapp.com/advisory/ntap-20230526-0002",
"type": "WEB"
},
{
"url": "https://spring.io/security/cve-2023-20862",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-459"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2023-04-19T20:15:10Z",
"github_reviewed_at": "2023-05-05T22:58:08Z"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | Maven / package | org.springframework.security:spring-security-core | Not a distribution channel | 5.7.8 | Official record |
| ecosystem-boundary | Maven / package | org.springframework.security:spring-security-core | Not a distribution channel | 5.8.3 | Official record |
| ecosystem-boundary | Maven / package | org.springframework.security:spring-security-core | Not a distribution channel | 6.0.3 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:10.865ZArchived source JSON
Source publication: 2023-04-19T21:30:26.000Z
Source modification: 2024-02-16T08:23:55.197ZDocument fingerprint
62f9b841ba12eb551448657b24bc079930df60ce0c3ea720898179c2aa4fc65e - CVE ProgramConsulted: 2026-11-19T12:56:46.831ZArchived source JSON
Source publication: 2023-04-19T00:00:00.000Z
Source modification: 2025-02-05T15:47:05.524ZDocument fingerprint
4453c9529751729a4df54b8fa0917c13e609fedf1e4c117adb344f2bcd6f561d - CISA KEVConsulted: 2026-11-19T16:57:41.748ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:35.920ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
e984bc4a8ff3b06285e2eddb70222ac8a60d7c809f73be8fc1d22065f95250ad
Official status history
- UNKNOWN → PUBLISHED · · evidence