Get ahead
VMware offers training and certification to turbo-charge your progress.
Learn moreSpring WebFlux applications that decode a request body as a stream of text lines may be vulnerable to a denial of service attack.
Specifically, an application is vulnerable when all the following conditions are met:
String values, for example with bodyToFlux(String.class)
or a Flux<String> request bodymaxInMemorySize codec limit that is lower than the size of buffers
produced by the server (8KB by default with HTTP/1.1)When all conditions are met, an attacker can send crafted requests that exceed the configured limit
and cause the application to leak pooled memory, eventually leading to a denial of service.
Applications using the default maxInMemorySize of 256KB with default server settings are not affected.
Spring Framework:
| Fix version | Availability |
|---|---|
| 7.0.11 | OSS |
| 7.0.10.1 | Enterprise Support Only |
| 6.2.21 | Enterprise Support Only |
| 6.1.30 | Enterprise Support Only |
No further mitigation steps are necessary.
This issue was reported by YLChen-007.
To report a security vulnerability for a project within the Spring portfolio, see the Security Policy