llamaCVEVulnerability Intelligence
/
Advisory · GitHub · RubyGems · rack

GHSA-X8CG-FQ8G-MXFX

Rack's multipart byte range processing allows denial of service via excessive overlapping ranges

Parche disponible
Descargar PNG JSON
CVSS
—
medium
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche3 versionesPrimer parche a -1 d de la divulgación
Exposición231 dDesde la divulgación, 2 abr 2026, 2:07 p. m.
Detección228 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Parche 2.2.23 +2
Monitoreo
Detectada
1 abr 26
2 abr 26
10 sept 26
17 nov 26
20 nov 26
1 abr 26
29 may 26
27 jul 26
23 sept 26
20 nov 26
FechaFaseEventoDetalle
Remediación Parche 2.2.23 rack · -1 d desde divulgación
Remediación Parche 3.1.21 rack · -1 d desde divulgación
Remediación Parche 3.2.6 rack · -1 d desde divulgación
Divulgación Publicada GHSA-X8CG-FQ8G-MXFX divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

Summary

`Rack::Utils.get_byte_ranges` parses the HTTP `Range` header without limiting the number of individual byte ranges. Although the existing fix for CVE-2024-26141 rejects ranges whose total byte coverage exceeds the file size, it does not restrict the count of ranges. An attacker can supply many small overlapping ranges such as `0-0,0-0,0-0,...` to trigger disproportionate CPU, memory, I/O, and bandwidth consumption per request.

This results in a denial of service condition in Rack file-serving paths that process multipart byte range responses.

Details

`Rack::Utils.get_byte_ranges` accepts a comma-separated list of byte ranges and validates them based on their aggregate size, but does not impose a limit on how many individual ranges may be supplied.

As a result, a request such as:

Range: bytes=0-0,0-0,0-0,0-0,...

can contain thousands of overlapping one-byte ranges while still satisfying the total-size check added for CVE-2024-26141.

When such a header is processed by Rack’s file-serving code, each range causes additional work, including multipart response generation, per-range iteration, file seek and read operations, and temporary string allocation for response size calculation and output. This allows a relatively small request header to trigger disproportionately expensive processing and a much larger multipart response.

The issue is distinct from CVE-2024-26141. That fix prevents range sets whose total byte coverage exceeds the file size, but does not prevent a large number of overlapping ranges whose summed size remains within that limit.

Impact

Applications that expose file-serving paths with byte range support may be vulnerable to denial of service.

An unauthenticated attacker can send crafted `Range` headers containing many small overlapping ranges to consume excessive CPU time, memory, file I/O, and bandwidth. Repeated requests may reduce application availability and increase pressure on workers and garbage collection.

Mitigation

  • Update to a patched version of Rack that limits the number of accepted byte ranges.
  • Reject or normalize multipart byte range requests containing excessive range counts.
  • Consider disabling multipart range support where it is not required.
  • Apply request filtering or header restrictions at the reverse proxy or application boundary to limit abusive `Range` headers.
Versiones

Rangos afectados

Afectada Corregida Última
rack< 2.2.23
rack≥ 3.0.0.beta1 < 3.1.21
rack≥ 3.2.0 < 3.2.6
2.2.23
3.0.0.beta1
3.1.21
3.2.0
3.2.6
3.2.8
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
rubygemsrack
Corregida 2.2.23, 3.1.21, 3.2.6 -1 d · -1 d · -1 d 3.2.8 no afectada
Versiones corregidas2.2.233.1.213.2.6
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-34826
Otrahttps://github.com/rack/rack/security/advisories/GHSA-x8cg-fq8g-mxfx
Otrahttps://github.com/rack/rack
Otrahttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2026-34826.yml

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.