Advisory

GHSA-cgqf-3cq5-wvcj

Also known as: CVE-2024-28101

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-03-06 18:24 UTC
Modified
2026-02-17 20:10 UTC

Affected packages and fixes

apollo-router

crates.io · All systems

Affected

  • introduced 0.9.5, fixed 1.40.2 (semver)

Fixed versions

1.40.2

Fix

  • Fixed version 1.40.2
    cargo update -p apollo-router --precise 1.40.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences