Spring WebFlux applications that decode a request body as a stream of text lines may be...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| SpringSpring Framework |
≥ 7.0.0, < 7.0.10.1→ 7.0.10.1 ≥ 6.2.0, < 6.2.21→ 6.2.21 ≥ 6.1.0, < 6.1.30→ 6.1.30 ≥ 7.0.0, < 7.0.11→ 7.0.11 |
7.0.10.1 6.2.21 6.1.30 7.0.11 |
Original description The description as published by the source.
Spring 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:
The application is using Spring WebFlux on Reactor Netty
The application decodes request bodies as a stream of String values, for example with bodyToFlux(String.class)
or a Flux request body
The application configures a maxInMemorySize 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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- web spring.io
- web nvd.nist.gov
- web nvd.nist.gov
- web github.com