Rack: Content-Length mismatch in Rack::Files error responses (rack rack)
En bref
- Source
- NVD
- EPSS
- EPSS 0.15 % · centile 4 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- GitHub_M
- Statut NVD
- Analyzed
Description
Rack is a modular Ruby web server interface. Prior to versions 2.2.23, 3.1.21, and 3.2.6, Rack::Files#fail sets the Content-Length response header using String#size instead of String#bytesize. When the response body contains multibyte UTF-8 characters, the declared Content-Length is smaller than the number of bytes actually sent on the wire. Because Rack::Files reflects the requested path in 404 responses, an attacker can trigger this mismatch by requesting a non-existent path containing percent-encoded UTF-8 characters. This results in incorrect HTTP response framing and may cause response desynchronization in deployments that rely on the incorrect Content-Length value. This issue has been patched in versions 2.2.23, 3.1.21, and 3.2.6.
Faiblesses (CWE)
- CWE-130 — Improper Handling of Length Parameter Inconsistency
- CWE-135 — Incorrect Calculation of Multi-Byte String Length
Références
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 4.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N | GitHub_M |
| CVSS 3.1 | MEDIUM 4.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N | NVD · security-advisories@github.com (Secondary) |
| CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N | NVD · nvd@nist.gov (Primary) |
Avis
- GHSA-q2ww-5357-x388 — Rack has Content-Length mismatch in Rack::Files error responses
Références européennes
- ENISA EUVD · EUVD-2026-18392
- GCVE · GCVE-0-2026-34831
Avis du CERT-FR
- CERTFR-2026-AVI-1352 — Multiples vulnérabilités dans Oracle PeopleSoft · cert.ssi.gouv.fr
Configurations affectées (CPE NVD)
cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:*< 2.2.23cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:*≥ 3.0.0 < 3.1.21cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:*≥ 3.2.0 < 3.2.6
Produits affectés
| Produit | Versions |
|---|---|
| rack · rack | affected < 2.2.23 ; affected >= 3.0.0.beta1, < 3.1.21 ; affected >= 3.2.0, < 3.2.6 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |