Advisory

GO-2022-0300

Also known as: CVE-2022-21708, GHSA-mh3m-8c74-74xh

Summary

Panic via malicious inputs in github.com/graph-gophers/graphql-go

Details

Malicious inputs can cause a panic.

A maliciously crafted input can cause a stack overflow and panic. Any user with access to the GraphQL can send such a query.

This issue only occurs when using the graphql.MaxDepth schema option (which is highly recommended in most cases).

Severity

Not rated by the source.

Dates

Published
2022-07-15 23:10 UTC
Modified
2024-05-20 16:03 UTC

Affected packages and fixes

github.com/graph-gophers/graphql-go

Go · All systems

Affected

  • introduced 0, fixed 1.3.0 (semver)

Fixed versions

1.3.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences