Bug 2045014 (CVE-2022-21708) - CVE-2022-21708 graphql-go: Denial of service via stack overflow panics
Summary: CVE-2022-21708 graphql-go: Denial of service via stack overflow panics
Status: NEW
Alias: CVE-2022-21708
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On:
Blocks: 2045015
TreeView+ depends on / blocked
Reported: 2022-01-25 13:14 UTC by Pedro Sampaio
Modified: 2022-03-11 04:44 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:

Attachments (Terms of Use)

Description Pedro Sampaio 2022-01-25 13:14:40 UTC
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.



Note You need to log in before you can comment on or make changes to this bug.