GHSA-cgqf-3cq5-wvcj

Suggest an improvement
Source
https://github.com/advisories/GHSA-cgqf-3cq5-wvcj
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/03/GHSA-cgqf-3cq5-wvcj/GHSA-cgqf-3cq5-wvcj.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-cgqf-3cq5-wvcj
Aliases
Published
2024-03-06T18:24:17Z
Modified
2024-03-06T18:43:17.460111Z
Summary
Apollo Router's Compressed Payloads do not respect HTTP Payload Limits
Details

Impact

The Apollo Router is a configurable, high-performance graph router written in Rust to run a federated supergraph that uses Apollo Federation. Affected versions are subject to a Denial-of-Service (DoS) type vulnerability. When receiving compressed HTTP payloads, affected versions of the Router evaluate the limits.http_max_request_bytes configuration option after the entirety of the compressed payload is decompressed. If affected versions of the Router receive highly compressed payloads, this could result in significant memory consumption while the compressed payload is expanded.

Patches

Router version 1.40.2 has a fix for the vulnerability.

Workarounds

If you are unable to upgrade, you may be able to implement mitigations at proxies or load balancers positioned in front of your Router fleet (e.g. Nginx, HAProxy, or cloud-native WAF services) by creating limits on HTTP body upload size.

References

Affected packages

crates.io / apollo-router

Package

Name
apollo-router
View open source insights on deps.dev
Purl
pkg:cargo/apollo-router

Affected ranges

Type
SEMVER
Events
Introduced
0.9.5
Fixed
1.40.2