Read the docs
TI-2026-27074 Aliases CVE-2026-34830GHSA-qv7j-4883-hwh7

Rack: Rack::Sendfile regex injection via HTTP_X_ACCEL_MAPPING header allows arbitrary file reads through nginx

Priority LOW 32CWE-625Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
High · None · None
Fix status
Partial Red Hat: 6 without a fix

Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat.

Summary

Rack is a modular Ruby web server interface. Prior to versions 2.2.23, 3.1.21, and 3.2.6, Rack::Sendfile#map_accel_path interpolates the value of the X-Accel-Mapping request header directly into a regular expression when rewriting file paths for X-Accel-Redirect. Because the header value is not escaped, an attacker who can supply X-Accel-Mapping to the backend can inject regex metacharacters and control the generated X-Accel-Redirect response header. In deployments using Rack::Sendfile with x-accel-redirect, this can allow an attacker to cause nginx to serve unintended files from configured internal locations. This issue has been patched in versions 2.2.23, 3.1.21, and 3.2.6.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00243 15th percentileScored 2026-11-07
Fix Partial rack (rack): 2.2.23, 3.1.21, 3.2.6rack (RubyGems): 2.2.23, 3.1.21, 3.2.6Red Hat: 6 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
rackrackbefore 2.2.23; 3.0.0.beta1 to before 3.1.21; 3.2.0 to before 3.2.62.2.23, 3.1.21, 3.2.6Patch availableCNA
—rack (RubyGems)before 2.2.232.2.23Patch availableGHSA-qv7j-4883-hwh7
—rack (RubyGems)3.0.0.beta1 to before 3.1.213.1.21Patch availableGHSA-qv7j-4883-hwh7
—rack (RubyGems)3.2.0 to before 3.2.63.2.6Patch availableGHSA-qv7j-4883-hwh7
  • rack Vendorrack Affected before 2.2.23; 3.0.0.beta1 to before 3.1.21; 3.2.0 to before 3.2.6 Fixed in 2.2.23, 3.1.21, 3.2.6 Patch available CNA
  • rack (RubyGems) Vendor— Affected before 2.2.23 Fixed in 2.2.23 Patch available GHSA-qv7j-4883-hwh7
  • rack (RubyGems) Vendor— Affected 3.0.0.beta1 to before 3.1.21 Fixed in 3.1.21 Patch available GHSA-qv7j-4883-hwh7
  • rack (RubyGems) Vendor— Affected 3.2.0 to before 3.2.6 Fixed in 3.2.6 Patch available GHSA-qv7j-4883-hwh7

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:*before 2.2.23; 3.0.0 to before 3.1.21; 3.2.0 to before 3.2.6Vulnerablerack
  • cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:* Versions before 2.2.23; 3.0.0 to before 3.1.21; 3.2.0 to before 3.2.6 Vulnerable ·rack

Remediation

  • Fix · CNA rack (rack) Fixed in 2.2.23, 3.1.21, 3.2.6
  • Fix · GHSA-qv7j-4883-hwh7 rack (RubyGems) Fixed in 2.2.23 Advisory →
  • Fix · GHSA-qv7j-4883-hwh7 rack (RubyGems) Fixed in 3.1.21 Advisory →
  • Fix · GHSA-qv7j-4883-hwh7 rack (RubyGems) Fixed in 3.2.6 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Logging Subsystem for Red Hat OpenShiftAffectedNo fix yet: Fix deferred
Red Hat 3scale API Management Platform 2AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux 10AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux 7AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux 8AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux 9AffectedNo fix yet: Fix deferred

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-34830
  2. 2026-10-03 Alias added: GHSA-qv7j-4883-hwh7

References

  • TI-2024-16580 Rack ReDos in content type parsing (2nd degree polynomial) CVSS 3.1HIGH 7.5
  • TI-2024-17236 Possible Denial of Service Vulnerability in Rack Header Parsing CVSS 3.1HIGH 7.5
  • TI-2024-17231 Possible DoS Vulnerability with Range Header in Rack CVSS 3.1HIGH 7.5
  • TI-2023-12254 Uncontrolled resource consumption in https://github.com/rack/rack CVSS 3.1HIGH 7.5
  • TI-2025-38165 Rack's multipart parser buffers unbounded per-part headers, enabling DoS (memory exhaustion) CVSS 3.1HIGH 7.5
  • TI-2025-38163 Rack's unbounded multipart preamble buffering enables DoS (memory exhaustion) CVSS 3.1HIGH 7.5
See all 36 →

Sources