{"id":"CVE-2021-32714","aliases":["CVE-2021-32714","GHSA-5h46-h7hh-c6x9","RUSTSEC-2021-0079"],"related":[],"kind":"vulnerability","state":"published","title":"Integer Overflow in Chunked Transfer-Encoding","summary":"hyper is an HTTP library for Rust. In versions prior to 0.14.10, hyper's HTTP server and client code had a flaw that could trigger an integer overflow when decoding chunk sizes that are too big. This allows possible data loss, or if combined with an upstream HTTP proxy that allows chunk sizes larger than hyper does, can result in \"request smuggling\" or \"desync attacks.\" The vulnerability is patched in version 0.14.10. Two possible workarounds exist. One may reject requests manually that contain a `Transfer-Encoding` header or ensure any upstream proxy rejects `Transfer-Encoding` chunk sizes greater than what fits in 64-bit unsigned integers.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"hyper is an HTTP library for Rust. In versions prior to 0.14.10, hyper's HTTP server and client code had a flaw that could trigger an integer overflow when decoding chunk sizes that are too big. This allows possible data loss, or if combined with an upstream HTTP proxy that allows chunk sizes larger than hyper does, can result in \"request smuggling\" or \"desync attacks.\" The vulnerability is patched in version 0.14.10. Two possible workarounds exist. One may reject requests manually that contain a `Transfer-Encoding` header or ensure any upstream proxy rejects `Transfer-Encoding` chunk sizes greater than what fits in 64-bit unsigned integers.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nhyper's HTTP server and client code had a flaw that could trigger an integer overflow when decoding chunk sizes that are too big. This allows possible data loss, or if combined with an upstream HTTP proxy that allows chunk sizes larger than hyper does, can result in \"request smuggling\" or \"desync attacks\".\n\n### Vulnerability\n\nExample:\n\n```\nGET / HTTP/1.1\nHost: example.com\nTransfer-Encoding: chunked\n\nf0000000000000003\nabc\n0\n\n```\n\nhyper only reads the rightmost 64-bit integer as the chunk size. So it reads `f0000000000000003` as `3`. A loss of data can occur since hyper would then read only 3 bytes of the body. Additionally, an HTTP request smuggling vulnerability would occur if using a proxy which instead has prefix truncation in the chunk size, or that understands larger than 64-bit chunk sizes.\n\nRead more about desync attacks: https://portswigger.net/research/http-desync-attacks-request-smuggling-reborn\n\n### Impact\n\nTo determine if vulnerable to _data loss_, these things must be true:\n\n- **Using HTTP/1.1.** Since HTTP/2 does not use chunked encoding, it is not vulnerable.\n- **Using hyper as a server or client.** The body would be improperly truncated in either case.\n- **Users send requests or responses with chunk sizes greater than 18 exabytes**.\n\nTo determine if vulnerable to _desync attacks_, these things must be true:\n\n- **Using an upstream proxy that allows chunks sizes larger than 64-bit.** If the proxy rejects chunk sizes that are too large, that request won't be forwarded to hyper.\n\n### Patches\n\nWe have released the following patch versions:\n\n - v0.14.10 (to be released when this advisory is published)\n\n### Workarounds\n\nBesides upgrading hyper, you can take the following options:\n\n- Reject requests manually that contain a `Transfer-Encoding` header.\n- Ensure any upstream proxy rejects `Transfer-Encoding` chunk sizes greater than what fits in 64-bit unsigned integers.\n\n\n### Credits\nThis issue was initially reported by [Mattias Grenfeldt](https://grenfeldt.dev/) and Asta Olofsson.","format":"markdown","source":"ghsa"},{"lang":"en","text":"When decoding chunk sizes that are too large, `hyper`'s code would encounter an integer overflow. Depending on the situation,\nthis could lead to data loss from an incorrect total size, or in rarer cases, a request smuggling attack.\n\nTo be vulnerable, you must be using `hyper` for any HTTP/1 purpose, including as a client or server, and consumers must send\nrequests or responses that specify a chunk size greater than 18 exabytes. For a possible request smuggling attack to be possible,\nany upstream proxies must accept a chunk size greater than 64 bits.","format":"markdown","source":"rustsec"},{"lang":"es","text":"hyper es una biblioteca HTTP para Rust. En versiones anteriores a 0.14.10, el código del servidor y del cliente HTTP de hyper presentaba un fallo que podía desencadenar un desbordamiento de enteros cuando se descodifica tamaños de trozos demasiado grandes. Esto permite una posible pérdida de datos, o si es combinado con un proxy HTTP upstream que permite tamaños de chunk más grandes que hyper, puede resultar en \"request smuggling\" o \"desync attacks\". La vulnerabilidad está parcheada en la versión 0.14.10. Se presentan dos posibles soluciones. Uno puede rechazar manualmente las peticiones que contengan una cabecera \"Transfer-Encoding\" o asegurarse de que cualquier proxy upstream rechaza tamaños de trozos \"Transfer-Encoding\" superiores a los que caben en enteros sin signo de 64 bits","source":"nvd"}],"published":"2021-07-07T12:00:00.000Z","modified":"2026-10-12T18:00:02.671Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","score":9.1,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","score":9.1,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:P","score":6.4,"rating":"MEDIUM"}],"cwes":["CWE-190"],"affected":[{"ranges":[{"version":"< 0.14.10","status":"affected"}],"vendor":"hyperium","product":"hyper","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.14.10"}],"ecosystem":"crates.io","package":"hyper","purl":"pkg:cargo/hyper","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.14.10"}],"ecosystem":"crates.io","package":"hyper","purl":"pkg:cargo/hyper","source":"rustsec"},{"ranges":[{"status":"affected","fixed":"0.14.10"}],"vendor":"hyper","product":"hyper","cpe":"cpe:2.3:a:hyper:hyper:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://github.com/hyperium/hyper/security/advisories/GHSA-5h46-h7hh-c6x9","tags":["exploit","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32714","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/hyperium/hyper","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0079.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/hyper","tags":["package"],"sources":["rustsec"]},{"url":"https://github.com/hyperium/hyper/commit/efd9a9821fd2f1ae04b545094de76a435b62e70f","tags":["web"],"sources":["rustsec"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-32714","url":"https://www.cve.org/CVERecord?id=CVE-2021-32714","licence":"CVE Terms of Use","modified":"2024-08-03T23:25:31.083Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5h46-h7hh-c6x9","url":"https://github.com/advisories/GHSA-5h46-h7hh-c6x9","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:06.305Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2021-0079","url":"https://rustsec.org/advisories/RUSTSEC-2021-0079.html","licence":"CC0-1.0","modified":"2026-10-12T18:00:02.671Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-32714","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32714","licence":"Public domain","modified":"2026-06-17T03:53:28.940Z"}],"updatedAt":"2026-11-25T22:58:02.468Z","epss":{"score":0.01155,"percentile":0.67927,"date":"2026-12-01T12:00:22.000Z"}}