# CVE-2024-32971: Defect in query plan cache may cause incorrect operations to be executed in Apollo Router

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.1
- **CVSS:** 9.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.01% (percentile 62, 2026-11-26)
- **CWE:** CWE-670, CWE-440
- **Aliases:** GHSA-q9p4-hw9m-fj2v
- **Published:** 2024-05-02T06:43:27.646Z
- **Modified:** 2026-09-10T03:50:14.171Z

## Who should check

- Projects that depend on crates.io package apollo-router (\>= 1.44.0, \< 1.45.1)
- Anyone running apollographql router \>=1.44.0, \<1.45.1

## Description

Apollo Router is a configurable, graph router written in Rust to run a federated supergraph that uses Apollo Federation 2. The affected versions of Apollo Router contain a bug that in limited circumstances, could lead to unexpected operations being executed which can result in unintended data or effects. This only affects Router instances configured to use distributed query plan caching. The root cause of this defect is a bug in Apollo Router’s cache retrieval logic: When this defect is present and distributed query planning caching is enabled, asking the Router to execute an operation (whether it is a query, a mutation, or a subscription) may result in an unexpected variation of that operation being executed or the generation of unexpected errors. The issue stems from inadvertently executing a modified version of a previously executed operation, whose query plan is stored in the underlying cache (specifically, Redis). Depending on the type of the operation, the result may vary. For a query, results may be fetched that don’t match what was requested (e.g., rather than running \`fetchUsers(type: ENTERPRISE)\` the Router may run \`fetchUsers(type: TRIAL)\`. For a mutation, this may result in incorrect mutations being sent to underlying subgraph servers (e.g., rather than sending \`deleteUser(id: 10)\` to a subgraph, the Router may run \`deleteUser(id: 12)\`. Users who are using distributed query plan caching, are advised to either upgrade to version 1.45.1 or above or downgrade to version 1.43.2 of the Apollo Router. Apollo Router versions 1.44.0 or 1.45.0 are not recommended for use and have been withdrawn. Users unable to upgrade can disable distributed query plan caching to mitigate this issue.

## Affected and fixed versions

- crates.io `apollo-router`: affected \>= 1.44.0, \< 1.45.1; fixed 1.45.1 (osv)
- apollographql router: \>=1.44.0, \<1.45.1 (cvelist)

## Mitigation

- Upgrade apollo-router to 1.45.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-32971. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-32971.md
Affected: apollo-router >= 1.44.0, < 1.45.1
Fixed in: 1.45.1

Steps:
1. Search this machine and project for apollo-router (crates.io), apollographql router: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-32971 being exploited?

There is no confirmed exploitation: CVE-2024-32971 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.01% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-32971?

Critical: CVSS 9.1 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2024-32971?

apollo-router \>= 1.44.0, \< 1.45.1.

### Is there a fix for CVE-2024-32971?

Yes. Fixed in 1.45.1. Upgrade apollo-router to 1.45.1 or later.

### How do I check if I'm affected by CVE-2024-32971?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/apollographql/router/security/advisories/GHSA-q9p4-hw9m-fj2v>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-32971>
- patch: <https://github.com/apollographql/router/commit/ff9f666598cd17661880fe7fc6e9c9611316e529>
- other: <https://github.com/apollographql/router/releases/tag/v1.45.1>
- other: <https://www.apollographql.com/docs/router/configuration/distributed-caching/#distributed-query-plan-caching>
- other: <https://github.com/apollographql/router>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-32971>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-q9p4-hw9m-fj2v> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-32971> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-32971>
