CVE-2023-45812 Improper Check or Handling of Exceptional Conditions in apollo-router
Attackers can cause the Apollo Router to panic and terminate by sending specific queries when a coprocessor is configured.
- 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-45812?
CVE-2023-45812 is a high-severity denial of service vulnerability in apollographql router, published on 18 Oct 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The Apollo Router is a configurable, high-performance graph router written in Rust to run a federated supergraph that uses Apollo Federation. Affected versions are subject to a Denial-of-Service (DoS) type vulnerability which causes the Router to panic and terminate when a multi-part response is sent. When users send queries to the router that uses the `@defer` or Subscriptions, the Router will panic. To be vulnerable, users of Router must have a coprocessor with `coprocessor.supergraph.response` configured in their `router.yaml` and also to support either `@defer` or Subscriptions. Apollo Router version 1.33.0 has a fix for this vulnerability which was introduced in PR #4014. Users are advised to upgrade. Users unable to upgrade should avoid using the coprocessor supergraph response or disable defer and subscriptions support and continue to use the coprocessor supergraph response.
Weakness: CWE-754
Which versions are affected by CVE-2023-45812?
2 open source packages ship an affected version, including apollo-router. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
apollo-router crates.io | From 1.31.0 | 1.33.0 |
apollo-router crates.io | From 1.31.0 | 1.33.0 |
Products include Apollographql Apollo Helms-Charts Router, Apollographql Apollo Router.
How do I fix CVE-2023-45812?
Upgrade apollo-router to 1.33.0 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-45812 being exploited?
There is no known exploitation of CVE-2023-45812 in the wild and no public exploit code.
Sources
Also known as GHSA-r344-xw3p-2frj.