CVE-2026-40973
published high CVSS 3.1 · 7.0Spring Boot: Arbitrary Code Execution and Session Hijacking via predictable temporary directory
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Spring | — | Spring Boot4.0.0 to < 4.0.6 · 3.5.0 to < 3.5.14 · 3.4.0 to < 3.4.16 · 3.3.0 to < 3.3.19 · 2.7.0 to < 2.7.33 · Other versions: unaffected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.0 / 10
- Severity
- high
- Provider
- vmware · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Spring | Spring Boot | 4.0.0 to < 4.0.6 (affected · custom)3.5.0 to < 3.5.14 (affected · custom)3.4.0 to < 3.4.16 (affected · custom)3.3.0 to < 3.3.19 (affected · custom)2.7.0 to < 2.7.33 (affected · custom)Default: unaffected | vmware · cna |
Weaknesses
1- CWE-377 CWE-377: Insecure Temporary File
References
1Provider assertions
2vmware · cna
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d63a4a044a7536dc83c49e6879aad1f9fe4b410a88a71922c0e52ab69aa27a1e
- Ingested
- 23 Sep 2026, 09:13:21 UTC
- Source record
- Official CVE record