cve.bz

CVE-2022-3252 apple swift-nio-extras: Infinite Loop

7.5 highEPSS 0.9%Fix available

High (7.5) in apple swift-nio-extras. EPSS 0.9% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/apple/swift-nio-extras 1.10.3, 1.14.0, 1.9.2.

On this page
Improper detection of complete HTTP body decompression SwiftNIO Extras provides a pair of helpers for transparently decompressing received HTTP request or response bodies. These two objects (HTTPRequestDecompressor and HTTPResponseDecompressor) both failed to detect when the decompressed body was considered complete. If trailing junk data was appended to the HTTP message body, the code would repeatedly attempt to decompress this data and fail. This would lead to an infinite loop making no forward progress, leading to livelock of the system and denial-of-service. This issue can be triggered by any attacker capable of sending a compressed HTTP message. Most commonly this is HTTP servers, as compressed HTTP messages cannot be negotiated for HTTP requests, but it is possible that users have configured decompression for HTTP requests as well. The attack is low effort, and likely to be reached without requiring any privilege or system access. The impact on availability is high: the process immediately becomes unavailable but does not immediately crash, meaning that it is possible for the process to remain in this state until an administrator intervenes or an automated circuit breaker fires. If left unchecked this issue will very slowly exhaust memory resources due to repeated buffer allocation, but the buffers are not written to and so it is possible that the processes will not terminate for quite some time. This risk can be mitigated by removing transparent HTTP message decompression. The issue is fixed by correctly detecting the termination of the compressed body as reported by zlib and refusing to decompress further data. The issue was found by Vojtech Rylko (https://github.com/vojtarylko) and reported publicly on GitHub.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.9% (unchanged from 0.9% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 59th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-835 Loop with Unreachable Exit Condition (Infinite Loop)
CWE-606 Unchecked Input for Loop Condition
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • github.com/apple/swift-nio-extras (SwiftURL): fixed in 1.14.0, 1.10.3, 1.9.2

Ask an AI about this CVE

Show the promptExplain CVE-2022-3252 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-3252?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-3252?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-3252 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Swift Project SwiftNIO Extrasbefore 1.14.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-773g-x274-8qmfSwiftURLgithub.com/apple/swift-nio-extras>=1.11.0 <1.14.01.14.0
GHSA-773g-x274-8qmfSwiftURLgithub.com/apple/swift-nio-extras>=1.10.0 <1.10.31.10.3
GHSA-773g-x274-8qmfSwiftURLgithub.com/apple/swift-nio-extras<1.9.21.9.2

References

Check your stackJSON