CVE-2026-34831
published medium CVSS 3.1 · 4.8Rack: Content-Length mismatch in Rack::Files error responses
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| rack | — | rack< 2.2.23 · >= 3.0.0.beta1, < 3.1.21 · >= 3.2.0, < 3.2.6 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | bookworm | ruby-rack | Advisory build | 2.2.22-0+deb12u2 | DLA-4706-1 |
| SUSE / openSUSE | SLE-15-SP4 | rmt-serveraarch64 | Advisory build | 2.27-150400.3.54.1 | SUSE-SU-2026:1964-1 |
| Ubuntu | jammy | ruby-rack | Advisory build | 2.1.4-5ubuntu1.2+esm3 | USN-8182-1 |
| Debian | bullseye | ruby-rack | Advisory build | 2.1.4-3+deb11u6 | DLA-4706-1 |
| Debian | trixie | ruby-rack | Advisory build | 3.1.20-0+deb13u2 | DSA-6492-1 |
| SUSE / openSUSE | SLE-15-SP4 | rmt-serverppc64le | Advisory build | 2.27-150400.3.54.1 | SUSE-SU-2026:1964-1 |
Show 78 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP4 | rmt-servers390x | Advisory build | 2.27-150400.3.54.1 | SUSE-SU-2026:1964-1 |
| SUSE / openSUSE | SLE-15-SP4 | rmt-serverx86_64 | Advisory build | 2.27-150400.3.54.1 | SUSE-SU-2026:1964-1 |
| SUSE / openSUSE | SLE-15-SP4 | rmt-server-configaarch64 | Advisory build | 2.27-150400.3.54.1 | SUSE-SU-2026:1964-1 |
| SUSE / openSUSE | SLE-15-SP4 | rmt-server-configppc64le | Advisory build | 2.27-150400.3.54.1 | SUSE-SU-2026:1964-1 |
| SUSE / openSUSE | SLE-15-SP4 | rmt-server-configs390x | Advisory build | 2.27-150400.3.54.1 | SUSE-SU-2026:1964-1 |
| SUSE / openSUSE | SLE-15-SP4 | rmt-server-configx86_64 | Advisory build | 2.27-150400.3.54.1 | SUSE-SU-2026:1964-1 |
| SUSE / openSUSE | SLE-15-SP4 | rmt-server-pubcloudaarch64 | Advisory build | 2.27-150400.3.54.1 | SUSE-SU-2026:1964-1 |
| SUSE / openSUSE | SLE-15-SP4 | rmt-server-pubcloudppc64le | Advisory build | 2.27-150400.3.54.1 | SUSE-SU-2026:1964-1 |
| SUSE / openSUSE | SLE-15-SP4 | rmt-server-pubclouds390x | Advisory build | 2.27-150400.3.54.1 | SUSE-SU-2026:1964-1 |
| SUSE / openSUSE | SLE-15-SP4 | rmt-server-pubcloudx86_64 | Advisory build | 2.27-150400.3.54.1 | SUSE-SU-2026:1964-1 |
| SUSE / openSUSE | SLE-15-SP5 | rmt-serveraarch64 | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP5 | rmt-serverppc64le | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP5 | rmt-servers390x | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP5 | rmt-serverx86_64 | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP5 | rmt-server-configaarch64 | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP5 | rmt-server-configppc64le | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP5 | rmt-server-configs390x | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP5 | rmt-server-configx86_64 | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP5 | rmt-server-pubcloudaarch64 | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP5 | rmt-server-pubcloudppc64le | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP5 | rmt-server-pubclouds390x | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP5 | rmt-server-pubcloudx86_64 | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP6 | rmt-serveraarch64 | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP6 | rmt-serverppc64le | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP6 | rmt-servers390x | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP6 | rmt-serverx86_64 | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP6 | rmt-server-configaarch64 | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP6 | rmt-server-configppc64le | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP6 | rmt-server-configs390x | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP6 | rmt-server-configx86_64 | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP6 | rmt-server-pubcloudaarch64 | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP6 | rmt-server-pubcloudppc64le | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP6 | rmt-server-pubclouds390x | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP6 | rmt-server-pubcloudx86_64 | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP7 | rmt-serveraarch64 | Advisory build | 2.27-150700.3.20.1 | SUSE-SU-2026:1745-1 |
| SUSE / openSUSE | SLE-15-SP7 | rmt-serverppc64le | Advisory build | 2.27-150700.3.20.1 | SUSE-SU-2026:1745-1 |
| SUSE / openSUSE | SLE-15-SP7 | rmt-servers390x | Advisory build | 2.27-150700.3.20.1 | SUSE-SU-2026:1745-1 |
| SUSE / openSUSE | SLE-15-SP7 | rmt-serverx86_64 | Advisory build | 2.27-150700.3.20.1 | SUSE-SU-2026:1745-1 |
| SUSE / openSUSE | SLE-15-SP7 | rmt-server-configaarch64 | Advisory build | 2.27-150700.3.20.1 | SUSE-SU-2026:1745-1 |
| SUSE / openSUSE | SLE-15-SP7 | rmt-server-configppc64le | Advisory build | 2.27-150700.3.20.1 | SUSE-SU-2026:1745-1 |
| SUSE / openSUSE | SLE-15-SP7 | rmt-server-configs390x | Advisory build | 2.27-150700.3.20.1 | SUSE-SU-2026:1745-1 |
| SUSE / openSUSE | SLE-15-SP7 | rmt-server-configx86_64 | Advisory build | 2.27-150700.3.20.1 | SUSE-SU-2026:1745-1 |
| SUSE / openSUSE | SLE-15-SP7 | rmt-server-pubcloudaarch64 | Advisory build | 2.27-150700.3.20.1 | SUSE-SU-2026:1745-1 |
| SUSE / openSUSE | SLE-15-SP7 | rmt-server-pubcloudppc64le | Advisory build | 2.27-150700.3.20.1 | SUSE-SU-2026:1745-1 |
| SUSE / openSUSE | SLE-15-SP7 | rmt-server-pubclouds390x | Advisory build | 2.27-150700.3.20.1 | SUSE-SU-2026:1745-1 |
| SUSE / openSUSE | SLE-15-SP7 | rmt-server-pubcloudx86_64 | Advisory build | 2.27-150700.3.20.1 | SUSE-SU-2026:1745-1 |
| SUSE / openSUSE | SLE-16 | rmt-serveraarch64 | Advisory build | 3.1.0-160000.1.1 | SUSE-SU-2026:23321-1 |
| SUSE / openSUSE | SLE-16 | rmt-serverppc64le | Advisory build | 3.1.0-160000.1.1 | SUSE-SU-2026:23321-1 |
| SUSE / openSUSE | SLE-16 | rmt-servers390x | Advisory build | 3.1.0-160000.1.1 | SUSE-SU-2026:23321-1 |
| SUSE / openSUSE | SLE-16 | rmt-serverx86_64 | Advisory build | 3.1.0-160000.1.1 | SUSE-SU-2026:23321-1 |
| SUSE / openSUSE | SLE-16 | rmt-server-configaarch64 | Advisory build | 3.1.0-160000.1.1 | SUSE-SU-2026:23321-1 |
| SUSE / openSUSE | SLE-16 | rmt-server-configppc64le | Advisory build | 3.1.0-160000.1.1 | SUSE-SU-2026:23321-1 |
| SUSE / openSUSE | SLE-16 | rmt-server-configs390x | Advisory build | 3.1.0-160000.1.1 | SUSE-SU-2026:23321-1 |
| SUSE / openSUSE | SLE-16 | rmt-server-configx86_64 | Advisory build | 3.1.0-160000.1.1 | SUSE-SU-2026:23321-1 |
| SUSE / openSUSE | SLE-16 | rmt-server-pubcloudaarch64 | Advisory build | 3.1.0-160000.1.1 | SUSE-SU-2026:23321-1 |
| SUSE / openSUSE | SLE-16 | rmt-server-pubcloudppc64le | Advisory build | 3.1.0-160000.1.1 | SUSE-SU-2026:23321-1 |
| SUSE / openSUSE | SLE-16 | rmt-server-pubclouds390x | Advisory build | 3.1.0-160000.1.1 | SUSE-SU-2026:23321-1 |
| SUSE / openSUSE | SLE-16 | rmt-server-pubcloudx86_64 | Advisory build | 3.1.0-160000.1.1 | SUSE-SU-2026:23321-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | ansible-rmt-servernoarch | Advisory build | 3.1.0-160000.1.1 | OPENSUSE-SU-2026:21640-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | rmt-serveraarch64 | Advisory build | 3.1.0-160000.1.1 | OPENSUSE-SU-2026:21640-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | rmt-serverppc64le | Advisory build | 3.1.0-160000.1.1 | OPENSUSE-SU-2026:21640-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | rmt-servers390x | Advisory build | 3.1.0-160000.1.1 | OPENSUSE-SU-2026:21640-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | rmt-serverx86_64 | Advisory build | 3.1.0-160000.1.1 | OPENSUSE-SU-2026:21640-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | rmt-server-configaarch64 | Advisory build | 3.1.0-160000.1.1 | OPENSUSE-SU-2026:21640-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | rmt-server-configppc64le | Advisory build | 3.1.0-160000.1.1 | OPENSUSE-SU-2026:21640-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | rmt-server-configs390x | Advisory build | 3.1.0-160000.1.1 | OPENSUSE-SU-2026:21640-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | rmt-server-configx86_64 | Advisory build | 3.1.0-160000.1.1 | OPENSUSE-SU-2026:21640-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | rmt-server-pubcloudaarch64 | Advisory build | 3.1.0-160000.1.1 | OPENSUSE-SU-2026:21640-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | rmt-server-pubcloudppc64le | Advisory build | 3.1.0-160000.1.1 | OPENSUSE-SU-2026:21640-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | rmt-server-pubclouds390x | Advisory build | 3.1.0-160000.1.1 | OPENSUSE-SU-2026:21640-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | rmt-server-pubcloudx86_64 | Advisory build | 3.1.0-160000.1.1 | OPENSUSE-SU-2026:21640-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-rack-2.2aarch64 | Advisory build | 2.2.23-1.1 | OPENSUSE-SU-2026:10508-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-rack-2.2ppc64le | Advisory build | 2.2.23-1.1 | OPENSUSE-SU-2026:10508-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-rack-2.2s390x | Advisory build | 2.2.23-1.1 | OPENSUSE-SU-2026:10508-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-rack-2.2x86_64 | Advisory build | 2.2.23-1.1 | OPENSUSE-SU-2026:10508-1 |
| Ubuntu | noble | ruby-rack | Advisory build | 2.2.7-1ubuntu0.7 | USN-8182-1 |
| Ubuntu | questing | ruby-rack | Advisory build | 3.1.16-0.1ubuntu0.3 | USN-8182-1 |
| Ubuntu | resolute | ruby-rack | Advisory build | 3.2.4-1ubuntu1.1 | USN-8989-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.8 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| rack | rack | < 2.2.23 (affected)>= 3.0.0.beta1, < 3.1.21 (affected)>= 3.2.0, < 3.2.6 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-130 CWE-130: Improper Handling of Length Parameter Inconsistency
- CWE-135 CWE-135: Incorrect Calculation of Multi-Byte String Length
References
1Provider assertions
2GitHub_M · cna
Rack: Content-Length mismatch in Rack::Files error responses
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 4b5eeca0949306a82d0f8071fddbd4e9222c8bfd03e821f399c9050b737497d6
- Ingested
- 23 Sep 2026, 09:11:13 UTC
- Source record
- Official CVE record