{"id":"CVE-2021-22118","aliases":["GHSA-gfwj-fwqj-fp3v"],"url":"https://o3.security/vulnerability/CVE-2021-22118","summary":"Improper Privilege Management in Spring Framework","details":"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.","published":"2021-05-27T15:15:07.437Z","modified":"2026-07-08T05:56:52.732944068Z","cvss":{"score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},"epss":{"score":0.00396,"percentile":0.33039,"asOf":"2026-08-23"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Maven","name":"org.springframework:spring-web","fixedVersion":"5.2.15"},{"ecosystem":"Maven","name":"org.springframework:spring-web","fixedVersion":"5.3.7"}],"fix":{"url":"https://github.com/spring-projects/spring-framework/commit/0d0d75e25322d8161002d861fff3ec04ba8be5ac","label":"spring-projects/spring-framework@0d0d75e"},"references":[{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20210713-0005/"},{"type":"ADVISORY","url":"https://tanzu.vmware.com/security/cve-2021-22118"},{"type":"FIX","url":"https://www.oracle.com//security-alerts/cpujul2021.html"},{"type":"FIX","url":"https://www.oracle.com/security-alerts/cpuapr2022.html"},{"type":"FIX","url":"https://www.oracle.com/security-alerts/cpujan2022.html"},{"type":"FIX","url":"https://www.oracle.com/security-alerts/cpujul2022.html"},{"type":"FIX","url":"https://www.oracle.com/security-alerts/cpuoct2021.html"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22118"},{"type":"WEB","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":"PACKAGE","url":"https://github.com/spring-projects/spring-framework"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20210713-0005"},{"type":"WEB","url":"https://spring.io/security/cve-2021-22118"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-08T05:56:52.732944068Z"}}