CVE-2026-33174: Activestorage Unbounded Byte Ranges Dos

Missing size limit validation for requested HTTP byte ranges can lead to memory exhaustion and Denial of Service (DoS). An attacker can request an unbounded range (e.g., `bytes=0-`) which gets fully loaded into memory. Validate the total aggregated size of the byte ranges before processing them.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Ruby
greprules fetch cve-2026-33174-activestorage-unbounded-byte-ranges-dos --engine opengrep

Description

Missing size limit validation for requested HTTP byte ranges can lead to memory exhaustion and Denial of Service (DoS). An attacker can request an unbounded range (e.g., `bytes=0-`) which gets fully loaded into memory. Validate the total aggregated size of the byte ranges before processing them.