cve.bz

CVE-2026-34786 rack rack

5.3 mediumEPSS 0.2%Fix available

Medium (5.3) in rack rack. EPSS 0.2% 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::Static#applicable_rules evaluates several header_rules types against the raw URL-encoded PATH_INFO, while the underlying file-serving path is decoded before the file is served. As a result, a request for a URL-encoded variant of a static path can serve the same file without the headers that header_rules were intended to apply. In deployments that rely on Rack::Static to attach security-relevant response headers to static content, this can allow an attacker to bypass those headers by requesting an encoded form of the path. This issue has been patched in versions 2.2.23, 3.1.21, and 3.2.6.

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 11th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · 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.
CWE
CWE-180 Incorrect Behavior Order: Validate Before Canonicalize
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-34786 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-34786?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-34786?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-34786 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-q4qf-9j86-f5mhRubyGemsrack<2.2.232.2.23
GHSA-q4qf-9j86-f5mhRubyGemsrack>=3.0.0.beta1 <3.1.213.1.21
GHSA-q4qf-9j86-f5mhRubyGemsrack>=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-34786 DLA-4706-1
Debian13ruby-rack3.1.20-0+deb13u2DEBIAN-CVE-2026-34786 DSA-6492-1
Debian14ruby-rack3.2.6-2DEBIAN-CVE-2026-34786
Ubuntu24.04:LTSruby-rack2.2.7-1ubuntu0.7UBUNTU-CVE-2026-34786 USN-8182-1
Ubuntu25.10ruby-rack3.1.16-0.1ubuntu0.3UBUNTU-CVE-2026-34786 USN-8182-1
Ubuntu26.04:LTSruby-rack3.2.4-1ubuntu1.1UBUNTU-CVE-2026-34786 USN-8989-1
UbuntuPro:14.04:LTS, Pro:16.04:LTSruby-rackno fix listedUBUNTU-CVE-2026-34786 USN-8182-1
UbuntuPro:18.04:LTSruby-rack1.6.4-4ubuntu0.2+esm10UBUNTU-CVE-2026-34786 USN-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-34786 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-34786.

Attack patterns (CAPEC)

  • CAPEC-3 Using Leading 'Ghost' Character Sequences to Bypass Input Filters Likelihood: Medium · Severity: Medium
  • CAPEC-71 Using Unicode Encoding to Bypass Validation Logic Likelihood: Medium · Severity: High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-80 Using UTF-8 Encoding to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-267 Leverage Alternate Encoding Likelihood: High · Severity: High

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

References

Check your stackJSON