cve.bz

CVE-2026-34785 rack rack: Partial String Comparison

7.5 highEPSS 0.4%Fix available

High (7.5) in rack rack. EPSS 0.4% 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 determines whether a request should be served as a static file using a simple string prefix check. When configured with URL prefixes such as "/css", it matches any request path that begins with that string, including unrelated paths such as "/css-config.env" or "/css-backup.sql". As a result, files under the static root whose names merely share the configured prefix may be served unintentionally, leading to information disclosure. This issue has been patched in versions 2.2.23, 3.1.21, and 3.2.6.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
0.4% (unchanged from 0.4% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 35th percentile. Scored 2026-11-22. 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-02. 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-187 Partial String Comparison
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
CWE-552 Files or Directories Accessible to External Parties
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-34785 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-34785?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-34785?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-34785 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-h2jq-g4cq-5ppqRubyGemsrack<2.2.232.2.23
GHSA-h2jq-g4cq-5ppqRubyGemsrack>=3.0.0.beta1 <3.1.213.1.21
GHSA-h2jq-g4cq-5ppqRubyGemsrack>=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-34785 DLA-4706-1
Debian13ruby-rack3.1.20-0+deb13u2DEBIAN-CVE-2026-34785 DSA-6492-1
Debian14ruby-rack3.2.6-2DEBIAN-CVE-2026-34785
Ubuntu24.04:LTSruby-rack2.2.7-1ubuntu0.7UBUNTU-CVE-2026-34785
Ubuntu25.10ruby-rack3.1.16-0.1ubuntu0.3UBUNTU-CVE-2026-34785
Ubuntu26.04:LTSruby-rack3.2.4-1ubuntu1.1UBUNTU-CVE-2026-34785 USN-8989-1
UbuntuPro:14.04:LTSruby-rack1.5.2-3+deb8u3ubuntu1~esm11UBUNTU-CVE-2026-34785
UbuntuPro:16.04:LTSruby-rack1.6.4-3ubuntu0.2+esm10UBUNTU-CVE-2026-34785
UbuntuPro:18.04:LTSruby-rack1.6.4-4ubuntu0.2+esm10UBUNTU-CVE-2026-34785
UbuntuPro:22.04:LTSruby-rack2.1.4-5ubuntu1.2+esm3UBUNTU-CVE-2026-34785
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 Important.

ProductPackageStateAdvisory
Red Hat Satellite 6rubygem-rackNot affected
Red Hat Satellite 6rubygem-rack-testNot affected
Red Hat Satellite 6satellite-capsule:el8/rubygem-rackNot affected
Red Hat Satellite 6satellite:el8/rubygem-rack-testNot affected

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-34785.

Attack patterns (CAPEC)

  • CAPEC-150 Collect Data from Common Resource Locations Severity: Medium
  • CAPEC-639 Probe System Files Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-200 (59).

References

Check your stackJSON