CVE-2022-3215 (CNNVD-202209-2913)
中文标题:
swift-nio-http2 注入漏洞
英文标题:
NIOHTTP1 and projects using it for generating HTTP responses can be subject to a HTTP Response Injec...
漏洞描述
中文描述:
swift-nio-http2是一个 SwiftPM 项目,可以非常简单地构建和测试。 swift-nio-http2 2.41.2之前版本存在安全漏洞,该漏洞源于NIOHTTP1生成HTTP响应的项目可能会受到HTTP响应注入攻击。此功能允许用户通过注入完全错误的响应或其他新标头来解决安全标头和HTTP/1.1 框架标头,注入的错误响应也可能被视为对后续请求的响应,这可能导致XSS、缓存中毒和其他缺陷。
英文描述:
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.
CWE类型:
标签:
受影响产品
| 厂商 | 产品 | 版本 | 版本范围 | 平台 | CPE |
|---|---|---|---|---|---|
| Swift Project | SwiftNIO | - | ≤ 2.41.2 | - |
cpe:2.3:a:swift_project:swiftnio:*:*:*:*:*:*:*:*
|
| apple | swiftnio | * | - | - |
cpe:2.3:a:apple:swiftnio:*:*:*:*:*:*:*:*
|
解决方案
中文解决方案:
英文解决方案:
临时解决方案:
参考链接
cve.org
CVSS评分详情
3.1 (adp)
HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
时间信息
利用信息
数据源详情
| 数据源 | 记录ID | 版本 | 提取时间 |
|---|---|---|---|
| CVE | cve_CVE-2022-3215 |
2025-11-11 15:21:34 | 2025-11-11 07:37:33 |
| NVD | nvd_CVE-2022-3215 |
2025-11-11 14:58:25 | 2025-11-11 07:45:47 |
| CNNVD | cnnvd_CNNVD-202209-2913 |
2025-11-11 15:11:01 | 2025-11-11 07:57:33 |
版本与语言
安全公告
变更历史
查看详细变更
- vulnerability_type: 未提取 -> 注入
- cnnvd_id: 未提取 -> CNNVD-202209-2913
- data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
查看详细变更
- affected_products_count: 1 -> 2
- data_sources: ['cve'] -> ['cve', 'nvd']