CVE-2022-24666: swift-nio-http2 vulnerable to denial of service via invalid HTTP/2 HEADERS frame length
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.85074%
CWE
Published
5/18/2023
Updated
7/27/2023
KEV Status
No
Technology
Swift
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| github.com/apple/swift-nio-http2 | swift | >= 1.0.0, < 1.19.2 | 1.19.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from missing length validation when parsing HEADERS frames with priority data. The commit diff shows a guard statement was added to check if bytesToRead >=5 when priority flag is present. The affected code path is in HTTP2FrameParser.swift where headers payload parsing occurs. The tests added in the commit specifically target this scenario by sending frames with priority flags and insufficient lengths, confirming the vulnerable code path.