Overview
About vulnerability
Spring for GraphQL’s Spring Data pagination support resolves arguments of a scrollable query and forwards the client-supplied values to the underlying repository.
An attacker can forge a malicious query for a Connection field that can exhaust application memory or place significant, prolonged load on the underlying datastore, resulting in a Denial of Service.
More precisely, an application is vulnerable when all the following are true:
- the application exposes a
Connection-typedQueryfield backed by a Spring Data repository through the auto-registration support (for exampleQueryByExampleDataFetcherorQuerydslDataFetcher) - the application does not enforce additional query complexity checks
Details
- Affected product:
- Spring
- Affected packages:
- Spring Boot @ 3.3.13 (+666 more)