# CVE-2022-24666: A program using swift-nio-http2 is vulnerable to a denial of service attack, caused by a network peer sending a special…

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.79% (percentile 79, 2026-11-26)
- **CWE:** CWE-130
- **Published:** 2022-02-09T22:05:16.000Z
- **Modified:** 2026-06-17T04:32:15.237Z

## Who should check

- Anyone running Swift Project SwiftNIO HTTP2 \>= 1.0.0, \< unspecified; \>= unspecified, \<= 1.19.1

## 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 attack affects all swift-nio-http2 versions from 1.0.0 to 1.19.1. This vulnerability is caused by a logical error when parsing a HTTP/2 HEADERS frame where the frame contains priority 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 with HTTP/2 priority 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 and fixed versions

- Swift Project SwiftNIO HTTP2: \>= 1.0.0, \< unspecified; \>= unspecified, \<= 1.19.1 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-24666. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-24666.md
Affected: Swift Project SwiftNIO HTTP2 >= 1.0.0, < unspecified; >= unspecified, <= 1.19.1
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for Swift Project SwiftNIO HTTP2: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-24666 being exploited?

There is no confirmed exploitation: CVE-2022-24666 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.79% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-24666?

High: CVSS 7.5 (v3.1, scored by NVD). Remote, no login needed.

### Which versions are affected by CVE-2022-24666?

Swift Project SwiftNIO HTTP2 \>= 1.0.0, \< unspecified; \>= unspecified, \<= 1.19.1.

### Is there a fix for CVE-2022-24666?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-24666?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/apple/swift-nio-http2/security/advisories/GHSA-ccw9-q5h2-8c2w>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-24666>

HTML: <https://flawdb.com/CVE-2022-24666> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-24666>
