CVE-2026-34831: rack
Vulnerability summary
CVE-2026-34831 is a medium (CVSS 6.5) vulnerability in rack. EPSS estimates a 0.24% chance of exploitation in the next 30 days, higher than 14.7% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 5 · Related 6Timeline
- 02-04-2026PublishedVulnerability first disclosed.
- 03-04-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 7 sources · 1 version- CVE.orgCNA4.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- OSV · WolfiEcosystem advisory · calculated4.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:NDiffers
- OSV · ChainguardEcosystem advisory · calculated4.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:NDiffers
- OSV · RubygemsEcosystem advisory · calculated4.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:NDiffers
EPSS trend
Probability
0.24%
Chance of exploitation in the next 30 days
Percentile
15%
Versus all other CVEs
30-day change
+0.10 pp
From 0.15% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-130Improper Handling of Length Parameter InconsistencyThe product parses a formatted message or structure, but it does not handle or incorrectly handles a length field that is inconsistent with the actual length of the associated data.
- CWE-135Incorrect Calculation of Multi-Byte String LengthThe product does not correctly calculate the length of strings that can contain wide or multi-byte characters.
Affected systems
Chainguard57 products
- gitlab-exporter-18.10< 18.10.3-r0
- gitlab-exporter-18.7All versions (No fix recorded)
- gitlab-exporter-18.8< 18.8.9-r0
- gitlab-exporter-18.9< 18.9.5-r0
- gitlab-rails-ce-18.1< 18.1.6-r13
Wolfi8 products
- kube-fluentd-operator< 1.18.2-r60 | < 1.18.2-r67
- logstash-9.3< 9.3.3-r2
- logstash-9.3-iamguarded-compat< 9.3.3-r2
- logstash-9.3-with-output-opensearch< 9.3.3-r2
- ruby3.2-rack-2.2< 2.2.23-r0
Debian1 product
- ruby-rack< 2.2.22-0+deb12u2 | < 3.1.20-0+deb13u2 | < 3.2.6-2
Rack1 product
- rack≥ 3.0.0.beta1, < 3.1.21 | < 2.2.23 | ≥ 3.0.0, < 3.1.21 | ≥ 3.2.0, < 3.2.6
RubyGems1 product
- rack< 2.2.23 | ≥ 3.0.0.beta1, < 3.1.21 | ≥ 3.2.0, < 3.2.6
Ubuntu1 product
- ruby-rack< 2.1.4-5ubuntu1.2+esm3 | < 2.2.7-1ubuntu0.7 | < 3.1.16-0.1ubuntu0.3 | All versions (No fix recorded)
6 vendors · 69 products
References
9 links- github.com/rack/rack/security/advisories/GHSA-q2ww-5357-x388X Refsource CONFIRMREPORTAdvisoryWEBVendor Advisory
- github.com/rack/rackPACKAGE