CVE-2026-34831: Rack is a modular Ruby web server interface
CVE-2026-34831 is a medium-severity flaw (CVSS 4.8) affecting rack. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Last updated 2026-07-24 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-34831?
rack: upgrade to 2.2.23, 3.1.21, 3.2.6. Exact commands for each OS are on this page.
Is CVE-2026-34831 being exploited?
CVE-2026-34831 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-34831 affect?
CVE-2026-34831 affects rack. Severity is medium (CVSS 4.8). 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
How urgent is CVE-2026-34831?
Priority 23/100. Remotely exploitable, no login, no user action
Software pages
Related CVEs
- CVE-2023-27530 HIGH 7.5 UPGRADE MITIGATE A DoS vulnerability exists in Rack <v3.0.4.2, <v2.2.6.3, <v2.1.4.3 and <v2.0.9.3 within in the Multipart MIME
- CVE-2026-34827 HIGH 7.5 UPGRADE Rack is a modular Ruby web server interface
- CVE-2026-34785 HIGH 7.5 UPGRADE Rack is a modular Ruby web server interface
- CVE-2026-34829 HIGH 7.5 UPGRADE Rack is a modular Ruby web server interface
- CVE-2026-34230 MEDIUM 5.3 UPGRADE Rack is a modular Ruby web server interface