CVE-2026-34830
published medium CVSS 3.1 · 5.9Rack: Rack::Sendfile regex injection via HTTP_X_ACCEL_MAPPING header allows arbitrary file reads through nginx
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| rack | — | rack< 2.2.23 · >= 3.0.0.beta1, < 3.1.21 · >= 3.2.0, < 3.2.6 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | bookworm | ruby-rack | Advisory build | 2.2.22-0+deb12u2 | DLA-4706-1 |
| SUSE / openSUSE | SLE-15-SP4 | rmt-serveraarch64 | Advisory build | 2.27-150400.3.54.1 | SUSE-SU-2026:1964-1 |
| Ubuntu | bionic | ruby-rack | Advisory build | 1.6.4-4ubuntu0.2+esm10 | USN-8182-1 |
| Debian | bullseye | ruby-rack | Advisory build | 2.1.4-3+deb11u6 | DLA-4706-1 |
| Debian | trixie | ruby-rack | Advisory build | 3.1.20-0+deb13u2 | DSA-6492-1 |
| SUSE / openSUSE | SLE-15-SP4 | rmt-serverppc64le | Advisory build | 2.27-150400.3.54.1 | SUSE-SU-2026:1964-1 |
Show 81 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP4 | rmt-servers390x | Advisory build | 2.27-150400.3.54.1 | SUSE-SU-2026:1964-1 |
| SUSE / openSUSE | SLE-15-SP4 | rmt-serverx86_64 | Advisory build | 2.27-150400.3.54.1 | SUSE-SU-2026:1964-1 |
| SUSE / openSUSE | SLE-15-SP4 | rmt-server-configaarch64 | Advisory build | 2.27-150400.3.54.1 | SUSE-SU-2026:1964-1 |
| SUSE / openSUSE | SLE-15-SP4 | rmt-server-configppc64le | Advisory build | 2.27-150400.3.54.1 | SUSE-SU-2026:1964-1 |
| SUSE / openSUSE | SLE-15-SP4 | rmt-server-configs390x | Advisory build | 2.27-150400.3.54.1 | SUSE-SU-2026:1964-1 |
| SUSE / openSUSE | SLE-15-SP4 | rmt-server-configx86_64 | Advisory build | 2.27-150400.3.54.1 | SUSE-SU-2026:1964-1 |
| SUSE / openSUSE | SLE-15-SP4 | rmt-server-pubcloudaarch64 | Advisory build | 2.27-150400.3.54.1 | SUSE-SU-2026:1964-1 |
| SUSE / openSUSE | SLE-15-SP4 | rmt-server-pubcloudppc64le | Advisory build | 2.27-150400.3.54.1 | SUSE-SU-2026:1964-1 |
| SUSE / openSUSE | SLE-15-SP4 | rmt-server-pubclouds390x | Advisory build | 2.27-150400.3.54.1 | SUSE-SU-2026:1964-1 |
| SUSE / openSUSE | SLE-15-SP4 | rmt-server-pubcloudx86_64 | Advisory build | 2.27-150400.3.54.1 | SUSE-SU-2026:1964-1 |
| SUSE / openSUSE | SLE-15-SP5 | rmt-serveraarch64 | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP5 | rmt-serverppc64le | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP5 | rmt-servers390x | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP5 | rmt-serverx86_64 | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP5 | rmt-server-configaarch64 | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP5 | rmt-server-configppc64le | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP5 | rmt-server-configs390x | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP5 | rmt-server-configx86_64 | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP5 | rmt-server-pubcloudaarch64 | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP5 | rmt-server-pubcloudppc64le | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP5 | rmt-server-pubclouds390x | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP5 | rmt-server-pubcloudx86_64 | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP6 | rmt-serveraarch64 | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP6 | rmt-serverppc64le | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP6 | rmt-servers390x | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP6 | rmt-serverx86_64 | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP6 | rmt-server-configaarch64 | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP6 | rmt-server-configppc64le | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP6 | rmt-server-configs390x | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP6 | rmt-server-configx86_64 | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP6 | rmt-server-pubcloudaarch64 | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP6 | rmt-server-pubcloudppc64le | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP6 | rmt-server-pubclouds390x | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP6 | rmt-server-pubcloudx86_64 | Advisory build | 2.27-150500.3.47.1 | SUSE-SU-2026:2487-1 |
| SUSE / openSUSE | SLE-15-SP7 | rmt-serveraarch64 | Advisory build | 2.27-150700.3.20.1 | SUSE-SU-2026:1745-1 |
| SUSE / openSUSE | SLE-15-SP7 | rmt-serverppc64le | Advisory build | 2.27-150700.3.20.1 | SUSE-SU-2026:1745-1 |
| SUSE / openSUSE | SLE-15-SP7 | rmt-servers390x | Advisory build | 2.27-150700.3.20.1 | SUSE-SU-2026:1745-1 |
| SUSE / openSUSE | SLE-15-SP7 | rmt-serverx86_64 | Advisory build | 2.27-150700.3.20.1 | SUSE-SU-2026:1745-1 |
| SUSE / openSUSE | SLE-15-SP7 | rmt-server-configaarch64 | Advisory build | 2.27-150700.3.20.1 | SUSE-SU-2026:1745-1 |
| SUSE / openSUSE | SLE-15-SP7 | rmt-server-configppc64le | Advisory build | 2.27-150700.3.20.1 | SUSE-SU-2026:1745-1 |
| SUSE / openSUSE | SLE-15-SP7 | rmt-server-configs390x | Advisory build | 2.27-150700.3.20.1 | SUSE-SU-2026:1745-1 |
| SUSE / openSUSE | SLE-15-SP7 | rmt-server-configx86_64 | Advisory build | 2.27-150700.3.20.1 | SUSE-SU-2026:1745-1 |
| SUSE / openSUSE | SLE-15-SP7 | rmt-server-pubcloudaarch64 | Advisory build | 2.27-150700.3.20.1 | SUSE-SU-2026:1745-1 |
| SUSE / openSUSE | SLE-15-SP7 | rmt-server-pubcloudppc64le | Advisory build | 2.27-150700.3.20.1 | SUSE-SU-2026:1745-1 |
| SUSE / openSUSE | SLE-15-SP7 | rmt-server-pubclouds390x | Advisory build | 2.27-150700.3.20.1 | SUSE-SU-2026:1745-1 |
| SUSE / openSUSE | SLE-15-SP7 | rmt-server-pubcloudx86_64 | Advisory build | 2.27-150700.3.20.1 | SUSE-SU-2026:1745-1 |
| SUSE / openSUSE | SLE-16 | rmt-serveraarch64 | Advisory build | 3.1.0-160000.1.1 | SUSE-SU-2026:23321-1 |
| SUSE / openSUSE | SLE-16 | rmt-serverppc64le | Advisory build | 3.1.0-160000.1.1 | SUSE-SU-2026:23321-1 |
| SUSE / openSUSE | SLE-16 | rmt-servers390x | Advisory build | 3.1.0-160000.1.1 | SUSE-SU-2026:23321-1 |
| SUSE / openSUSE | SLE-16 | rmt-serverx86_64 | Advisory build | 3.1.0-160000.1.1 | SUSE-SU-2026:23321-1 |
| SUSE / openSUSE | SLE-16 | rmt-server-configaarch64 | Advisory build | 3.1.0-160000.1.1 | SUSE-SU-2026:23321-1 |
| SUSE / openSUSE | SLE-16 | rmt-server-configppc64le | Advisory build | 3.1.0-160000.1.1 | SUSE-SU-2026:23321-1 |
| SUSE / openSUSE | SLE-16 | rmt-server-configs390x | Advisory build | 3.1.0-160000.1.1 | SUSE-SU-2026:23321-1 |
| SUSE / openSUSE | SLE-16 | rmt-server-configx86_64 | Advisory build | 3.1.0-160000.1.1 | SUSE-SU-2026:23321-1 |
| SUSE / openSUSE | SLE-16 | rmt-server-pubcloudaarch64 | Advisory build | 3.1.0-160000.1.1 | SUSE-SU-2026:23321-1 |
| SUSE / openSUSE | SLE-16 | rmt-server-pubcloudppc64le | Advisory build | 3.1.0-160000.1.1 | SUSE-SU-2026:23321-1 |
| SUSE / openSUSE | SLE-16 | rmt-server-pubclouds390x | Advisory build | 3.1.0-160000.1.1 | SUSE-SU-2026:23321-1 |
| SUSE / openSUSE | SLE-16 | rmt-server-pubcloudx86_64 | Advisory build | 3.1.0-160000.1.1 | SUSE-SU-2026:23321-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | ansible-rmt-servernoarch | Advisory build | 3.1.0-160000.1.1 | OPENSUSE-SU-2026:21640-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | rmt-serveraarch64 | Advisory build | 3.1.0-160000.1.1 | OPENSUSE-SU-2026:21640-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | rmt-serverppc64le | Advisory build | 3.1.0-160000.1.1 | OPENSUSE-SU-2026:21640-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | rmt-servers390x | Advisory build | 3.1.0-160000.1.1 | OPENSUSE-SU-2026:21640-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | rmt-serverx86_64 | Advisory build | 3.1.0-160000.1.1 | OPENSUSE-SU-2026:21640-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | rmt-server-configaarch64 | Advisory build | 3.1.0-160000.1.1 | OPENSUSE-SU-2026:21640-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | rmt-server-configppc64le | Advisory build | 3.1.0-160000.1.1 | OPENSUSE-SU-2026:21640-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | rmt-server-configs390x | Advisory build | 3.1.0-160000.1.1 | OPENSUSE-SU-2026:21640-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | rmt-server-configx86_64 | Advisory build | 3.1.0-160000.1.1 | OPENSUSE-SU-2026:21640-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | rmt-server-pubcloudaarch64 | Advisory build | 3.1.0-160000.1.1 | OPENSUSE-SU-2026:21640-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | rmt-server-pubcloudppc64le | Advisory build | 3.1.0-160000.1.1 | OPENSUSE-SU-2026:21640-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | rmt-server-pubclouds390x | Advisory build | 3.1.0-160000.1.1 | OPENSUSE-SU-2026:21640-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | rmt-server-pubcloudx86_64 | Advisory build | 3.1.0-160000.1.1 | OPENSUSE-SU-2026:21640-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-rack-2.2aarch64 | Advisory build | 2.2.23-1.1 | OPENSUSE-SU-2026:10508-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-rack-2.2ppc64le | Advisory build | 2.2.23-1.1 | OPENSUSE-SU-2026:10508-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-rack-2.2s390x | Advisory build | 2.2.23-1.1 | OPENSUSE-SU-2026:10508-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-rack-2.2x86_64 | Advisory build | 2.2.23-1.1 | OPENSUSE-SU-2026:10508-1 |
| Ubuntu | focal | ruby-rack | Advisory build | 2.0.7-2ubuntu0.1+esm10 | USN-8182-1 |
| Ubuntu | jammy | ruby-rack | Advisory build | 2.1.4-5ubuntu1.2+esm3 | USN-8182-1 |
| Ubuntu | noble | ruby-rack | Advisory build | 2.2.7-1ubuntu0.7 | USN-8182-1 |
| Ubuntu | questing | ruby-rack | Advisory build | 3.1.16-0.1ubuntu0.3 | USN-8182-1 |
| Ubuntu | resolute | ruby-rack | Advisory build | 3.2.4-1ubuntu1.1 | USN-8989-1 |
| Ubuntu | xenial | ruby-rack | Advisory build | 1.6.4-3ubuntu0.2+esm10 | USN-8182-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| rack | rack | < 2.2.23 (affected)>= 3.0.0.beta1, < 3.1.21 (affected)>= 3.2.0, < 3.2.6 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-625 CWE-625: Permissive Regular Expression
References
1Provider assertions
2GitHub_M · cna
Rack: Rack::Sendfile regex injection via HTTP_X_ACCEL_MAPPING header allows arbitrary file reads through nginx
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b59be5e8470f5d11d842d1050fa5842d994ab5abeb494e7a8c3a7911b68128a2
- Ingested
- 23 Sep 2026, 09:11:13 UTC
- Source record
- Official CVE record