RUSTSEC-2023-0085

Source
https://rustsec.org/advisories/RUSTSEC-2023-0085
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2023-0085.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2023-0085
Aliases
Published
2023-09-15T12:00:00Z
Modified
2024-04-11T16:41:43.815805Z
Summary
HPACK decoder panics on invalid input
Details

Due to insufficient checking of input data, decoding certain data sequences can lead to Decoder::decode panicking rather than returning an error.

Example code that triggers this vulnerability looks like this:

use hpack::Decoder;

pub fn main() {
  let input = &[0x3f];
  let mut decoder = Decoder::new();
  let _ = decoder.decode(input);
}

hpack is unmaintained. A crate with the panics fixed has been published as hpack-patched.

Also consider using fluke-hpack or httlib-huffman as an alternative.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / hpack

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [],
        "arch": []
    }
}

Database specific

{
    "cvss": null,
    "informational": null,
    "categories": [
        "denial-of-service"
    ]
}