🛡️ CVE-2021-22118 — spring-web
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
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| org.springframework:spring-web | 5.3.0 | 5.3.7 |
Similar Threats
- Unknown CLSA-2024-1727136032
- Unknown CLSA-2024-1727308813
- Unknown CLSA-2025-1742342444
- Unknown CLSA-2025-1743120048
- Unknown CLSA-2025-1744156857
More CVE 2021 advisories
Browse all of CVE 2021 in the advisory index.
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.