PT-2026-29819

CVE-2026-34831

·

Published

2026-04-02

·

Updated

2026-08-25

Description by

CVSS 3.1
6.5
Medium
MetricsAV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions Rack versions prior to 2.2.23, 3.1.21, and 3.2.6
Description Rack’s Rack::Files#fail function incorrectly calculates the Content-Length response header using String#size instead of String#bytesize. This occurs when the response body contains multibyte UTF-8 characters, resulting in a declared Content-Length smaller than the actual number of bytes sent. An attacker can trigger this by requesting a non-existent path with percent-encoded UTF-8 characters, leading to incorrect HTTP response framing and potential response desynchronization. The Rack::Files component reflects the requested path in 404 responses, which contributes to the issue when handling requests with multibyte characters. This can cause inconsistencies in response parsing or desynchronization, particularly in deployments with keep-alive connections and intermediaries relying on the Content-Length header.
Recommendations Update to Rack version 2.2.23 or later. Update to Rack version 3.1.21 or later. Update to Rack version 3.2.6 or later.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-Q2WW-5357-X388
OPENSUSE-SU-2026:10508-1
OPENSUSE-SU-2026:21640-1
SUSE-SU-2026:1745-1
SUSE-SU-2026:1964-1
SUSE-SU-2026:23321-1
SUSE-SU-2026:2487-1
USN-8182-1
Found an issue in the description? Have something to add? Feel free to write us 👾