A program using swift-nio-http2 is vulnerable to a denial of service attack, caused by a network peer sending a specially crafted HTTP/2 frame
Published Mar 9, 2022
7.5
HIGHCVSS 3.1
EPSS 1.30%
Description
A program using swift-nio-http2 is vulnerable to a denial of service attack, caused by a network peer sending a specially crafted HTTP/2 frame. This vulnerability is caused by a logical error when parsing a HTTP/2 HEADERS or HTTP/2 PUSH_PROMISE frame where the frame contains padding information without any other data. This logical error caused confusion about the size of the frame, leading to a parsing error. This parsing error immediately crashes the entire process. Sending a HEADERS frame or PUSH_PROMISE frame with HTTP/2 padding information does not require any special permission, so any HTTP/2 connection peer may send such a frame. For clients, this means any server to which they connect may launch this attack. For servers, anyone they allow to connect to them may launch such an attack. The attack is low-effort: it takes very little resources to send an appropriately crafted frame. The impact on availability is high: receiving the frame immediately crashes the server, dropping all in-flight connections and causing the service to need to restart. It is straightforward for an attacker to repeatedly send appropriately crafted frames, so attackers require very few resources to achieve a substantial denial of service. The attack does not have any confidentiality or integrity risks in and of itself: swift-nio-http2 is parsing the frame in memory-safe code, so the crash is safe. However, sudden process crashes can lead to violations of invariants in services, so it is possible that this attack can be used to trigger an error condition that has confidentiality or integrity risks. The risk can be mitigated if untrusted peers can be prevented from communicating with the service. This mitigation is not available to many services. The issue is fixed by rewriting the parsing code to correctly handle the condition. The issue was found by automated fuzzing by oss-fuzz.
Affected products
-
- Version 1.0.0StatusaffectedConstraints<unspecified
- Version unspecifiedStatusaffectedConstraints<=1.19.2
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Swift Project | SwiftNIO HTTP2 | n/a |
|
- ≥ 1.0.0 · < 1.20.0
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
No CVSS v3.0 score for this CVE.
AV:N/AC:L/Au:N/C:N/I:N/A:C
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (13 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 1.30% (0.01299) | 69.37th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.25% (0.01248) | 65.38th | v5 (v2026.06.15) |
| Mar 29, 2025 | 1.45% (0.01447) | 68.82th | v4 (v2025.03.14) |
| Mar 17, 2025 | 0.38% (0.00384) | 57.56th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.25% (0.00254) | 65.81th | v3 (v2023.03.01) |
| Aug 20, 2023 | 0.18% (0.00179) | 54.37th | v3 (v2023.03.01) |
| Apr 11, 2023 | 0.13% (0.00126) | 45.68th | v3 (v2023.03.01) |
| Mar 16, 2023 | 0.09% (0.00088) | 36.16th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.07% (0.00074) | 30.13th | v3 (v2023.03.01) |
| Mar 6, 2023 | 0.89% (0.00885) | 27.89th | v2 (v2022.01.01) |
| Sep 10, 2022 | 0.89% (0.00885) | 26.24th | v2 (v2022.01.01) |
| Apr 1, 2022 | 0.89% (0.00885) | 24.24th | v2 (v2022.01.01) |
| Mar 10, 2022 | 0.89% (0.00885) | 11.33th | v2 (v2022.01.01) |
References (4)
- https://github.com/advisories/GHSA-q36x-r5x4-h4q6 Advisory
- https://github.com/apple/swift-nio-http2/commit/ac2a5afce3dbb6795b4f78ec3f19726dc28f5617
- https://github.com/apple/swift-nio-http2/security/advisories/GHSA-q36x-r5x4-h4q6 x_refsource_MISCThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2022-0618
| Link | Providers | Tags |
|---|---|---|
| https://github.com/advisories/GHSA-q36x-r5x4-h4q6 | Advisory | |
| https://github.com/apple/swift-nio-http2/commit/ac2a5afce3dbb6795b4f78ec3f19726dc28f5617 | ||
| https://github.com/apple/swift-nio-http2/security/advisories/GHSA-q36x-r5x4-h4q6 | x_refsource_MISCThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-0618 |
Change history (0)
No recorded changes yet.