CVE-2022-21708

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-21708
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-21708.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-21708
Aliases
Related
Published
2022-01-21T23:15:08Z
Modified
2025-01-08T14:02:40.667676Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Debian:11 / golang-github-graph-gophers-graphql-go

Package

Name
golang-github-graph-gophers-graphql-go
Purl
pkg:deb/debian/golang-github-graph-gophers-graphql-go?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.0~git20180609.bb97385-2.1

1.*

1.1.0-1
1.1.0-2
1.2.0-1
1.3.0-1
1.4.0-1
1.5.0-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / golang-github-graph-gophers-graphql-go

Package

Name
golang-github-graph-gophers-graphql-go
Purl
pkg:deb/debian/golang-github-graph-gophers-graphql-go?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.3.0-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / golang-github-graph-gophers-graphql-go

Package

Name
golang-github-graph-gophers-graphql-go
Purl
pkg:deb/debian/golang-github-graph-gophers-graphql-go?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.3.0-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Git / github.com/graph-gophers/graphql-go

Affected ranges

Type
GIT
Repo
https://github.com/graph-gophers/graphql-go
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed

Affected versions

v1.*

v1.0.0
v1.1.0
v1.2.0