VDB
KO
HIGH 8.1

GHSA-px92-q6rc-6mwv

Spring for GraphQL: Unsafe Deserialization

Quick fix

GHSA-px92-q6rc-6mwv — org.springframework.graphql:spring-graphql: upgrade to the fixed version with the command below.

# pom.xml: bump <version>2.0.4</version> for org.springframework.graphql:spring-graphql

Details

Spring for GraphQL applications are vulnerable to Unsafe Deserialization when processing paginated GraphQL queries. An attacker can craft a malicious GraphQL request that can lead to Remote Code Execution when the application exposes a paginated (Connection) field and the classpath contains specific classes that can be leveraged during deserialization.

Affected versions: Spring for GraphQL 2.0.0 through 2.0.3; 1.4.0 through 1.4.5; 1.3.0 through 1.3.8.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven / org.springframework.graphql:spring-graphql
Introduced in: 2.0.0 Fixed in: 2.0.4
Fix # pom.xml: bump <version>2.0.4</version> for org.springframework.graphql:spring-graphql
Maven / org.springframework.graphql:spring-graphql
Introduced in: 1.4.0 Fixed in: 1.4.6
Fix # pom.xml: bump <version>1.4.6</version> for org.springframework.graphql:spring-graphql
Maven / org.springframework.graphql:spring-graphql
Introduced in: 1.3.0

No fixed version published yet for org.springframework.graphql:spring-graphql (maven). Pin to a known-safe version or switch to an alternative.

References