{"id":"CVE-2022-39294","summary":"(DoS) Denial of Service from unchecked request length in conduit-hyper","details":"conduit-hyper integrates a conduit application with the hyper server. Prior to version 0.4.2, `conduit-hyper` did not check any limit on a request's length before calling [`hyper::body::to_bytes`](https://docs.rs/hyper/latest/hyper/body/fn.to_bytes.html). An attacker could send a malicious request with an abnormally large `Content-Length`, which could lead to a panic if memory allocation failed for that request. In version 0.4.2, `conduit-hyper` sets an internal limit of 128 MiB per request, otherwise returning status 400 (\"Bad Request\"). This crate is part of the implementation of Rust's [crates.io](https://crates.io/), but that service is not affected due to its existing cloud infrastructure, which already drops such malicious requests. Even with the new limit in place, `conduit-hyper` is not recommended for production use, nor to directly serve the public Internet.","aliases":["GHSA-9398-5ghf-7pr6","RUSTSEC-2022-0066"],"modified":"2026-08-12T03:51:12.363876199Z","published":"2022-10-31T00:00:00Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-400"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/39xxx/CVE-2022-39294.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/39xxx/CVE-2022-39294.json"},{"type":"ADVISORY","url":"https://github.com/conduit-rust/conduit-hyper/security/advisories/GHSA-9398-5ghf-7pr6"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39294"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/conduit-rust/conduit-hyper","events":[{"introduced":"83cc0dd046bc69bd5963d28565d1f824262d8001"},{"fixed":"ceba64508b4d44cd13578610f02245c0eb7fea70"}],"database_specific":{"source":"AFFECTED_FIELD","extracted_events":[{"introduced":"0.2.0-alpha.3"},{"fixed":"0.4.2"}]}}],"versions":["0.2.0-NA","v0.4.1","v0.4.0","v0.3.0","v0.3.0-alpha.7","v0.3.0-alpha.5","v0.3.0-alpha.6","v0.3.0-alpha.4","v0.3.0-alpha.3","v0.3.0-alpha.2","v0.3.0-alpha.1","v0.3.0-alpha.0","v0.2.0","v0.2.0-alpha.4","v0.2.0-alpha.3"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-39294.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}