CVE-2022-37315 graphql-go has infinite recursion in the type definition parser

High 7.5 Published Updated

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.

PackageAffectedFixed in
github.com/graphql-go/graphql GoAll versions0.8.1
github.com/graphql-go/graphql GoAll versions0.8.1
github.com/graphql-go/graphql GoAll versions0.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.

Sources

Also known as GHSA-h3qm-jrrf-cgj3, GO-2022-0942, UBUNTU-CVE-2022-37315.

Is CVE-2022-37315 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free