CVE-2024-43414

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-43414
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-43414.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-43414
Aliases
Published
2024-08-27T18:15:15Z
Modified
2024-10-08T04:22:02.787101Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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.MAXVALUE in some cases. In Javascript, Number.MAXVALUE 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.MAXVALUE. In Javascript, if Number.MAXVALUE 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.

References

Affected packages

Git / github.com/apollographql/federation

Affected ranges

Type
GIT
Repo
https://github.com/apollographql/federation
Events

Affected versions

2.*

2.2.0-rc.0

@apollo/composition@2.*

@apollo/composition@2.0.0
@apollo/composition@2.0.1
@apollo/composition@2.0.2
@apollo/composition@2.0.2-alpha.0
@apollo/composition@2.0.2-alpha.1
@apollo/composition@2.0.2-alpha.2
@apollo/composition@2.0.3
@apollo/composition@2.0.5
@apollo/composition@2.1.0-alpha.0
@apollo/composition@2.1.0-alpha.1
@apollo/composition@2.1.0-alpha.2
@apollo/composition@2.1.0-alpha.3
@apollo/composition@2.3.0
@apollo/composition@2.3.1
@apollo/composition@2.3.2
@apollo/composition@2.3.3
@apollo/composition@2.3.4
@apollo/composition@2.3.5
@apollo/composition@2.4.0
@apollo/composition@2.4.0-alpha.0
@apollo/composition@2.4.0-alpha.1
@apollo/composition@2.4.1
@apollo/composition@2.4.10
@apollo/composition@2.4.2
@apollo/composition@2.4.3
@apollo/composition@2.4.4
@apollo/composition@2.4.5
@apollo/composition@2.4.6
@apollo/composition@2.4.7
@apollo/composition@2.4.8
@apollo/composition@2.4.9
@apollo/composition@2.5.0
@apollo/composition@2.5.1
@apollo/composition@2.5.2
@apollo/composition@2.5.3
@apollo/composition@2.5.4
@apollo/composition@2.5.5
@apollo/composition@2.5.6
@apollo/composition@2.5.7
@apollo/composition@2.6.0
@apollo/composition@2.6.1
@apollo/composition@2.6.2
@apollo/composition@2.6.3
@apollo/composition@2.7.0
@apollo/composition@2.7.1
@apollo/composition@2.7.2
@apollo/composition@2.7.3
@apollo/composition@2.7.4
@apollo/composition@2.7.5
@apollo/composition@2.7.6
@apollo/composition@2.7.7
@apollo/composition@2.7.8
@apollo/composition@2.8.0
@apollo/composition@2.8.0-alpha.0
@apollo/composition@2.8.0-alpha.1
@apollo/composition@2.8.1
@apollo/composition@2.8.2
@apollo/composition@2.8.3
@apollo/composition@2.8.3-beta.0
@apollo/composition@2.8.3-beta.1
@apollo/composition@2.8.3-beta.2
@apollo/composition@2.8.4

@apollo/federation-internals@2.*

@apollo/federation-internals@2.0.0
@apollo/federation-internals@2.0.1
@apollo/federation-internals@2.0.2
@apollo/federation-internals@2.0.2-alpha.0
@apollo/federation-internals@2.0.2-alpha.1
@apollo/federation-internals@2.0.2-alpha.2
@apollo/federation-internals@2.0.3
@apollo/federation-internals@2.0.5
@apollo/federation-internals@2.1.0-alpha.0
@apollo/federation-internals@2.1.0-alpha.1
@apollo/federation-internals@2.1.0-alpha.2
@apollo/federation-internals@2.1.0-alpha.3
@apollo/federation-internals@2.3.0
@apollo/federation-internals@2.3.1
@apollo/federation-internals@2.3.2
@apollo/federation-internals@2.3.3
@apollo/federation-internals@2.3.4
@apollo/federation-internals@2.3.5
@apollo/federation-internals@2.4.0
@apollo/federation-internals@2.4.0-alpha.0
@apollo/federation-internals@2.4.0-alpha.1
@apollo/federation-internals@2.4.1
@apollo/federation-internals@2.4.10
@apollo/federation-internals@2.4.2
@apollo/federation-internals@2.4.3
@apollo/federation-internals@2.4.4
@apollo/federation-internals@2.4.5
@apollo/federation-internals@2.4.6
@apollo/federation-internals@2.4.7
@apollo/federation-internals@2.4.8
@apollo/federation-internals@2.4.9
@apollo/federation-internals@2.5.0
@apollo/federation-internals@2.5.1
@apollo/federation-internals@2.5.2
@apollo/federation-internals@2.5.3
@apollo/federation-internals@2.5.4
@apollo/federation-internals@2.5.5
@apollo/federation-internals@2.5.6
@apollo/federation-internals@2.5.7
@apollo/federation-internals@2.6.0
@apollo/federation-internals@2.6.1
@apollo/federation-internals@2.6.2
@apollo/federation-internals@2.6.3
@apollo/federation-internals@2.7.0
@apollo/federation-internals@2.7.1
@apollo/federation-internals@2.7.2
@apollo/federation-internals@2.7.3
@apollo/federation-internals@2.7.4
@apollo/federation-internals@2.7.5
@apollo/federation-internals@2.7.6
@apollo/federation-internals@2.7.7
@apollo/federation-internals@2.7.8
@apollo/federation-internals@2.8.0
@apollo/federation-internals@2.8.0-alpha.0
@apollo/federation-internals@2.8.0-alpha.1
@apollo/federation-internals@2.8.1
@apollo/federation-internals@2.8.2
@apollo/federation-internals@2.8.3
@apollo/federation-internals@2.8.3-beta.0
@apollo/federation-internals@2.8.3-beta.1
@apollo/federation-internals@2.8.3-beta.2
@apollo/federation-internals@2.8.4

