CVE-2021-22118
Improper Privilege Management in Spring Framework
Reported by vmware · Published May 27, 2021
spring-web is fixed in 5.3.7 and 5.2.15 (Maven Central)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.springframework:spring-web | Maven Central | 5.3.7, 5.2.15 |
| org.springframework:spring-core | Maven Central | 5.3.6, 5.2.14 |
| communications_element_manager | oracle | 8.2.4.0 |
| retail_customer_management_and_segmentation_foundation | oracle | 19.0 |
| insurance_policy_administration | oracle | 11.3.1 |
| financial_services_analytical_applications_infrastructure | oracle | 8.1.1 |
| mysql_enterprise_monitor | oracle | 8.0.25 |
| communications_session_report_manager | oracle | 8.2.4.0 |
| documaker | oracle | 12.6.4 |
| communications_session_route_manager | oracle | 8.2.4.0 |
| communications_diameter_intelligence_hub | oracle | 8.2.3, 8.1.0 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | Spring Framework | Spring Framework versions 5.2.x prior to 5.2.15 and versions 5.3.x prior to 5.3.7 |
| n/a | Spring Framework | 5.2.x |
Timeline
- May 27, 2021 CVE Published
- May 28, 2021 EPSS Score (30 in total, the first dated here)
- May 28, 2021 PoC Published (21 in total, the first dated here)
- Jun 1, 2026 Security Advisory (10 in total, the first dated here)
- Aug 9, 2026 Distribution Patch (8 in total, the first dated here)
- Aug 25, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-22118
vulnetix vdb fixes CVE-2021-22118
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-2021-22118/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart