{"id":"CVE-2025-32032","aliases":["CVE-2025-32032","GHSA-94hh-jmq8-2fgp"],"related":[],"kind":"vulnerability","state":"published","title":"Apollo Router Query Planner Vulnerable to Excessive Resource Consumption via Optimization Bypass","summary":"The Apollo Router Core is a configurable, high-performance graph router written in Rust to run a federated supergraph that uses Apollo Federation 2. A vulnerability in Apollo Router 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 exhaust router's thread pool, rendering it inoperable. This could lead to excessive resource consumption and denial of service. This has been remediated in apollo-router versions 1.61.2 and 2.1.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The Apollo Router Core is a configurable, high-performance graph router written in Rust to run a federated supergraph that uses Apollo Federation 2. A vulnerability in Apollo Router 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 exhaust router's thread pool, rendering it inoperable. This could lead to excessive resource consumption and denial of service. This has been remediated in apollo-router versions 1.61.2 and 2.1.1.","source":"cvelist"},{"lang":"en","text":"# Impact\n\n## Summary\n\nA vulnerability in Apollo Router allowed queries with deeply nested and reused named fragments to be prohibitively expensive to query plan, specifically due to internal optimizations being frequently bypassed. This could lead to excessive resource consumption and denial of service.\n\n## Details\n\nThe 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 exhaust router's thread pool, rendering it inoperable.\n\n## Fix/Mitigation\n\n- A new **Query Optimization Limit** metric has been added:\n  - This metric approximates the number of selections that cannot be skipped by the existing optimization.\n  - The metric is checked against a limit to prevent excessive computation.\n\nGiven the complexity of query planning optimizations, we will continue refining these solutions based on real-world performance and accuracy tests.\n\n# Patches\n\nThis has been remediated in `apollo-router` versions 1.61.2 and 2.1.1.\n\n# Workarounds\n\nThe only known workaround is \"Safelisting\" or \"Safelisting with IDs only\" per [Safelisting with Persisted Queries - Apollo GraphQL Docs](https://www.apollographql.com/docs/graphos/routing/security/persisted-queries#router-security-levels).\n\n# References\n\n[Query Planning Documentation](https://www.apollographql.com/docs/graphos/reference/federation/query-plans)\n\n## Acknowledgements\n\nWe appreciate the efforts of the security community in identifying and improving the performance and security of query planning mechanisms.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Apollo Router Core es un enrutador de grafos configurable y de alto rendimiento, escrito en Rust para ejecutar un supergrafo federado que utiliza Apollo Federation 2. Una vulnerabilidad en Apollo Router hacía que la planificación de consultas con fragmentos con nombre profundamente anidados y reutilizados fuera prohibitivamente costosa, especialmente debido a que las optimizaciones internas se omitían con frecuencia. El planificador de consultas incluye una optimización que acelera significativamente la planificación de las selecciones GraphQL aplicables. Sin embargo, las consultas con fragmentos con nombre profundamente anidados y reutilizados pueden generar muchas selecciones donde esta optimización no aplica, lo que resulta en tiempos de planificación significativamente más largos. Dado que el planificador de consultas no impone un tiempo de espera, un pequeño número de estas consultas puede agotar el grupo de subprocesos del enrutador, dejándolo inoperativo. Esto podría provocar un consumo excesivo de recursos y denegación de servicio. Esto se ha solucionado en las versiones 1.61.2 y 2.1.1 de apollo-router.","source":"nvd"}],"published":"2025-04-07T18:56:30.000Z","modified":"2026-06-17T09:11:21.217Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"version":"< 1.61.2","status":"affected"},{"version":">= 2.0.0-alpha.0, < 2.1.1","status":"affected"}],"vendor":"apollographql","product":"router","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.61.2"}],"ecosystem":"crates.io","package":"apollo-router","purl":"pkg:cargo/apollo-router","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.0.0-alpha.0","status":"affected","fixed":"2.1.1"}],"ecosystem":"crates.io","package":"apollo-router","purl":"pkg:cargo/apollo-router","source":"ghsa"}],"references":[{"url":"https://github.com/apollographql/router/security/advisories/GHSA-94hh-jmq8-2fgp","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/apollographql/router/commit/ab6675a63174715ea6ff50881fc957831d4e9564","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/apollographql/router/commit/bba032e183b861348a466d3123c7137a1ae18952","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-32032","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/apollographql/router","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-04-08T14:27:15.384Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-32032","url":"https://www.cve.org/CVERecord?id=CVE-2025-32032","licence":"CVE Terms of Use","modified":"2025-04-08T14:52:25.565Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-94hh-jmq8-2fgp","url":"https://github.com/advisories/GHSA-94hh-jmq8-2fgp","licence":"CC-BY-4.0","modified":"2025-04-08T17:50:00.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-32032","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-32032","licence":"Public domain","modified":"2026-06-17T09:11:21.217Z"}],"updatedAt":"2026-11-25T22:58:56.170Z","epss":{"score":0.00596,"percentile":0.49897,"date":"2026-12-02T12:00:21.000Z"}}