CVE-2022-39294
Description
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`. 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, 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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
conduit-hypercrates.io | >= 0.2.0-alpha.3, < 0.4.2 | 0.4.2 |
Affected products
6cpe:2.3:a:conduit-hyper_project:conduit-hyper:*:*:*:*:*:rust:*:*+ 3 more
- cpe:2.3:a:conduit-hyper_project:conduit-hyper:*:*:*:*:*:rust:*:*range: >0.2.0,<0.4.2
- cpe:2.3:a:conduit-hyper_project:conduit-hyper:0.2.0:-:*:*:*:rust:*:*
- cpe:2.3:a:conduit-hyper_project:conduit-hyper:0.2.0:alpha3:*:*:*:rust:*:*
- cpe:2.3:a:conduit-hyper_project:conduit-hyper:0.2.0:alpha4:*:*:*:rust:*:*
- conduit-rust/conduit-hyperv5Range: >= 0.2.0-alpha.3, < 0.4.2
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-9398-5ghf-7pr6ghsaADVISORY
- github.com/conduit-rust/conduit-hyper/security/advisories/GHSA-9398-5ghf-7pr6nvdThird Party AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2022-39294ghsaADVISORY
- github.com/conduit-rust/conduit-hyper/commit/4d225a53206505d39438ec6694e15f49c038baffghsaWEB
- rustsec.org/advisories/RUSTSEC-2022-0066.htmlghsaWEB
News mentions
0No linked articles in our index yet.