@apollo/gateway@2.*

@apollo/gateway@2.0.0
@apollo/gateway@2.0.1
@apollo/gateway@2.0.2
@apollo/gateway@2.0.2-alpha.0
@apollo/gateway@2.0.2-alpha.1
@apollo/gateway@2.0.2-alpha.2
@apollo/gateway@2.0.3
@apollo/gateway@2.0.5
@apollo/gateway@2.1.0-alpha.0
@apollo/gateway@2.1.0-alpha.1
@apollo/gateway@2.1.0-alpha.2
@apollo/gateway@2.1.0-alpha.3
@apollo/gateway@2.3.0
@apollo/gateway@2.3.1
@apollo/gateway@2.3.2
@apollo/gateway@2.3.3
@apollo/gateway@2.3.4
@apollo/gateway@2.3.5
@apollo/gateway@2.4.0
@apollo/gateway@2.4.0-alpha.0
@apollo/gateway@2.4.0-alpha.1
@apollo/gateway@2.4.1
@apollo/gateway@2.4.10
@apollo/gateway@2.4.2
@apollo/gateway@2.4.3
@apollo/gateway@2.4.4
@apollo/gateway@2.4.5
@apollo/gateway@2.4.6
@apollo/gateway@2.4.7
@apollo/gateway@2.4.8
@apollo/gateway@2.4.9
@apollo/gateway@2.5.0
@apollo/gateway@2.5.1
@apollo/gateway@2.5.2
@apollo/gateway@2.5.3
@apollo/gateway@2.5.4
@apollo/gateway@2.5.5
@apollo/gateway@2.5.6
@apollo/gateway@2.5.7
@apollo/gateway@2.6.0
@apollo/gateway@2.6.1
@apollo/gateway@2.6.2
@apollo/gateway@2.6.3
@apollo/gateway@2.7.0
@apollo/gateway@2.7.1
@apollo/gateway@2.7.2
@apollo/gateway@2.7.3
@apollo/gateway@2.7.4
@apollo/gateway@2.7.5
@apollo/gateway@2.7.6
@apollo/gateway@2.7.7
@apollo/gateway@2.7.8
@apollo/gateway@2.8.0
@apollo/gateway@2.8.0-alpha.0
@apollo/gateway@2.8.0-alpha.1
@apollo/gateway@2.8.1
@apollo/gateway@2.8.2
@apollo/gateway@2.8.3
@apollo/gateway@2.8.3-beta.0
@apollo/gateway@2.8.3-beta.1
@apollo/gateway@2.8.3-beta.2
@apollo/gateway@2.8.4

@apollo/query-graphs@2.*

