CVE Vulnerabilities

CVE-2022-21708

Uncontrolled Resource Consumption

Published: Jan 21, 2022 | Modified: Nov 21, 2024
CVSS 3.x
6.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
3.5 LOW
AV:N/AC:M/Au:S/C:N/I:N/A:P
RedHat/V2
RedHat/V3
7.5 MODERATE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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.

Weakness

The product does not properly control the allocation and maintenance of a limited resource.

Affected Software

NameVendorStart VersionEnd Version
Graphql-goGraphql-go_project*1.3.0 (excluding)
Red Hat OpenShift Container Platform 4.12RedHatopenshift4/ose-console:v4.12.0-202406190905.p0.g8654e63.assembly.stream.el8*
Red Hat OpenShift Container Platform 4.13RedHatopenshift4/ose-console:v4.13.0-202406112237.p0.gdc7be0c.assembly.stream.el8*
Red Hat OpenShift Container Platform 4.14RedHatopenshift4/ose-console:v4.14.0-202402061340.p0.g3cab6c4.assembly.stream.el8*
Golang-github-graph-gophers-graphql-goUbuntufocal*
Golang-github-graph-gophers-graphql-goUbuntuimpish*
Golang-github-graph-gophers-graphql-goUbuntutrusty*
Golang-github-graph-gophers-graphql-goUbuntuupstream*
Golang-github-graph-gophers-graphql-goUbuntuxenial*

Potential Mitigations

  • 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.

References