CVE-2024-32884: Rust Winnow Parser Panic Dos

Calling `.expect()` or `.unwrap()` on the result of a parser combinator method like `parse_next()` or `parse_peek()` can cause a panic on untrusted input, leading to a Denial of Service. Parser combinators such as `winnow` may return errors on malformed inputs (e.g., to break out of zero-byte consumption infinite loops). Propagate errors gracefully using the

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Rust
greprules fetch cve-2024-32884-rust-winnow-parser-panic-dos --engine opengrep

Description

Calling `.expect()` or `.unwrap()` on the result of a parser combinator method like `parse_next()` or `parse_peek()` can cause a panic on untrusted input, leading to a Denial of Service. Parser combinators such as `winnow` may return errors on malformed inputs (e.g., to break out of zero-byte consumption infinite loops). Propagate errors gracefully using the