CVE-2022-37315 graphql-go has infinite recursion in the type definition parser
An attacker can cause a denial of service via infinite recursion in the type definition parser of the graphql-go library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-37315?
CVE-2022-37315 is a high-severity denial of service vulnerability in n/a, published on 1 Aug 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
graphql-go (aka GraphQL for Go) through 0.8.0 has infinite recursion in the type definition parser.
Weakness: CWE-674
Which versions are affected by CVE-2022-37315?
3 open source packages ship an affected version, including github.com/graphql-go/graphql. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/graphql-go/graphql Go | All versions | 0.8.1 |
github.com/graphql-go/graphql Go | All versions | 0.8.1 |
github.com/graphql-go/graphql Go | All versions | 0.8.1 |
Products include Graphql-Go Project Graphql-Go.
How do I fix CVE-2022-37315?
Upgrade github.com/graphql-go/graphql to 0.8.1 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2022-37315 being exploited?
There is no known exploitation of CVE-2022-37315 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-h3qm-jrrf-cgj3, GO-2022-0942, UBUNTU-CVE-2022-37315.