Vulnerability · Published Jan 21, 2022 · Assigned by GitHub_M

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

Medium 6.5

In plain English

A medium-severity uncontrolled resource consumption in graphql-go from graph-gophers. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 69% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)1.2%top 30.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12golang-github-graph-gophers-graphql-go1.3.0-1DEBIAN-CVE-2022-21708
Debian:13golang-github-graph-gophers-graphql-go1.3.0-1DEBIAN-CVE-2022-21708
Debian:14golang-github-graph-gophers-graphql-go1.3.0-1DEBIAN-CVE-2022-21708
Gogithub.com/graph-gophers/graphql-go1.3.0GHSA-mh3m-8c74-74xh
Gogithub.com/graph-gophers/graphql-go1.3.0GO-2022-0300

Affected products (as reported)

VendorProductVersions
graph-gophers graphql-go < 1.3.0

Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

References