Data Amplification Affecting apollo-router package, versions <1.40.2-rc0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (11th 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 IDSNYK-RUST-APOLLOROUTER-6406555
  • published7 Mar 2024
  • disclosed6 Mar 2024
  • creditIvan Goncharov

Introduced: 6 Mar 2024

CVE-2024-28101  (opens in a new tab)
CWE-409  (opens in a new tab)

How to fix?

Upgrade apollo-router to version 1.40.2-rc0 or higher.

Overview

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

Affected versions of this package are vulnerable to Data Amplification due to the evaluation of the limits.http_max_request_bytes configuration option after decompressing the entirety of compressed HTTP payloads. If highly compressed payloads are received, this could lead to significant memory consumption as the payload expands.

Workaround

This vulnerability can be mitigated by implementing limits on HTTP body upload size at proxies or load balancers positioned in front of the Router fleet, such as Nginx, HAProxy, or cloud-native WAF services.

References

CVSS Scores

version 3.1