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% (42nd 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% (42nd 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-25586 — Critical (CVSS 10.0): SandboxJS is a JavaScript sandboxing library. Prior to 0.8.29, a sandbox escape is possible by shadowing hasOwnProperty…
- CVE-2026-25520 — Critical (CVSS 10.0): SandboxJS is a JavaScript sandboxing library. Prior to 0.8.29, The return values of functions aren't wrapped.…
- CVE-2025-20265 — Critical (CVSS 10.0): A vulnerability in the RADIUS subsystem implementation of Cisco Secure Firewall Management Center (FMC) Software could…
- CVE-2025-20337 — Critical (CVSS 10.0): A vulnerability in a specific API of Cisco ISE and Cisco ISE-PIC could allow an unauthenticated, remote attacker to…
- CVE-2025-20281 — Critical (CVSS 10.0): A vulnerability in a specific API of Cisco ISE and Cisco ISE-PIC could allow an unauthenticated, remote attacker to…
- CVE-2024-42472 — Critical (CVSS 10.0): Flatpak is a Linux application sandboxing and distribution framework. Prior to versions 1.14.0 and 1.15.10, a malicious…
Browse all CWE-74 (Improper Neutralization of Special Elements (Injection)) vulnerabilities →