CVE-2022-3215

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-3215
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-3215.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-3215
Aliases
Published
2022-09-28T20:15:17Z
Modified
2024-05-30T03:35:38.171504Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/apple/swift-nio

Affected ranges

Type
GIT
Repo
https://github.com/apple/swift-nio
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

1.*

1.0.0
1.1.0
1.10.0
1.11.0
1.12.0
1.2.0
1.2.1
1.3.0
1.3.1
1.4.0
1.4.1
1.4.2
1.5.0
1.5.1
1.6.0
1.6.1
1.7.0
1.7.1
1.7.2
1.8.0
1.9.0

2.*

2.0.0
2.0.0-convergence.1
2.0.0-convergence.2
2.0.0-convergence.3
2.0.0-convergence.4
2.1.0
2.10.0
2.10.1
2.11.0
2.11.1
2.12.0
2.13.0
2.14.0
2.15.0
2.16.0
2.17.0
2.18.0
2.19.0
2.2.0
2.20.0
2.20.1
2.20.2
2.21.0
2.22.0
2.22.1
2.23.0
2.24.0
2.25.0
2.25.1
2.26.0
2.27.0
2.28.0
2.29.0
2.3.0
2.4.0
2.5.0
2.5.1
2.6.0
2.6.1
2.7.0
2.7.1
2.8.0
2.9.0