CVE-2023-49559 gqlparser denial of service vulnerability via the parserDirectives function
A remote attacker can cause a denial of service in the gqlparser library by sending a crafted script to the parserDirectives function.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-49559?
CVE-2023-49559 is a low-severity denial of service vulnerability in n/a, published on 12 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue in vektah gqlparser open-source-library v.2.5.10 allows a remote attacker to cause a denial of service via a crafted script to the parserDirectives function.
Weakness: CWE-770
Which versions are affected by CVE-2023-49559?
6 open source packages ship an affected version, including github.com/vektah/gqlparser and github.com/vektah/gqlparser/v2.
| Package | Affected | Fixed in |
|---|---|---|
github.com/vektah/gqlparser Go | All versions | None |
github.com/vektah/gqlparser Go | All versions | 2.5.14 |
github.com/vektah/gqlparser Go | All versions | 2.5.14 |
github.com/vektah/gqlparser/v2 Go | All versions | 2.5.14 |
github.com/vektah/gqlparser/v2 Go | All versions | 2.5.14 |
github.com/vektah/gqlparser/v2 Go | All versions | 2.5.14 |
How do I fix CVE-2023-49559?
Upgrade github.com/vektah/gqlparser to 2.5.14 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-2023-49559 being exploited?
There is no known exploitation of CVE-2023-49559 in the wild and no public exploit code.
Sources
Also known as GHSA-2hmf-46v7-v6fx, GO-2024-2920.