cve.bz

CVE-2026-34831 rack rack

6.5 mediumEPSS 0.3%Fix available

Medium (6.5) in rack rack. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in rack 2.2.23, 3.1.21, 3.2.6.

On this page
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.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
EPSS
0.3% (up from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 14th percentile. Scored 2026-11-30. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-04-03. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-130 Improper Handling of Length Parameter Inconsistency
CWE-135 Incorrect Calculation of Multi-Byte String Length
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-34831 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-34831?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-34831?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-34831 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
rack:rackbefore 2.2.23
rack:rackfrom 3.0.0 before 3.1.21
rack:rackfrom 3.2.0 before 3.2.6

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-q2ww-5357-x388RubyGemsrack<2.2.232.2.23
GHSA-q2ww-5357-x388RubyGemsrack>=3.0.0.beta1 <3.1.213.1.21
GHSA-q2ww-5357-x388RubyGemsrack>=3.2.0 <3.2.63.2.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11ruby-rack2.1.4-3+deb11u6DLA-4706-1
Debian12ruby-rack2.2.22-0+deb12u2DEBIAN-CVE-2026-34831 DLA-4706-1
Debian13ruby-rack3.1.20-0+deb13u2DEBIAN-CVE-2026-34831 DSA-6492-1
Debian14ruby-rack3.2.6-2DEBIAN-CVE-2026-34831
Ubuntu24.04:LTSruby-rack2.2.7-1ubuntu0.7UBUNTU-CVE-2026-34831 USN-8182-1
Ubuntu25.10ruby-rack3.1.16-0.1ubuntu0.3UBUNTU-CVE-2026-34831 USN-8182-1
Ubuntu26.04:LTSruby-rack3.2.4-1ubuntu1.1UBUNTU-CVE-2026-34831 USN-8989-1
UbuntuPro:14.04:LTSruby-rack1.5.2-3+deb8u3ubuntu1~esm11USN-8182-1
UbuntuPro:16.04:LTSruby-rack1.6.4-3ubuntu0.2+esm10USN-8182-1
UbuntuPro:18.04:LTSruby-rack1.6.4-4ubuntu0.2+esm10USN-8182-1
UbuntuPro:20.04:LTSruby-rack2.0.7-2ubuntu0.1+esm10USN-8182-1
UbuntuPro:22.04:LTSruby-rack2.1.4-5ubuntu1.2+esm3UBUNTU-CVE-2026-34831 USN-8182-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Module for Public Cloud 15 SP5 and 5 morermt-server2.27-150500.3.47.1SUSE-SU-2026:2487-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0rmt-server3.1.0-160000.1.1SUSE-SU-2026:23321-1
openSUSELeap 16.0rmt-server3.1.0-160000.1.1openSUSE-SU-2026:21640-1
openSUSETumbleweedrubygem-rack-2.22.2.23-1.1openSUSE-SU-2026:10508-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's 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.

ProductPackageStateAdvisory
Logging Subsystem for Red Hat OpenShiftopenshift-logging/cluster-logging-operator-bundleFix deferred
Logging Subsystem for Red Hat OpenShiftopenshift-logging/cluster-logging-rhel9-operatorFix deferred
Logging Subsystem for Red Hat OpenShiftopenshift-logging/eventrouter-rhel9Fix deferred
Logging Subsystem for Red Hat OpenShiftopenshift-logging/fluentd-rhel9Fix deferred
Logging Subsystem for Red Hat OpenShiftopenshift-logging/log-file-metric-exporter-rhel9Fix deferred
Logging Subsystem for Red Hat OpenShiftopenshift-logging/logging-view-plugin-rhel9Fix deferred
Logging Subsystem for Red Hat OpenShiftopenshift-logging/vector-rhel9Fix deferred
Red Hat 3scale API Management Platform 23scale-amp20/backendFix deferred
Red Hat 3scale API Management Platform 23scale-amp20/systemFix deferred
Red Hat 3scale API Management Platform 23scale-amp21/backendFix deferred
Red Hat 3scale API Management Platform 23scale-amp21/systemFix deferred
Red Hat 3scale API Management Platform 23scale-amp21/zyncFix deferred
Red Hat 3scale API Management Platform 23scale-amp22/backendFix deferred
Red Hat 3scale API Management Platform 23scale-amp22/systemFix deferred
Red Hat 3scale API Management Platform 23scale-amp22/zyncFix deferred
Red Hat 3scale API Management Platform 23scale-amp24/backendFix deferred
Red Hat 3scale API Management Platform 23scale-amp24/systemFix deferred
Red Hat 3scale API Management Platform 23scale-amp24/zyncFix deferred
Red Hat 3scale API Management Platform 23scale-amp25/backendFix deferred
Red Hat 3scale API Management Platform 23scale-amp25/systemFix deferred
20 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-34831.

Attack patterns (CAPEC)

  • CAPEC-47 Buffer Overflow via Parameter Expansion Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON