{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-22118","id":"CVE-2021-22118","title":"Improper Privilege Management in Spring Framework","description":"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.","descriptionLong":"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-27T14:48:16.000Z","updated":"2026-10-24T10:30:25.536329014Z","reserved":"2021-01-04T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"vmware","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"},{"version":"2.0","score":4.6,"vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","rating":"medium","source":"NVD"}],"rating":"high","products":["Spring Framework"],"affectedProducts":[{"vendor":"n/a","product":"Spring Framework","defaultStatus":null,"versions":[{"status":"affected","version":"Spring Framework versions 5.2.x prior to 5.2.15 and versions 5.3.x prior to 5.3.7"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"org.springframework:spring-web","purl":"pkg:maven/org.springframework/spring-web","ranges":[">=5.2.0 <5.2.15",">=5.3.0 <5.3.7"],"fixed":["5.2.15","5.3.7"],"advisory":"GHSA-gfwj-fwqj-fp3v"}],"cwes":["CWE-269","CWE-668"],"aliases":["GHSA-gfwj-fwqj-fp3v"],"references":[{"url":"https://tanzu.vmware.com/security/cve-2021-22118","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://www.oracle.com//security-alerts/cpujul2021.html","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://security.netapp.com/advisory/ntap-20210713-0005/","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory"]},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://www.oracle.com/security-alerts/cpujan2022.html","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22118","tags":["advisory"]},{"url":"https://github.com/spring-projects/spring-framework/issues/26931","tags":["web"]},{"url":"https://github.com/spring-projects/spring-framework/commit/0d0d75e25322d8161002d861fff3ec04ba8be5ac","tags":["web"]},{"url":"https://github.com/spring-projects/spring-framework/commit/cce60c479c22101f24b2b4abebb6d79440b120d1","tags":["web"]},{"url":"https://github.com/spring-projects/spring-framework","tags":["package"]},{"url":"https://security.netapp.com/advisory/ntap-20210713-0005","tags":["web"]},{"url":"https://spring.io/security/cve-2021-22118","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00381,"epssPercentile":0.32783,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-22118","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22118","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-22118","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-gfwj-fwqj-fp3v","ok":true,"note":"GHSA-gfwj-fwqj-fp3v"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-22118","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["spring"],"critical":[],"attention":null}