Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2026-40973

Опубликовано: 27 апр. 2026
Источник: redhat
CVSS3: 7

Описание

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.

A flaw was found in Spring Boot. A local attacker on the same host as the application may be able to take control of the ApplicationTemp directory due to predictable temporary directory handling. When the server.servlet.session.persistent setting is enabled and the attack persists across application restarts, this could allow the attacker to read session information, hijack authenticated user sessions, or execute arbitrary code as the application's user.

Меры по смягчению последствий

To mitigate this issue, ensure that the server.servlet.session.persistent property is set to false in your Spring Boot application's configuration. This prevents session information from being written to the predictable temporary directory, thereby removing the conditions necessary for exploitation. Disabling persistent sessions may affect application behavior that relies on session data surviving restarts.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Red Hat AMQ Broker 7spring-bootNot affected
Red Hat AMQ Clientsspring-bootNot affected
Red Hat build of OptaPlanner 8spring-bootAffected
Red Hat Data Grid 8spring-bootNot affected
Red Hat Enterprise Linux 8log4j:2/log4jNot affected
Red Hat Enterprise Linux 9log4jNot affected
Red Hat Fuse 7spring-bootWill not fix
Red Hat JBoss Enterprise Application Platform 7spring-bootNot affected
Red Hat JBoss Enterprise Application Platform 8spring-bootNot affected
Red Hat JBoss Enterprise Application Platform Expansion Packspring-bootNot affected

Показывать по

Дополнительная информация

Статус:

Moderate
Дефект:
CWE-341
https://bugzilla.redhat.com/show_bug.cgi?id=2463330Spring Boot: Spring Boot: Arbitrary Code Execution and Session Hijacking via predictable temporary directory

7 High

CVSS3

Связанные уязвимости

CVSS3: 7
nvd
4 месяца назад

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.

CVSS3: 7
github
4 месяца назад

Spring Boot accepts predictable temp directory without ownership verification

7 High

CVSS3