CVE-2022-3215 (CNNVD-202209-2913)

HIGH
中文标题:
swift-nio-http2 注入漏洞
英文标题:
NIOHTTP1 and projects using it for generating HTTP responses can be subject to a HTTP Response Injec...
CVSS分数: 7.5
发布时间: 2022-09-28 19:32:30
漏洞类型: 注入
状态: PUBLISHED
数据质量分数: 0.30
数据版本: v3
漏洞描述
中文描述:

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类型:
CWE-74 CWE-113
标签:
(暂无数据)
受影响产品
厂商 产品 版本 版本范围 平台 CPE
Swift Project SwiftNIO - ≤ 2.41.2 - cpe:2.3:a:swift_project:swiftnio:*:*:*:*:*:*:*:*
apple swiftnio * - - cpe:2.3:a:apple:swiftnio:*:*:*:*:*:*:*:*
解决方案
中文解决方案:
(暂无数据)
英文解决方案:
(暂无数据)
临时解决方案:
(暂无数据)
参考链接
无标题 x_refsource_MISC
cve.org
访问
CVSS评分详情
3.1 (adp)
HIGH
7.5
CVSS向量: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
机密性
NONE
完整性
HIGH
可用性
NONE
时间信息
发布时间:
2022-09-28 19:32:30
修改时间:
2025-05-20 20:02:25
创建时间:
2025-11-11 15:37:33
更新时间:
2025-11-11 15:57:33
利用信息
暂无可利用代码信息
数据源详情
数据源 记录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
版本与语言
当前版本: v3
主要语言: EN
支持语言:
EN ZH
安全公告
暂无安全公告信息
变更历史
v3 CNNVD
2025-11-11 15:57:33
vulnerability_type: 未提取 → 注入; cnnvd_id: 未提取 → CNNVD-202209-2913; data_sources: ['cve', 'nvd'] → ['cnnvd', 'cve', 'nvd']
查看详细变更
  • vulnerability_type: 未提取 -> 注入
  • cnnvd_id: 未提取 -> CNNVD-202209-2913
  • data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
v2 NVD
2025-11-11 15:45:47
affected_products_count: 1 → 2; data_sources: ['cve'] → ['cve', 'nvd']
查看详细变更
  • affected_products_count: 1 -> 2
  • data_sources: ['cve'] -> ['cve', 'nvd']