CVE-2026-34831
rack: Rack: HTTP response desynchronization via incorrect Content-Length calculation with UTF-8 characters
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · April 3, 2026
Updated · June 30, 2026
Description
A flaw was found in Rack. A remote attacker can exploit this vulnerability by requesting a non-existent path containing percent-encoded UTF-8 characters. This causes Rack::Files#fail to incorrectly calculate the Content-Length header, using String#size instead of String#bytesize for multibyte characters. This leads to incorrect HTTP response framing, which may cause response desynchronization in systems relying on the Content-Length value.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
CVSS / CWE
CVSS 3.1 · 4.8CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
CWE-135 · Incorrect Calculation of Multi-Byte String Length