CVE-2022-39294

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-39294
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-39294.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-39294
Aliases
Published
2022-10-31T19:15:10Z
Modified
2024-05-14T11:33:20.132965Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
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. 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.

References

Affected packages

Git / github.com/conduit-rust/conduit-hyper

Affected ranges

Type
GIT
Repo
https://github.com/conduit-rust/conduit-hyper
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v0.*

v0.1.0
v0.1.1
v0.1.2
v0.1.3
v0.2.0
v0.2.0-alpha.1
v0.2.0-alpha.2
v0.2.0-alpha.3
v0.2.0-alpha.4
v0.3.0
v0.3.0-alpha.0
v0.3.0-alpha.1
v0.3.0-alpha.2
v0.3.0-alpha.3
v0.3.0-alpha.4
v0.3.0-alpha.5
v0.3.0-alpha.6
v0.3.0-alpha.7
v0.4.0
v0.4.1