Home / apollographql / federation / CVE-2024-43414
CVE-2024-43414: is it exploited, and which versions of apollographql federation are affected and fixed?
CVE-2024-43414 is an uncontrolled recursion vulnerability in apollographql federation. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 18:09 UTC). Affected: apollo-router before 1.52.1, @apollo/query-planner from 2.0.0 before 2.8.5 and @apollo/gateway from 2.0.0 before 2.8.5 (GitHub advisory GHSA-fmj9-77q8-g6c4). Fixed in 1.52.1 and 2.8.5 (GitHub advisory GHSA-fmj9-77q8-g6c4). Severity: High (7.5, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 18:09 UTC, CVE record November 19, 2026, 07:11 UTC and NVD November 19, 2026, 07:27 UTC.
What is CVE-2024-43414?
Apollo Query Planner and Apollo Gateway may infinitely loop on sufficiently complex queries
Apollo Federation is an architecture for declaratively composing APIs into a unified graph. Each team can own their slice of the graph independently, empowering them to deliver autonomously and incrementally. Instances of @apollo/query-planner >=2.0.0 and <2.8.5 are impacted by a denial-of-service vulnerability. @apollo/gateway versions >=2.0.0 and < 2.8.5 and Apollo Router <1.52.1 are also impacted through their use of @apollo/query-panner. If @apollo/query-planner is asked to plan a sufficiently complex query, it may loop infinitely and never complete. This results in unbounded memory consumption and either a crash or out-of-memory (OOM) termination. This issue can be triggered if you have at least one non-@key field that can be resolved by multiple subgraphs. To identify these shared fields, the schema for each subgraph must be reviewed. The mechanism to identify shared fields varies based on the version of Federation your subgraphs are using. You can check if your subgraphs are using Federation 1 or Federation 2 by reviewing their schemas. Federation 2 subgraph schemas will contain a @link directive referencing the version of Federation being used while Federation 1 subgraphs will not. For example, in a Federation 2 subgraph, you will find a line like @link(url: "https://specs.apollo.dev/federation/v2.0"). If a similar @link directive is not present in your subgraph schema, it is using Federation 1. Note that a supergraph can contain a mix of Federation 1 and Federation 2 subgraphs. This issue results from the Apollo query planner attempting to use a Number exceeding Javascript’s Number.MAX_VALUE in some cases. In Javascript, Number.MAX_VALUE is (2^1024 - 2^971). When the query planner receives an inbound graphql request, it breaks the query into pieces and for each piece, generates a list of potential execution steps to solve the piece. These candidates represent the steps that the query planner will take to satisfy the pieces of the larger query. As part of normal operations, the query planner requires and calculates the number of possible query plans for the total query. That is, it needs the product of the number of query plan candidates for each piece of the query. Under normal circumstances, after generating all query plan candidates and calculating the number of all permutations, the query planner moves on to stack rank candidates and prune less-than-optimal options. In particularly complex queries, especially those where fields can be solved through multiple subgraphs, this can cause the number of all query plan permutations to balloon. In worst-case scenarios, this can end up being a number larger than Number.MAX_VALUE. In Javascript, if Number.MAX_VALUE is exceeded, Javascript represents the value as “infinity”. If the count of candidates is evaluated as infinity, the component of the query planner responsible for pruning less-than-optimal query plans does not actually prune candidates, causing the query planner to evaluate many orders of magnitude more query plan candidates than necessary. This issue has been addressed in @apollo/query-planner v2.8.5, @apollo/gateway v2.8.5, and Apollo Router v1.52.1. Users are advised to upgrade. This issue can be avoided by ensuring there are no fields resolvable from multiple subgraphs. If all subgraphs are using Federation 2, you can confirm that you are not impacted by ensuring that none of your subgraph schemas use the @shareable directive. If you are using Federation 1 subgraphs, you will need to validate that there are no fields resolvable by multiple subgraphs.
From the CVE record by GitHub_M, last updated August 27, 2024, 17:58 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| apollographql | federation | >= 2.0.0, < 2.8.5 < 1.52.1 |
As the CVE record by GitHub_M states it, last updated August 27, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| crates.io | apollo-router | < 1.52.1 | 1.52.1 | GHSA-fmj9-77q8-g6c4 |
| npm | @apollo/query-planner | >= 2.0.0, < 2.8.5 | 2.8.5 | GHSA-fmj9-77q8-g6c4 |
| npm | @apollo/gateway | >= 2.0.0, < 2.8.5 | 2.8.5 | GHSA-fmj9-77q8-g6c4 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated September 13, 2024. Summary: Apollo Query Planner and Apollo Gateway may infinitely loop on sufficiently complex queries.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| apollographql | apollo-router | before 1.52.1 | application |
| apollographql | apollo gateway | from 2.0.0 before 2.8.5 | application |
| apollographql | apollo helms-charts router | before 1.52.1 | application |
| apollographql | apollo query-planner | from 2.0.0 before 2.8.5 | application |
| apollographql | apollo router | before 1.52.1 | application |
NVD analysis (status Analyzed), last modified June 17, 2026, 07:50 UTC.
How severe is CVE-2024-43414?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | GitHub_M |
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2024-43414 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, August 27, 2024)
- EPSS
- 0.99% probability of exploitation activity in the next 30 days, percentile 63.6 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
Where are the vendor advisories and references?
- https://github.com/apollographql/federation/security/advisories/GHSA-fmj9-77q8-g6c4 x_refsource_CONFIRM
- https://www.apollographql.com/docs/federation/query-plans x_refsource_MISC
- https://www.apollographql.com/docs/router/configuration/persisted-queries x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- August 12, 2024
- Published
- August 27, 2024, 17:20 UTC
- CVE record updated
- August 27, 2024, 17:58 UTC by GitHub_M
- NVD
- Analyzed, last modified June 17, 2026, 07:50 UTC
- Last checked
- CVE list November 19, 2026, 07:11 UTC; NVD November 19, 2026, 07:27 UTC; KEV December 3, 2026, 18:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect federation?
- Nov 13, 2025CVE-2025-64530 apollographql federation: authentication bypass through another path
- Apr 7, 2025CVE-2025-32031 apollographql federation: denial of service (resources allocated without limits)
- Apr 7, 2025CVE-2025-32030 apollographql federation: denial of service (resources allocated without limits)
Questions about CVE-2024-43414
Is CVE-2024-43414 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 18:09 UTC. FIRST's EPSS gives it a 0.99% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of apollographql federation are affected by CVE-2024-43414?
apollo-router before 1.52.1, @apollo/query-planner from 2.0.0 before 2.8.5 and @apollo/gateway from 2.0.0 before 2.8.5, per the GitHub advisory GHSA-fmj9-77q8-g6c4. The tables above give every range the sources list.
Which version fixes CVE-2024-43414?
1.52.1 and 2.8.5, per the GitHub advisory GHSA-fmj9-77q8-g6c4. Check the vendor's advisory before you rely on it.
How severe is CVE-2024-43414?
High (7.5, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2024-43414?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.