Описание
The PartEventHttpMessageReader in Spring WebFlux does not enforce the maxPartSize limit when maxInMemorySize is set to -1.
Spring Framework 7.0.0 - 7.0.8
Spring Framework 6.2.0 - 6.2.19
Spring Framework 6.1.0 - 6.1.28
A flaw was found in Spring WebFlux. The PartEventHttpMessageReader in Spring WebFlux does not enforce the maxPartSize limit when maxInMemorySize is set to -1. This oversight could allow a remote attacker to send excessively large multipart requests, potentially leading to resource exhaustion and a Denial of Service (DoS) condition.
Отчет
This Important denial-of-service flaw in Spring WebFlux, as utilized in Red Hat JBoss Fuse, arises when the maxInMemorySize property is set to an unlimited value. This configuration prevents the maxPartSize limit from being enforced, allowing an attacker to send oversized multipart requests that can exhaust application memory resources.
Меры по смягчению последствий
To prevent potential denial-of-service, configure the maxInMemorySize property in Spring WebFlux to a specific, positive integer value. This ensures that the maxPartSize limit is respected, thereby restricting the memory allocated for multipart requests. Refer to the Spring WebFlux documentation for guidance on applying this configuration within your environment. A restart of the application may be necessary for the updated configuration to take effect.
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Red Hat Fuse 7 | spring-webflux | Will not fix |
Показывать по
Дополнительная информация
Статус:
EPSS
7.5 High
CVSS3
Связанные уязвимости
The PartEventHttpMessageReader in Spring WebFlux does not enforce the maxPartSize limit when maxInMemorySize is set to -1. Spring Framework 7.0.0 - 7.0.8 Spring Framework 6.2.0 - 6.2.19 Spring Framework 6.1.0 - 6.1.28
The PartEventHttpMessageReader in Spring WebFlux does not enforce the maxPartSize limit when maxInMemorySize is set to -1. Spring Framework 7.0.0 - 7.0.8 Spring Framework 6.2.0 - 6.2.19 Spring Framework 6.1.0 - 6.1.28
The PartEventHttpMessageReader in Spring WebFlux does not enforce the ...
The PartEventHttpMessageReader in Spring WebFlux does not enforce the maxPartSize limit when maxInMemorySize is set to -1. Spring Framework 7.0.0 - 7.0.8 Spring Framework 6.2.0 - 6.2.19 Spring Framework 6.1.0 - 6.1.28
EPSS
7.5 High
CVSS3