
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-34830 is a permissive regular expression (regex injection) vulnerability in Rack, the modular Ruby web server interface, affecting the Rack::Sendfile#map_accel_path method. The vulnerability allows an attacker who can supply a crafted X-Accel-Mapping request header to inject regex metacharacters, manipulating the generated X-Accel-Redirect response header and potentially causing nginx to serve unintended files from internal locations. Affected versions include all Rack releases prior to 2.2.23, versions 3.0.0.beta1 through 3.1.20, and versions 3.2.0 through 3.2.5. It was published on April 1–2, 2026, with a CVSS v3.1 base score of 5.9 (Moderate) (GitHub Advisory, Github Advisory).
The root cause is classified as CWE-625 (Permissive Regular Expression): Rack::Sendfile#map_accel_path splits the HTTP_X_ACCEL_MAPPING request header and interpolates the internal portion directly into a Ruby regex (/\A#{internal}/i) without escaping, granting it full regex semantics instead of treating it as a literal path prefix (GitHub Advisory). An attacker can supply metacharacters such as .* or capture groups — for example, X-Accel-Mapping: .*=/protected/secret.txt — causing the entire source path to match and rewriting the X-Accel-Redirect header to an attacker-chosen internal path. Exploitation requires that untrusted X-Accel-Mapping headers can reach the Rack backend, which can occur when a reverse proxy fails to strip or overwrite the header on some routes. The vulnerability is only relevant in deployments using Rack::Sendfile with the x-accel-redirect feature enabled (Github Advisory).
Successful exploitation can lead to unauthorized file disclosure, where nginx is instructed to serve files from internal locations that were not intended to be publicly accessible. The confidentiality impact is rated High, while integrity and availability are unaffected. The practical severity depends on deployment architecture: if the reverse proxy consistently strips or overwrites X-Accel-Mapping, or if the application uses explicit configured mappings rather than header-based ones, exploitability is significantly reduced or eliminated (GitHub Advisory). Downstream IBM products including Aspera Faspex, Aspera Enterprise WebApps, Aspera Shares, API Connect, CloudPak for AIOps, and License Metric Tool are also affected (IBM Aspera Faspex, IBM CloudPak AIOps).
There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation as of the time of publication (Github Advisory). The EPSS score is approximately 0.049% (16th percentile), indicating a low near-term exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Attack complexity is rated High because exploitation requires the attacker to be able to supply an X-Accel-Mapping header that reaches the Rack backend unmodified (GitHub Advisory).
Rack::Sendfile middleware and nginx as a reverse proxy with x-accel-redirect enabled. Look for deployments where the X-Accel-Mapping header is not consistently stripped or overwritten by the proxy on all routes.X-Accel-Mapping header, allowing a client-supplied value to reach the Rack backend.X-Accel-Mapping header containing regex metacharacters, such as X-Accel-Mapping: .*=/protected/secret.txt, which will match any source path and rewrite the redirect target to the attacker-chosen internal nginx location.map_accel_path interpolates the header value into the regex, causing the X-Accel-Redirect response header to be set to the attacker-controlled path.X-Accel-Redirect response header pointing to the internal location, serves the file at that path to the attacker, disclosing sensitive content from internal nginx locations (GitHub Advisory).X-Accel-Mapping header with regex metacharacters (e.g., .*, (, ), [, ]) in the header value; unexpected X-Accel-Redirect response headers pointing to internal nginx paths not normally served.X-Accel-Mapping header values, particularly those containing ., *, =, or path traversal patterns; nginx access logs showing internal location (/protected/, /internal/) files being served in response to requests that should not access them.internal; in nginx) that are not expected to be publicly accessible.Upgrade Rack to a patched version: 2.2.23, 3.1.21, or 3.2.6 depending on the currently installed branch. These versions treat header-supplied X-Accel-Mapping values as literal strings rather than regular expressions (GitHub Advisory). As an immediate workaround, configure the reverse proxy to strip or overwrite inbound X-Accel-Mapping headers so client-supplied values never reach Rack. Additionally, prefer explicit application-configured sendfile mappings over request-header-based mappings, and audit all proxy sub-locations to ensure X-Accel-Mapping is consistently set on every backend route. IBM has released patches for affected products including Aspera Faspex, Aspera Enterprise WebApps, Aspera Shares, API Connect, CloudPak for AIOps, and License Metric Tool (IBM Aspera Faspex).
The vulnerability was reported by security researcher mzfr, with remediation developed by jeremyevans and coordinated by ioquatix (the Rack maintainer) (GitHub Advisory). Ubuntu issued security notice USN-8182-1 and SUSE released updates (SUSE-SU-2026:1745-1 and SUSE-SU-2026:1964-1) addressing this and related Rack vulnerabilities. No significant broader media coverage or social media discussion has been observed, consistent with the moderate severity rating and absence of active exploitation.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."