CVE-2026-34517: Unbounded Async Read Before Size Check

Reading an entire stream into memory via an unbounded async `read()` operation before enforcing length limits can lead to memory exhaustion and Denial of Service (DoS). An attacker can send excessively large payloads to bypass size boundaries because the bounds check occurs only after allocation. Instead, use chunked reading (e.g., `read_chunk()`) and valida

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-34517-unbounded-async-read-before-size-check --engine opengrep

Description

Reading an entire stream into memory via an unbounded async `read()` operation before enforcing length limits can lead to memory exhaustion and Denial of Service (DoS). An attacker can send excessively large payloads to bypass size boundaries because the bounds check occurs only after allocation. Instead, use chunked reading (e.g., `read_chunk()`) and valida