GHSA-GR6H-4WPF-XP52
Stack overflow (DoS) in query planner via duplicate `@defer` labels
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-GR6H-4WPF-XP52 divulgada · CVSS 7.5 (GitHub) | |
| Remediación | Parche 2.10.5 | apollo-router · 0 d desde divulgación | |
| Remediación | Parche 2.16.1 | apollo-router · 0 d desde divulgación | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
### Impact
This is a denial-of-service vulnerability. It does not permit unauthorized access to data, does not allow modification of data, and does not permit code execution.
When an operation contains two nested `@defer` inline fragments sharing an identical `label` value, the query planner enters unbounded recursion, resulting in a stack overflow and abnormal termination of the affected process.
Any party capable of submitting a GraphQL operation to a supergraph served by an affected version of Apollo Router with `@defer` enabled (`enable_defer`, which is enabled by default) may be able to trigger this condition. No privileges beyond the ability to submit GraphQL operations to the endpoint are required. If the endpoint permits unauthenticated access, the condition can be triggered without authentication. The result is termination of the Router process handling the request, which may disrupt service availability for that instance until it is restarted or otherwise recovers, consistent with the affected deployment's fault-tolerance configuration.
No evidence of exploitation in the wild is known to Apollo at the time of publication. This advisory is issued as a precautionary disclosure following internal discovery.
Patches
This vulnerability has been patched in two release lines of Apollo Router:
- v2.16.1 and later (latest release line and current LTS)
- v2.10.5 and later, for users on the v2.10 LTS release line, for which the end of support is September 2026
Users on Router versions between v2.10 and v2.16 — specifically v2.11 through v2.15 — are not covered by a patch release and remain affected. Apollo recommends that users on any affected version either upgrade to v2.16.1+ or move to the v2.10 LTS line at v2.10.5+, whichever is more practical for their environment. Apollo recommends that all users of affected versions upgrade at their earliest opportunity.
### Workarounds
Users who are unable to upgrade immediately may mitigate this vulnerability by disabling `@defer` support entirely. In the router's YAML configuration, under the `supergraph` key:
supergraph:
defer_support: falseMore information is available https://www.apollographql.com/docs/graphos/routing/operations/defer#disabling-defer.
This configuration change disables all `@defer`-based incremental delivery functionality, including legitimate use, and should be treated as an interim measure pending upgrade rather than a permanent remediation.
### References
- Apollo Router `@defer` directive support documentation: https://www.apollographql.com/docs/graphos/routing/operations/defer
Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
crates.ioapollo-router |
Corregida | 2.10.5, 2.16.1 | 0 d · 0 d | 2.19.0 no afectada |
2.10.52.16.1Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/apollographql/router/security/advisories/GHSA-gr6h-4wpf-xp52Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
