{"id":"GHSA-gfwj-fwqj-fp3v","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.","aliases":["CVE-2021-22118"],"modified":"2024-02-20T05:32:02.209050Z","published":"2022-05-24T19:03:28Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2022-06-22T18:24:11Z","nvd_published_at":"2021-05-27T15:15:00Z","cwe_ids":["CWE-269","CWE-668"],"severity":"HIGH"},"references":[{"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"},{"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"}],"affected":[{"package":{"name":"org.springframework:spring-web","ecosystem":"Maven","purl":"pkg:maven/org.springframework/spring-web"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.2.0"},{"fixed":"5.2.15"}]}],"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":"\u003c= 5.2.14"}},{"package":{"name":"org.springframework:spring-web","ecosystem":"Maven","purl":"pkg:maven/org.springframework/spring-web"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.3.0"},{"fixed":"5.3.7"}]}],"versions":["5.3.0","5.3.1","5.3.2","5.3.3","5.3.4","5.3.5","5.3.6"],"database_specific":{"last_known_affected_version_range":"\u003c= 5.3.6","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-gfwj-fwqj-fp3v/GHSA-gfwj-fwqj-fp3v.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}