CVE-2026-28975
Published:June 12, 2026
Updated:August 27, 2026
When "NIOHTTPRequestDecompressor" is configured with ".ratio(N)", the decompression limit is enforced using the "Content-Length" header value from the incoming request rather than the actual number of compressed bytes received. Since "Content-Length" is attacker-controlled, a malicious client can supply an inflated value that causes the ratio check to always pass, effectively disabling the configured decompression limit. This allows an attacker to send a small, highly-compressed payload (a "gzip bomb") with a falsified "Content-Length" header to bypass the ratio-based protection entirely. The server will decompress the payload without limit, consuming unbounded memory and potentially causing denial of service. For example, a gzip payload containing highly repetitive data can achieve amplification ratios of several hundred to one. Under ".ratio(10)" such a payload should be rejected, but if the attacker sets "Content-Length" to match the decompressed size, the check evaluates "decompressed > decompressed * 10" which is always false, and the payload is accepted without error. Across repeated requests, this allows sustained memory amplification far exceeding the configured limits with no error raised.
Affected Packages
github.com/apple/swift-nio-extras (SWIFT):
Affected version(s) >=0.1.0 <1.34.1Fix Suggestion:
Update to version 1.34.1Related Resources (2)
Do you need more information?
Contact UsCVSS v4
Base Score:
6.9
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
LOW
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
LOW