Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
Vulnerability Details :

CVE-2024-32971

Summary
Assigner-GitHub_M
Assigner Org ID-a0819718-46f1-4df5-94e2-005712e83aaa
Published At-02 May, 2024 | 06:43
Updated At-02 Aug, 2024 | 02:27
Rejected At-
Credits

Defect in query plan cache may cause incorrect operations to be executed in Apollo Router

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.

Vendors
-
Not available
Products
-
Metrics (CVSS)
VersionBase scoreBase severityVector
Weaknesses
Attack Patterns
Solution/Workaround
References
HyperlinkResource Type
EPSS History
Score
Latest Score
-
N/A
No data available for selected date range
Percentile
Latest Percentile
-
N/A
No data available for selected date range
Stakeholder-Specific Vulnerability Categorization (SSVC)
▼Common Vulnerabilities and Exposures (CVE)
cve.org
Assigner:GitHub_M
Assigner Org ID:a0819718-46f1-4df5-94e2-005712e83aaa
Published At:02 May, 2024 | 06:43
Updated At:02 Aug, 2024 | 02:27
Rejected At:
▼CVE Numbering Authority (CNA)
Defect in query plan cache may cause incorrect operations to be executed in Apollo Router

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 Products
Vendor
apollographql
Product
router
Versions
Affected
  • >=1.44.0, <1.45.1
Problem Types
TypeCWE IDDescription
CWECWE-670CWE-670: Always-Incorrect Control Flow Implementation
CWECWE-440CWE-440: Expected Behavior Violation
Type: CWE
CWE ID: CWE-670
Description: CWE-670: Always-Incorrect Control Flow Implementation
Type: CWE
CWE ID: CWE-440
Description: CWE-440: Expected Behavior Violation
Metrics
VersionBase scoreBase severityVector
3.19.1CRITICAL
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Version: 3.1
Base score: 9.1
Base severity: CRITICAL
Vector:
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://github.com/apollographql/router/security/advisories/GHSA-q9p4-hw9m-fj2v
x_refsource_CONFIRM
https://github.com/apollographql/router/commit/ff9f666598cd17661880fe7fc6e9c9611316e529
x_refsource_MISC
https://github.com/apollographql/router/releases/tag/v1.45.1
x_refsource_MISC
https://www.apollographql.com/docs/router/configuration/distributed-caching/#distributed-query-plan-caching
x_refsource_MISC
Hyperlink: https://github.com/apollographql/router/security/advisories/GHSA-q9p4-hw9m-fj2v
Resource:
x_refsource_CONFIRM
Hyperlink: https://github.com/apollographql/router/commit/ff9f666598cd17661880fe7fc6e9c9611316e529
Resource:
x_refsource_MISC
Hyperlink: https://github.com/apollographql/router/releases/tag/v1.45.1
Resource:
x_refsource_MISC
Hyperlink: https://www.apollographql.com/docs/router/configuration/distributed-caching/#distributed-query-plan-caching
Resource:
x_refsource_MISC
▼Authorized Data Publishers (ADP)
1. CISA ADP Vulnrichment
Affected Products
Vendor
apollographql
Product
apollo_router
CPEs
  • cpe:2.3:a:apollographql:apollo_router:*:*:*:*:*:*:*:*
Default Status
unknown
Versions
Affected
  • From 1.44.0 before 1.45.1 (custom)
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
2. CVE Program Container
Affected Products
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://github.com/apollographql/router/security/advisories/GHSA-q9p4-hw9m-fj2v
x_refsource_CONFIRM
x_transferred
https://github.com/apollographql/router/commit/ff9f666598cd17661880fe7fc6e9c9611316e529
x_refsource_MISC
x_transferred
https://github.com/apollographql/router/releases/tag/v1.45.1
x_refsource_MISC
x_transferred
https://www.apollographql.com/docs/router/configuration/distributed-caching/#distributed-query-plan-caching
x_refsource_MISC
x_transferred
Hyperlink: https://github.com/apollographql/router/security/advisories/GHSA-q9p4-hw9m-fj2v
Resource:
x_refsource_CONFIRM
x_transferred
Hyperlink: https://github.com/apollographql/router/commit/ff9f666598cd17661880fe7fc6e9c9611316e529
Resource:
x_refsource_MISC
x_transferred
Hyperlink: https://github.com/apollographql/router/releases/tag/v1.45.1
Resource:
x_refsource_MISC
x_transferred
Hyperlink: https://www.apollographql.com/docs/router/configuration/distributed-caching/#distributed-query-plan-caching
Resource:
x_refsource_MISC
x_transferred
Information is not available yet
▼National Vulnerability Database (NVD)
nvd.nist.gov
Source:security-advisories@github.com
Published At:02 May, 2024 | 07:15
Updated At:02 May, 2024 | 13:27

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.

CISA Catalog
Date AddedDue DateVulnerability NameRequired Action
N/A
Date Added: N/A
Due Date: N/A
Vulnerability Name: N/A
Required Action: N/A
Metrics
TypeVersionBase scoreBase severityVector
Secondary3.19.0CRITICAL
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Type: Secondary
Version: 3.1
Base score: 9.0
Base severity: CRITICAL
Vector:
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
CPE Matches

Weaknesses
CWE IDTypeSource
CWE-440Secondarysecurity-advisories@github.com
CWE-670Secondarysecurity-advisories@github.com
CWE ID: CWE-440
Type: Secondary
Source: security-advisories@github.com
CWE ID: CWE-670
Type: Secondary
Source: security-advisories@github.com
Evaluator Description

Evaluator Impact

Evaluator Solution

Vendor Statements

References
HyperlinkSourceResource
https://github.com/apollographql/router/commit/ff9f666598cd17661880fe7fc6e9c9611316e529security-advisories@github.com
N/A
https://github.com/apollographql/router/releases/tag/v1.45.1security-advisories@github.com
N/A
https://github.com/apollographql/router/security/advisories/GHSA-q9p4-hw9m-fj2vsecurity-advisories@github.com
N/A
https://www.apollographql.com/docs/router/configuration/distributed-caching/#distributed-query-plan-cachingsecurity-advisories@github.com
N/A
Hyperlink: https://github.com/apollographql/router/commit/ff9f666598cd17661880fe7fc6e9c9611316e529
Source: security-advisories@github.com
Resource: N/A
Hyperlink: https://github.com/apollographql/router/releases/tag/v1.45.1
Source: security-advisories@github.com
Resource: N/A
Hyperlink: https://github.com/apollographql/router/security/advisories/GHSA-q9p4-hw9m-fj2v
Source: security-advisories@github.com
Resource: N/A
Hyperlink: https://www.apollographql.com/docs/router/configuration/distributed-caching/#distributed-query-plan-caching
Source: security-advisories@github.com
Resource: N/A

Change History

0
Information is not available yet

Similar CVEs

0Records found

Details not found