# CVE-2022-27772: Temporary Directory Hijacking to Local Privilege Escalation Vulnerability in org.springframework.boot:spring-boot

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.59%, higher than 49% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-03-30T17:45:42.000Z
- Modified: 2026-07-08T06:29:40.989Z
- Also known as: GHSA-cm59-pr5q-cw85
- Weaknesses: CWE-377, CWE-379, CWE-668
- Assigned by: mitre

## Description

spring-boot versions prior to version v2.2.11.RELEASE was vulnerable to temporary directory hijacking. This vulnerability impacted the org.springframework.boot.web.server.AbstractConfigurableWebServerFactory.createTempDir method. NOTE: This vulnerability only affects products and/or versions that are no longer supported by the maintainer

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- org.springframework.boot:spring-boot (Maven): before 2.2.11.RELEASE
- vmware spring_boot: before 2.2.11

## Every score

- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 4.6 Medium `AV:L/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/JLLeitschuh/security-research/security/advisories/GHSA-cm59-pr5q-cw85> (exploit, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-27772> (advisory)
- <https://github.com/spring-projects/spring-boot/commit/667ccdae84822072f9ea1a27ed5c77964c71002d> (web)
- <https://github.com/spring-projects/spring-boot> (package)

## Sources

- CVE List: [CVE-2022-27772](https://www.cve.org/CVERecord?id=CVE-2022-27772), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-cm59-pr5q-cw85](https://github.com/advisories/GHSA-cm59-pr5q-cw85), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2022-27772](https://nvd.nist.gov/vuln/detail/CVE-2022-27772), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-27772 · Whole record: https://cve.day/CVE-2022-27772.json · Rebuilt by cve.day 2026-11-25T22:58:10.345Z
