CVE-2022-3215
CVE-2022-3215 is a high-severity vulnerability in Apple Swiftnio 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-74.
Key facts
- Severity: High (CVSS 3.x base score 7.5)
- EPSS exploit prediction: 1% (49th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-74
- Affected product: Apple Swiftnio
- Published:
- Last modified:
Description
NIOHTTP1 and projects using it for generating HTTP responses can be subject to a HTTP Response Injection attack. This occurs when a HTTP/1.1 server accepts user generated input from an incoming request and reflects it into a HTTP/1.1 response header in some form. A malicious user can add newlines to their input (usually in encoded form) and "inject" those newlines into the returned HTTP response. This capability allows users to work around security headers and HTTP/1.1 framing headers by injecting entirely false responses or other new headers. The injected false responses may also be treated as the response to subsequent requests, which can lead to XSS, cache poisoning, and a number of other flaws. This issue was resolved by adding validation to the HTTPHeaders type, ensuring that there's no whitespace incorrectly present in the HTTP headers provided by users. As the existing API surface is non-failable, all invalid characters are replaced by linear whitespace.
Frequently asked questions
- What is CVE-2022-3215?
- NIOHTTP1 and projects using it for generating HTTP responses can be subject to a HTTP Response Injection attack. This occurs when a HTTP/1.1 server accepts user generated input from an incoming request and reflects it into a HTTP/1.1 response header in some form. A malicious user can add newlines to their input (usually in encoded form) and "inject" those newlines into the returned HTTP response. This capability allows users to work around security headers and HTTP/1.1 framing headers by injecting entirely false responses or other new headers. The injected false responses may also be treated as the response to subsequent requests, which can lead to XSS, cache poisoning, and a number of other flaws. This issue was resolved by adding validation to the HTTPHeaders type, ensuring that there's no whitespace incorrectly present in the HTTP headers provided by users. As the existing API surface is non-failable, all invalid characters are replaced by linear whitespace.
- How severe is CVE-2022-3215?
- CVE-2022-3215 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 high, and availability none.
- Is CVE-2022-3215 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (49th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2022-3215?
- CVE-2022-3215 affects Apple Swiftnio. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2022-3215?
- 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-3215 published?
- CVE-2022-3215 was published on 2022-09-28 and last updated on 2026-06-17.
References
Affected products (1)
- cpe:2.3:a:apple:swiftnio:*:*:*:*:*:*:*:*
More vulnerabilities in Apple Swiftnio
- CVE-2018-4281 — Critical (CVSS 9.8): In SwiftNIO before 1.8.0, a buffer overflow was addressed with improved size validation.
- CVE-2019-9518 — High (CVSS 7.5): Some HTTP/2 implementations are vulnerable to a flood of empty frames, potentially leading to a denial of service. The…
- CVE-2019-9517 — High (CVSS 7.5): Some HTTP/2 implementations are vulnerable to unconstrained interal data buffering, potentially leading to a denial of…
- CVE-2019-9515 — High (CVSS 7.5): Some HTTP/2 implementations are vulnerable to a settings flood, potentially leading to a denial of service. The…
- CVE-2019-9514 — High (CVSS 7.5): Some HTTP/2 implementations are vulnerable to a reset flood, potentially leading to a denial of service. The attacker…
- CVE-2019-9513 — High (CVSS 7.5): Some HTTP/2 implementations are vulnerable to resource loops, potentially leading to a denial of service. The attacker…
All CVEs affecting Apple Swiftnio →
Other CWE-74 (Improper Neutralization of Special Elements (Injection)) vulnerabilities
- CVE-2026-105135 — Critical (CVSS 10.0): A vulnerability has been found in InternLM MindSearch 0.1.0. This issue affects the function ExecutionAction.run of the…
- CVE-2026-61732 — Critical (CVSS 10.0): Decepticon is an autonomous hacking agent for red teams. Versions prior to 1.1.17 wrap web crawl results — the output…
- CVE-2026-94097 — Critical (CVSS 10.0): A vulnerability was determined in Netcore NBR200V2 1.3.241127.071246. This affects an unknown part of the file…
- CVE-2026-20130 — Critical (CVSS 10.0): As part of Cisco's ongoing commitment to proactive security and product quality, the Cisco Identity Services Engine…
- CVE-2026-82971 — Critical (CVSS 10.0): A vulnerability was determined in QVidium Opera11 3.3.2a26-Ax4x-opera11. This affects an unknown part of the file…
- CVE-2026-54159 — Critical (CVSS 10.0): PrestaShop ps_facetedsearch is a module that adds layered navigation filters. From 3.0.0 until 4.0.4, the…
Browse all CWE-74 (Improper Neutralization of Special Elements (Injection)) vulnerabilities →