@apollo/query-graphs@2.0.0
@apollo/query-graphs@2.0.1
@apollo/query-graphs@2.0.2
@apollo/query-graphs@2.0.2-alpha.0
@apollo/query-graphs@2.0.2-alpha.1
@apollo/query-graphs@2.0.2-alpha.2
@apollo/query-graphs@2.0.3
@apollo/query-graphs@2.0.5
@apollo/query-graphs@2.1.0-alpha.0
@apollo/query-graphs@2.1.0-alpha.1
@apollo/query-graphs@2.1.0-alpha.2
@apollo/query-graphs@2.1.0-alpha.3
@apollo/query-graphs@2.3.0
@apollo/query-graphs@2.3.1
@apollo/query-graphs@2.3.2
@apollo/query-graphs@2.3.3
@apollo/query-graphs@2.3.4
@apollo/query-graphs@2.3.5
@apollo/query-graphs@2.4.0
@apollo/query-graphs@2.4.0-alpha.0
@apollo/query-graphs@2.4.0-alpha.1
@apollo/query-graphs@2.4.1
@apollo/query-graphs@2.4.10
@apollo/query-graphs@2.4.2
@apollo/query-graphs@2.4.3
@apollo/query-graphs@2.4.4
@apollo/query-graphs@2.4.5
@apollo/query-graphs@2.4.6
@apollo/query-graphs@2.4.7
@apollo/query-graphs@2.4.8
@apollo/query-graphs@2.4.9
@apollo/query-graphs@2.5.0
@apollo/query-graphs@2.5.1
@apollo/query-graphs@2.5.2
@apollo/query-graphs@2.5.3
@apollo/query-graphs@2.5.4
@apollo/query-graphs@2.5.5
@apollo/query-graphs@2.5.6
@apollo/query-graphs@2.5.7
@apollo/query-graphs@2.6.0
@apollo/query-graphs@2.6.1
@apollo/query-graphs@2.6.2
@apollo/query-graphs@2.6.3
@apollo/query-graphs@2.7.0
@apollo/query-graphs@2.7.1
@apollo/query-graphs@2.7.2
@apollo/query-graphs@2.7.3
@apollo/query-graphs@2.7.4
@apollo/query-graphs@2.7.5
@apollo/query-graphs@2.7.6
@apollo/query-graphs@2.7.7
@apollo/query-graphs@2.7.8
@apollo/query-graphs@2.8.0
@apollo/query-graphs@2.8.0-alpha.0
@apollo/query-graphs@2.8.0-alpha.1
@apollo/query-graphs@2.8.1
@apollo/query-graphs@2.8.2
@apollo/query-graphs@2.8.3
@apollo/query-graphs@2.8.3-beta.0
@apollo/query-graphs@2.8.3-beta.1
@apollo/query-graphs@2.8.3-beta.2
@apollo/query-graphs@2.8.4

@apollo/query-planner@2.*

@apollo/query-planner@2.0.0
@apollo/query-planner@2.0.1
@apollo/query-planner@2.0.2
@apollo/query-planner@2.0.2-alpha.0
@apollo/query-planner@2.0.2-alpha.1
@apollo/query-planner@2.0.2-alpha.2
@apollo/query-planner@2.0.3
@apollo/query-planner@2.0.5
@apollo/query-planner@2.1.0-alpha.0
@apollo/query-planner@2.1.0-alpha.1
@apollo/query-planner@2.1.0-alpha.2
@apollo/query-planner@2.1.0-alpha.3
@apollo/query-planner@2.3.0
@apollo/query-planner@2.3.1
@apollo/query-planner@2.3.2
@apollo/query-planner@2.3.3
@apollo/query-planner@2.3.4
@apollo/query-planner@2.3.5
@apollo/query-planner@2.4.0
@apollo/query-planner@2.4.0-alpha.0
@apollo/query-planner@2.4.0-alpha.1
@apollo/query-planner@2.4.1
@apollo/query-planner@2.4.10
@apollo/query-planner@2.4.2
@apollo/query-planner@2.4.3
@apollo/query-planner@2.4.4
@apollo/query-planner@2.4.5
@apollo/query-planner@2.4.6
@apollo/query-planner@2.4.7
@apollo/query-planner@2.4.8
@apollo/query-planner@2.4.9
@apollo/query-planner@2.5.0
@apollo/query-planner@2.5.1
@apollo/query-planner@2.5.2
@apollo/query-planner@2.5.3
@apollo/query-planner@2.5.4
@apollo/query-planner@2.5.5
@apollo/query-planner@2.5.6
@apollo/query-planner@2.5.7
@apollo/query-planner@2.6.0
@apollo/query-planner@2.6.1
@apollo/query-planner@2.6.2
@apollo/query-planner@2.6.3
@apollo/query-planner@2.7.0
@apollo/query-planner@2.7.1
@apollo/query-planner@2.7.2
@apollo/query-planner@2.7.3
@apollo/query-planner@2.7.4
@apollo/query-planner@2.7.5
@apollo/query-planner@2.7.6
@apollo/query-planner@2.7.7
@apollo/query-planner@2.7.8
@apollo/query-planner@2.8.0
@apollo/query-planner@2.8.0-alpha.0
@apollo/query-planner@2.8.0-alpha.1
@apollo/query-planner@2.8.1
@apollo/query-planner@2.8.2
@apollo/query-planner@2.8.3
@apollo/query-planner@2.8.3-beta.0
@apollo/query-planner@2.8.3-beta.1
@apollo/query-planner@2.8.3-beta.2
@apollo/query-planner@2.8.4

