{"id":"CVE-2025-32031","published":"2025-04-07T20:41:35Z","modified":"2025-04-08T14:52:34Z","title":"Apollo Gateway Query Planner Vulnerable to Excessive Resource Consumption via Optimization Bypass","vendor":"apollographql","product":"federation","tier":"tail","description":{"text":"Apollo Gateway provides utilities for combining multiple GraphQL microservices into a single GraphQL endpoint. Prior to 2.10.1, a vulnerability in Apollo Gateway allowed queries with deeply nested and reused named fragments to be prohibitively expensive to query plan, specifically due to internal optimizations being frequently bypassed. The query planner includes an optimization that significantly speeds up planning for applicable GraphQL selections. However, queries with deeply nested and reused named fragments can generate many selections where this optimization does not apply, leading to significantly longer planning times. Because the query planner does not enforce a timeout, a small number of such queries can render gateway inoperable. This could lead to excessive resource consumption and denial of service. This has been remediated in @apollo/gateway version 2.10.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00603,"percentile":0.49799,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/apollographql/federation/security/advisories/GHSA-p2q6-pwh5-m6jr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/apollographql/federation/pull/3236","tags":["x_refsource_MISC"]},{"url":"https://github.com/apollographql/federation/releases/tag/%40apollo%2Fgateway%402.10.1","tags":["x_refsource_MISC"]}],"priority":{"score":15.2,"factors":[{"name":"EPSS percentile","points":9.96},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"apollographql","affectedVersions":[{"vendor":"apollographql","product":"federation","versions":["< 2.10.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-08T14:39:08.833833Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@apollo/gateway","vulnerableRanges":["<2.10.1"],"patched":["2.10.1"],"from":["GHSA-p2q6-pwh5-m6jr"],"provenance":"source"}],"summary":{"text":"The Apollo Gateway component of the Apollo Federation product, which combines multiple GraphQL microservices into a single endpoint, has a flaw in its query planner where deeply nested, reused named fragments bypass an optimization and make planning very expensive, with no timeout enforced. An attacker with network access and no authentication or user interaction can send a small number of such queries to make the gateway inoperable, causing denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:31:06Z"},"euvd":{"id":"EUVD-2025-10284","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-43414","published":"2024-08-27","fixed":"2.8.5","kev":false},{"cve":"CVE-2025-32030","published":"2025-04-07","fixed":"2.10.1","kev":false},{"cve":"CVE-2025-32031","published":"2025-04-07","fixed":"2.10.1","kev":false},{"cve":"CVE-2026-32621","published":"2026-03-13","fixed":"2.13.2","kev":false,"link":{"from":"CVE-2025-32031","to":"CVE-2026-32621","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@apollo/gateway","fromFixed":"2.10.1","toFixed":"2.10.5","daysApart":340}]}}],"package":"npm:@apollo/gateway"}}