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)
Published · last modified .
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.
EPSS exploit prediction
EPSS: 0.012 (68.0th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 68th percentile — 68.0% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.012 · newest: 0.012 · change: 0.000
Affected products
- Graph-Gophers Graphql-Go — versions < 1.3.0
- Graphql-Go Project
Weakness classification (CWE)
References
- github.com/graph-gophers/graphql-go/security/advisories/GHSA-mh3m-8c74-74xh (Third Party Advisory)
- github.com/graph-gophers/graphql-go/commit/eae31ca73eb3473c544710955d1dbebc2260… (Patch, Third Party Advisory)
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.