CVE-2021-22118
Java packages · CVE-2021-22118
In Spring Framework, versions 5.2.x prior to 5.2.15 and versions 5.3.x prior to 5.3.7, a WebFlux application is vulnerable to a privilege escalation: by (re)creating the temporary storage directory, a locally authenticated malicious user can read or modify files that have been uploaded to the WebFlux application, or overwrite arbitrary files with multipart request data.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.381% · 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-19T17:59:58.648Z. Public exploit availability is not used to set this status.
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | unknown | unknown | unknown |
| epss | verified | 2026-11-19T18:27:05.361Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:09.783Z | OSV |
| affected | verified | 2026-11-19T12:55:41.999Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:55:41.999Z | CVE Program |
Affected versions and configuration
n/a Spring Framework; default status: unknown: Spring Framework versions 5.2.x prior to 5.2.15 and versions 5.3.x prior to 5.3.7 [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 Framework",
"versions": [
{
"status": "affected",
"version": "Spring Framework versions 5.2.x prior to 5.2.15 and versions 5.3.x prior to 5.3.7"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://tanzu.vmware.com/security/cve-2021-22118",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://www.oracle.com//security-alerts/cpujul2021.html",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://security.netapp.com/advisory/ntap-20210713-0005/",
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
]
},
{
"url": "https://www.oracle.com/security-alerts/cpuoct2021.html",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://www.oracle.com/security-alerts/cpujan2022.html",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://www.oracle.com/security-alerts/cpuapr2022.html",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://www.oracle.com/security-alerts/cpujul2022.html",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-03T18:30:23.944Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-gfwj-fwqj-fp3v",
"aliases": [
"CVE-2021-22118"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.2.0"
},
{
"fixed": "5.2.15"
}
]
}
],
"package": {
"name": "org.springframework:spring-web",
"purl": "pkg:maven/org.springframework/spring-web",
"ecosystem": "Maven"
},
"versions": [
"5.2.0.RELEASE",
"5.2.1.RELEASE",
"5.2.10.RELEASE",
"5.2.11.RELEASE",
"5.2.12.RELEASE",
"5.2.13.RELEASE",
"5.2.14.RELEASE",
"5.2.2.RELEASE",
"5.2.3.RELEASE",
"5.2.4.RELEASE",
"5.2.5.RELEASE",
"5.2.6.RELEASE",
"5.2.7.RELEASE",
"5.2.8.RELEASE",
"5.2.9.RELEASE"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-gfwj-fwqj-fp3v/GHSA-gfwj-fwqj-fp3v.json",
"last_known_affected_version_range": "<= 5.2.14"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.3.0"
},
{
"fixed": "5.3.7"
}
]
}
],
"package": {
"name": "org.springframework:spring-web",
"purl": "pkg:maven/org.springframework/spring-web",
"ecosystem": "Maven"
},
"versions": [
"5.3.0",
"5.3.1",
"5.3.2",
"5.3.3",
"5.3.4",
"5.3.5",
"5.3.6"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-gfwj-fwqj-fp3v/GHSA-gfwj-fwqj-fp3v.json",
"last_known_affected_version_range": "<= 5.3.6"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-22118",
"type": "ADVISORY"
},
{
"url": "https://github.com/spring-projects/spring-framework/issues/26931",
"type": "WEB"
},
{
"url": "https://github.com/spring-projects/spring-framework/commit/0d0d75e25322d8161002d861fff3ec04ba8be5ac",
"type": "WEB"
},
{
"url": "https://github.com/spring-projects/spring-framework/commit/cce60c479c22101f24b2b4abebb6d79440b120d1",
"type": "WEB"
},
{
"url": "https://github.com/spring-projects/spring-framework",
"type": "PACKAGE"
},
{
"url": "https://security.netapp.com/advisory/ntap-20210713-0005",
"type": "WEB"
},
{
"url": "https://spring.io/security/cve-2021-22118",
"type": "WEB"
},
{
"url": "https://tanzu.vmware.com/security/cve-2021-22118",
"type": "WEB"
},
{
"url": "https://www.oracle.com//security-alerts/cpujul2021.html",
"type": "WEB"
},
{
"url": "https://www.oracle.com/security-alerts/cpuapr2022.html",
"type": "WEB"
},
{
"url": "https://www.oracle.com/security-alerts/cpujan2022.html",
"type": "WEB"
},
{
"url": "https://www.oracle.com/security-alerts/cpujul2022.html",
"type": "WEB"
},
{
"url": "https://www.oracle.com/security-alerts/cpuoct2021.html",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-269",
"CWE-668"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2021-05-27T15:15:00Z",
"github_reviewed_at": "2022-06-22T18:24:11Z"
}
}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:spring-web | Not a distribution channel | 5.2.15 | Official record |
| ecosystem-boundary | Maven / package | org.springframework:spring-web | Not a distribution channel | 5.3.7 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- FIRST EPSSConsulted: 2026-11-19T18:27:05.361ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
6edec3ff5408c9332bb5cad007615e6981ab6e76b387b737f9030d5936c5b5e2 - OSVConsulted: 2026-11-19T12:52:09.783ZArchived source JSON
Source publication: 2022-05-24T19:03:28.000Z
Source modification: 2024-02-20T05:32:02.209ZDocument fingerprint
b5477a26f1e73086ec77820262233c0219a99521edfd0b3be7b29ee3d55ca791 - CVE ProgramConsulted: 2026-11-19T12:55:41.999ZArchived source JSON
Source publication: 2021-05-27T14:48:16.000Z
Source modification: 2024-08-03T18:30:23.944ZDocument fingerprint
09b5ebfb993f71eead61b8424db6cfa3877eabaf7dd8154cacaaf04a63c1b831 - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56
Official status history
- UNKNOWN → PUBLISHED · · evidence