CVE-2022-24668
CVE-2022-24668 is a high-severity vulnerability in Apple Swiftnio Http/2 with a CVSS 3.x base score of 7.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-241.
Key facts
- Severity: High (CVSS 3.x base score 7.5)
- CVSS v2: 5.0
- EPSS exploit prediction: 1% (62nd percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-241
- Affected product: Apple Swiftnio Http/2
- Published:
- Last modified:
Description
A program using swift-nio-http2 is vulnerable to a denial of service attack caused by a network peer sending ALTSVC or ORIGIN frames. This attack affects all swift-nio-http2 versions from 1.0.0 to 1.19.1. This vulnerability is caused by a logical error after frame parsing but before frame handling. ORIGIN and ALTSVC frames are not currently supported by swift-nio-http2, and should be ignored. However, one code path that encounters them has a deliberate trap instead. This was left behind from the original development process and was never removed. Sending an ALTSVC or ORIGIN frame 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 one of these frames. 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 these 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. This is a controlled, intentional crash. 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.
Frequently asked questions
- What is CVE-2022-24668?
- A program using swift-nio-http2 is vulnerable to a denial of service attack caused by a network peer sending ALTSVC or ORIGIN frames. This attack affects all swift-nio-http2 versions from 1.0.0 to 1.19.1. This vulnerability is caused by a logical error after frame parsing but before frame handling. ORIGIN and ALTSVC frames are not currently supported by swift-nio-http2, and should be ignored. However, one code path that encounters them has a deliberate trap instead. This was left behind from the original development process and was never removed. Sending an ALTSVC or ORIGIN frame 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 one of these frames. 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 these 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. This is a controlled, intentional crash. 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.
- How severe is CVE-2022-24668?
- CVE-2022-24668 has a CVSS 3.x base score of 7.5, rated high severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is none, integrity none, and availability high.
- Is CVE-2022-24668 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (62nd percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2022-24668?
- CVE-2022-24668 affects Apple Swiftnio Http/2. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2022-24668?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- When was CVE-2022-24668 published?
- CVE-2022-24668 was published on 2022-02-09 and last updated on 2026-06-17.
References
Affected products (1)
- cpe:2.3:a:apple:swiftnio_http\/2:*:*:*:*:*:swift:*:*
More vulnerabilities in Apple Swiftnio Http/2
- CVE-2023-44487 — High (CVSS 7.5): The HTTP/2 protocol allows a denial of service (server resource consumption) because request cancellation can reset…
- CVE-2022-0618 — High (CVSS 7.5): A program using swift-nio-http2 is vulnerable to a denial of service attack, caused by a network peer sending a…
- CVE-2022-24667 — High (CVSS 7.5): A program using swift-nio-http2 is vulnerable to a denial of service attack, caused by a network peer sending a…
- CVE-2022-24666 — High (CVSS 7.5): A program using swift-nio-http2 is vulnerable to a denial of service attack, caused by a network peer sending a…
- CVE-2026-28898 — Medium (CVSS 5.3): swift-nio-http2's HTTP/2-to-HTTP/1.1 codec did not validate pseudo-header values for control characters before placing…
All CVEs affecting Apple Swiftnio Http/2 →
Other CWE-241 vulnerabilities
- CVE-2021-40116 — High (CVSS 8.6): Multiple Cisco products are affected by a vulnerability in Snort rules that could allow an unauthenticated, remote…
- CVE-2022-39064 — High (CVSS 8.1): An attacker sending a single malformed IEEE 802.15.4 (Zigbee) frame makes the TRÅDFRI bulb blink, and if they replay…
- CVE-2025-63548 — High (CVSS 7.5): An issue in Eprosima Micro-XREC-DDS Agent v.3.0.1 allows a remote attacker to cause a denial of service via a packet…
- CVE-2025-2268 — High (CVSS 7.5): The HP LaserJet MFP M232-M237 Printer Series may be vulnerable to a denial of service attack when a specially crafted…
- CVE-2022-3029 — High (CVSS 7.5): In NLnet Labs Routinator 0.9.0 up to and including 0.11.2, due to a mistake in error handling, data in RRDP snapshot…
- CVE-2026-47110 — Medium (CVSS 6.5): Tiptap for PHP before version 2.1.1 contains an input validation vulnerability that allows authenticated attackers to…