Skip to content

CVE-2022-21708 Denial of Service in graphql-go

MediumCVSS 6.5 EPSS 1.3%
Published
Updated
Exploit status
No public exploit known

Description

graphql-go is a GraphQL server with a focus on ease of use. In versions prior to 1.3.0 there exists a DoS vulnerability that is possible due to a bug in the library that would allow an attacker with specifically designed queries to cause stack overflow panics. Any user with access to the GraphQL handler can send these queries and cause stack overflows. This in turn could potentially compromise the ability of the server to serve data to its users. The issue has been patched in version v1.3.0. The only known workaround for this issue is to disable the graphql.MaxDepth option from your schema which is not recommended.

Affected products

ProductAffected versionsFixed in
graph-gophers github.com/graph-gophers/graphql-go(Go) < 1.3.0 1.3.0
debian/golang-github-graph-gophers-graphql-go(Debian:12) < 1.3.0-1 1.3.0-1
debian/golang-github-graph-gophers-graphql-go(Debian:13) < 1.3.0-1 1.3.0-1
debian/golang-github-graph-gophers-graphql-go(Debian:14) < 1.3.0-1 1.3.0-1
graph-gophers github.com/graph-gophers/graphql-go = < 1.3.0 No fix listed
graphql-go project graphql-go < 1.3.0 1.3.0

References