🛡️ CVE-2021-22118 — spring-web

🟠 CVSS 8.0 — High ✅ No Known Exploit CWE-269 OSV
8.0
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Improper Privilege Management in Spring Framework

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.

How this vulnerability can be exploited

This issue can be reached with local access to the system, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability high.

Weakness class

CVE-2021-22118 is classified as CWE-269: Improper Privilege Management. Privileges are assigned, dropped or restored incorrectly, leaving an actor with more access than intended.

Affected software

CVE-2021-22118 is recorded against 1 package.

  • org.springframework:spring-web (from 5.3.0 up to 5.3.7)

Timeline and source

Published on 24 May 2022 and last revised on 20 February 2024. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

nvd.nist.gov (Advisory)
github.com (Web)
github.com (Web)
github.com (Web)
github.com (Package)
security.netapp.com (Web)
spring.io (Web)
tanzu.vmware.com (Web)
www.oracle.com (Web)
www.oracle.com (Web)
www.oracle.com (Web)
www.oracle.com (Web)
www.oracle.com (Web)

Details

Severity HIGH
CVSS Score 8.0
CVSS Vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE CWE-269
Public Exploit ✅ No
Source OSV
Published 2022-05-24
Updated 2026-08-12
Modified 2024-02-20
Fix URL N/A

Affected Packages

Software From version Fixed in
org.springframework:spring-web 5.3.0 5.3.7

References

Site Security Check

Is spring-web part of your stack?

CVE-2021-22118 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.