製品・ソフトウェアに関する情報
Rust 用 hyper における HTTP リクエストスマグリングに関する脆弱性
Title Rust 用 hyper における HTTP リクエストスマグリングに関する脆弱性
Summary

Rust (crates.io) 用 hyper には、HTTP リクエストスマグリングに関する脆弱性が存在します。

Possible impacts 情報を取得される、情報を改ざんされる、およびサービス運用妨害 (DoS) 状態にされる可能性があります。
Solution

ベンダより正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date Feb. 5, 2021, midnight
Registration Date Nov. 9, 2021, 6:04 p.m.
Last Update Nov. 9, 2021, 6:04 p.m.
CVSS3.0 : 重要
Score 8.1
Vector CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS2.0 : 警告
Score 6.8
Vector AV:N/AC:M/Au:N/C:P/I:P/A:P
Affected System
hyper
hyper 0.12.0 以上 0.13.10 未満
hyper 0.14.3 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
1 [2021年11月09日]
  掲載
Nov. 9, 2021, 6:04 p.m.

NVD Vulnerability Information
CVE-2021-21299
Summary

hyper is an open-source HTTP library for Rust (crates.io). In hyper from version 0.12.0 and before versions 0.13.10 and 0.14.3 there is a vulnerability that can enable a request smuggling attack. The HTTP server code had a flaw that incorrectly understands some requests with multiple transfer-encoding headers to have a chunked payload, when it should have been rejected as illegal. This combined with an upstream HTTP proxy that understands the request payload boundary differently can result in "request smuggling" or "desync attacks". To determine if vulnerable, all these things must be true: 1) Using hyper as an HTTP server (the client is not affected), 2) Using HTTP/1.1 (HTTP/2 does not use transfer-encoding), 3) Using a vulnerable HTTP proxy upstream to hyper. If an upstream proxy correctly rejects the illegal transfer-encoding headers, the desync attack cannot succeed. If there is no proxy upstream of hyper, hyper cannot start the desync attack, as the client will repair the headers before forwarding. This is fixed in versions 0.14.3 and 0.13.10. As a workaround one can take the following options: 1) Reject requests that contain a `transfer-encoding` header, 2) Ensure any upstream proxy handles `transfer-encoding` correctly.

Publication Date Feb. 12, 2021, 3:15 a.m.
Registration Date Feb. 12, 2021, 10:02 a.m.
Last Update Nov. 21, 2024, 2:47 p.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:hyper:hyper:*:*:*:*:*:rust:*:* 0.14.0 0.14.3
cpe:2.3:a:hyper:hyper:*:*:*:*:*:rust:*:* 0.12.0 0.13.10
Related information, measures and tools
Common Vulnerabilities List