{"id":"CVE-2026-40973","aliases":["CVE-2026-40973","GHSA-wwpq-f5c3-7hvx"],"related":[],"kind":"vulnerability","state":"published","title":"Spring Boot accepts predictable temp directory without ownership verification","summary":"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.\n\nAffected: 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.\n\nAffected: 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.","source":"cvelist"},{"lang":"es","text":"Un atacante local en el mismo host que la aplicación podría tomar el control del directorio utilizado por 'ApplicationTemp'. Cuando 'server.servlet.session.persistent' se establece en 'true' y el ataque persiste a través de los reinicios de la aplicación, esto podría permitir al atacante leer información de la sesión y secuestrar usuarios autenticados o desplegar una cadena de gadgets y ejecutar código como el usuario de la aplicación.\n\nAfectado: Spring Boot 4.0.0-4.0.5 (corrección 4.0.6), 3.5.0-3.5.13 (corrección 3.5.14), 3.4.0-3.4.15 (corrección 3.4.16), 3.3.0-3.3.18 (corrección 3.3.19), 2.7.0-2.7.32 (corrección 2.7.33); verificación de propiedad de directorio temporal predecible / 'ApplicationTemp'. Las versiones que ya no son compatibles también se ven afectadas según el aviso del proveedor.","source":"nvd"}],"published":"2026-04-27T23:29:51.946Z","modified":"2026-09-10T03:51:04.035Z","severity":{"scorer":"vmware","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"},"severities":[{"scorer":"vmware","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"}],"cwes":["CWE-377"],"affected":[{"ranges":[{"type":"custom","introduced":"4.0.0","fixed":"4.0.6","status":"affected"},{"type":"custom","introduced":"3.5.0","fixed":"3.5.14","status":"affected"},{"type":"custom","introduced":"3.4.0","fixed":"3.4.16","status":"affected"},{"type":"custom","introduced":"3.3.0","fixed":"3.3.19","status":"affected"},{"type":"custom","introduced":"2.7.0","fixed":"2.7.33","status":"affected"}],"vendor":"Spring","product":"Spring Boot","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0","status":"affected","fixed":"4.0.6"}],"ecosystem":"Maven","package":"org.springframework.boot:spring-boot","purl":"pkg:maven/org.springframework.boot/spring-boot","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.5.0","status":"affected","fixed":"3.5.14"}],"ecosystem":"Maven","package":"org.springframework.boot:spring-boot","purl":"pkg:maven/org.springframework.boot/spring-boot","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.4.0","status":"affected","lastAffected":"3.4.15"}],"ecosystem":"Maven","package":"org.springframework.boot:spring-boot","purl":"pkg:maven/org.springframework.boot/spring-boot","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.3.0","status":"affected","lastAffected":"3.3.18"}],"ecosystem":"Maven","package":"org.springframework.boot:spring-boot","purl":"pkg:maven/org.springframework.boot/spring-boot","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"2.7.32"}],"ecosystem":"Maven","package":"org.springframework.boot:spring-boot","purl":"pkg:maven/org.springframework.boot/spring-boot","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.7.33"},{"status":"affected","introduced":"3.3.0","fixed":"3.3.19"},{"status":"affected","introduced":"3.4.0","fixed":"3.4.16"},{"status":"affected","introduced":"3.5.0","fixed":"3.5.14"},{"status":"affected","introduced":"4.0.0","fixed":"4.0.6"}],"vendor":"vmware","product":"spring_boot","cpe":"cpe:2.3:a:vmware:spring_boot:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://spring.io/security/cve-2026-40973","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40973","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/spring-projects/spring-boot","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"vmware","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-04-28T00:00:00.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-40973","url":"https://www.cve.org/CVERecord?id=CVE-2026-40973","licence":"CVE Terms of Use","modified":"2026-04-29T03:55:43.148Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wwpq-f5c3-7hvx","url":"https://github.com/advisories/GHSA-wwpq-f5c3-7hvx","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:04.035Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-40973","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40973","licence":"Public domain","modified":"2026-07-24T21:10:00.143Z"}],"updatedAt":"2026-11-25T22:59:19.809Z","epss":{"score":0.00141,"percentile":0.03652,"date":"2026-12-01T12:00:22.000Z"}}