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.
The product does not properly control the allocation and maintenance of a limited resource.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Graphql-go | Graphql-go_project | * | 1.3.0 (excluding) |
Red Hat OpenShift Container Platform 4.12 | RedHat | openshift4/ose-console:v4.12.0-202406190905.p0.g8654e63.assembly.stream.el8 | * |
Red Hat OpenShift Container Platform 4.13 | RedHat | openshift4/ose-console:v4.13.0-202406112237.p0.gdc7be0c.assembly.stream.el8 | * |
Red Hat OpenShift Container Platform 4.14 | RedHat | openshift4/ose-console:v4.14.0-202402061340.p0.g3cab6c4.assembly.stream.el8 | * |
Golang-github-graph-gophers-graphql-go | Ubuntu | focal | * |
Golang-github-graph-gophers-graphql-go | Ubuntu | impish | * |
Golang-github-graph-gophers-graphql-go | Ubuntu | trusty | * |
Golang-github-graph-gophers-graphql-go | Ubuntu | upstream | * |
Golang-github-graph-gophers-graphql-go | Ubuntu | xenial | * |
Mitigation of resource exhaustion attacks requires that the target system either:
The first of these solutions is an issue in itself though, since it may allow attackers to prevent the use of the system by a particular valid user. If the attacker impersonates the valid user, they may be able to prevent the user from accessing the server in question.
The second solution is simply difficult to effectively institute – and even when properly done, it does not provide a full solution. It simply makes the attack require more resources on the part of the attacker.