Resource exhaustion in Graph-Gophers Graphql-Go
CVE-2022-21708
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.
Vulnerability class: DoS (Denial of Service)
EPSS: 0.012 (66.1th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
Affected products
- Graph-gophers Graphql-go — versions < 1.3.0
- Graphql-go_project Graphql-go
Weakness classification (CWE)
References
- security-advisories@github.com (x_refsource_CONFIRM, Third Party Advisory)
- security-advisories@github.com (Patch, Third Party Advisory, x_refsource_MISC)
Frequently asked questions
- What is CVE-2022-21708?
- CVE-2022-21708 is a medium-severity vulnerability in Graph-Gophers Graphql-Go, classified under Uncontrolled Resource Consumption. CVSS score: 6.5/10. Published 2022-01-21.
- How severe is CVE-2022-21708?
- Medium severity. CVSS v3 base score is 6.5 out of 10.