# CVE-2026-40973: Spring Boot accepts predictable temp directory without ownership verification

- Severity: High 7.0 (CVSS:3.1, scored by vmware) `CVSS:3.1/AV:L/AC:H/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.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-04-27T23:29:51.946Z
- Modified: 2026-09-10T03:51:04.035Z
- Also known as: GHSA-wwpq-f5c3-7hvx
- Weaknesses: CWE-377
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: vmware

## Description

A local attacker on the same host as the application may be able to take control of the directory used by `ApplicationTemp`. When `server.servlet.session.persistent` is set to `true` and the attack persists across application restarts, this may allow the attacker to read session information and hijack authenticated users or deploy a gadget chain and execute code as the application's user.

Affected: Spring Boot 4.0.0–4.0.5 (fix 4.0.6), 3.5.0–3.5.13 (fix 3.5.14), 3.4.0–3.4.15 (fix 3.4.16), 3.3.0–3.3.18 (fix 3.3.19), 2.7.0–2.7.32 (fix 2.7.33); predictable temp directory / `ApplicationTemp` ownership verification. Versions that are no longer supported are also affected per vendor advisory.

(As written by CVE List.)

## Affected

- Spring Spring Boot: from 4.0.0 before 4.0.6; from 3.5.0 before 3.5.14; from 3.4.0 before 3.4.16; from 3.3.0 before 3.3.19; from 2.7.0 before 2.7.33
- org.springframework.boot:spring-boot (Maven): from 4.0.0 before 4.0.6; from 3.5.0 before 3.5.14; from 3.4.0 up to 3.4.15; from 3.3.0 up to 3.3.18; up to 2.7.32
- vmware spring_boot: before 2.7.33; from 3.3.0 before 3.3.19; from 3.4.0 before 3.4.16; from 3.5.0 before 3.5.14; from 4.0.0 before 4.0.6

## Every score

- vmware: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://spring.io/security/cve-2026-40973> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40973> (advisory)
- <https://github.com/spring-projects/spring-boot> (package)

## Sources

- CVE List: [CVE-2026-40973](https://www.cve.org/CVERecord?id=CVE-2026-40973), CVE Terms of Use, modified 2026-04-29
- GitHub Advisory Database: [GHSA-wwpq-f5c3-7hvx](https://github.com/advisories/GHSA-wwpq-f5c3-7hvx), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-40973](https://nvd.nist.gov/vuln/detail/CVE-2026-40973), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-40973 · Whole record: https://cve.day/CVE-2026-40973.json · Rebuilt by cve.day 2026-11-25T22:59:19.809Z
