Allocation of Resources Without Limits or Throttling Affecting apollo-router package, versions >=1.7.0 <1.52.1


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.08% (37th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-RUST-APOLLOROUTER-7840534
  • published 28 Aug 2024
  • disclosed 27 Aug 2024
  • credit Unknown

How to fix?

Upgrade apollo-router to version 1.52.1 or higher.

Overview

apollo-router is a configurable, high-performance routing runtime for Apollo Federation.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling due to the handling of request bodies in the RouterService layer. Note: Users are vulnerable only if they use External Coprocessing with specific configurations or Native Rust Plugins accessing the Router request body in the RouterService layer. Router customizations using Rhai scripts are not impacted.

Workaround

Users that are not able to upgrade to the fixed version can set the coprocessor.router.request.body configuration option to false. Note: Changing this configuration option will change the information sent to any coprocessors the user has configured and may impact functionality implemented by those coprocessors. For users using the Native Rust Plugin, update the plugin to either not accumulate the request body or enforce a maximum body size limit.

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
8.7 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    None
  • Integrity (VI)
    None
  • Availability (VA)
    High
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None