@apollo/subgraph@2.*

@apollo/subgraph@2.0.0
@apollo/subgraph@2.0.1
@apollo/subgraph@2.0.2
@apollo/subgraph@2.0.2-alpha.0
@apollo/subgraph@2.0.2-alpha.1
@apollo/subgraph@2.0.2-alpha.2
@apollo/subgraph@2.0.3
@apollo/subgraph@2.0.5
@apollo/subgraph@2.1.0-alpha.0
@apollo/subgraph@2.1.0-alpha.1
@apollo/subgraph@2.1.0-alpha.2
@apollo/subgraph@2.1.0-alpha.3
@apollo/subgraph@2.3.0
@apollo/subgraph@2.3.1
@apollo/subgraph@2.3.2
@apollo/subgraph@2.3.3
@apollo/subgraph@2.3.4
@apollo/subgraph@2.3.5
@apollo/subgraph@2.4.0
@apollo/subgraph@2.4.0-alpha.0
@apollo/subgraph@2.4.0-alpha.1
@apollo/subgraph@2.4.1
@apollo/subgraph@2.4.10
@apollo/subgraph@2.4.2
@apollo/subgraph@2.4.3
@apollo/subgraph@2.4.4
@apollo/subgraph@2.4.5
@apollo/subgraph@2.4.6
@apollo/subgraph@2.4.7
@apollo/subgraph@2.4.8
@apollo/subgraph@2.4.9
@apollo/subgraph@2.5.0
@apollo/subgraph@2.5.1
@apollo/subgraph@2.5.2
@apollo/subgraph@2.5.3
@apollo/subgraph@2.5.4
@apollo/subgraph@2.5.5
@apollo/subgraph@2.5.6
@apollo/subgraph@2.5.7
@apollo/subgraph@2.6.0
@apollo/subgraph@2.6.1
@apollo/subgraph@2.6.2
@apollo/subgraph@2.6.3
@apollo/subgraph@2.7.0
@apollo/subgraph@2.7.1
@apollo/subgraph@2.7.2
@apollo/subgraph@2.7.3
@apollo/subgraph@2.7.4
@apollo/subgraph@2.7.5
@apollo/subgraph@2.7.6
@apollo/subgraph@2.7.7
@apollo/subgraph@2.7.8
@apollo/subgraph@2.8.0
@apollo/subgraph@2.8.0-alpha.0
@apollo/subgraph@2.8.0-alpha.1
@apollo/subgraph@2.8.1
@apollo/subgraph@2.8.2
@apollo/subgraph@2.8.3
@apollo/subgraph@2.8.3-beta.0
@apollo/subgraph@2.8.3-beta.1
@apollo/subgraph@2.8.3-beta.2
@apollo/subgraph@2.8.4

apollo-federation-integration-testsuite@2.*

apollo-federation-integration-testsuite@2.0.0
apollo-federation-integration-testsuite@2.0.1
apollo-federation-integration-testsuite@2.0.2
apollo-federation-integration-testsuite@2.0.2-alpha.0
apollo-federation-integration-testsuite@2.0.2-alpha.1
apollo-federation-integration-testsuite@2.0.2-alpha.2
apollo-federation-integration-testsuite@2.0.3
apollo-federation-integration-testsuite@2.0.5
apollo-federation-integration-testsuite@2.1.0-alpha.0
apollo-federation-integration-testsuite@2.1.0-alpha.1
apollo-federation-integration-testsuite@2.1.0-alpha.2
apollo-federation-integration-testsuite@2.1.0-alpha.3

Other

publish/20220411142727
publish/20220412182251
publish/20220412182833
publish/20220423052209
publish/20220429185919
publish/20220502163256
publish/20220503174039
publish/20220520210700
publish/20220607164757
publish/20220623221941
publish/20220719191724
publish/20220803220425
publish/20220809215852