CVE-2025-66418: Unbounded Decoder Chain

Directly creating decoders or decompressors from a split string without limiting the number of elements can lead to an unbounded decompression chain. This is a Denial of Service (DoS) vulnerability. Extract the split array, check its length against a safe maximum, and then instantiate the decoders.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2025-66418-unbounded-decoder-chain --engine opengrep

Description

Directly creating decoders or decompressors from a split string without limiting the number of elements can lead to an unbounded decompression chain. This is a Denial of Service (DoS) vulnerability. Extract the split array, check its length against a safe maximum, and then instantiate the decoders.