CVE-2026-34763: 
Ruby vulnerability analysis and mitigation

Overview

CVE-2026-34763 is a root directory disclosure vulnerability in the Rack Ruby web server interface, caused by unescaped regex interpolation in Rack::Directory. When the configured root path contains regex metacharacters (e.g., +, *, .), the prefix-stripping logic fails and the full filesystem path is exposed in HTML directory listings. Affected versions include Rack prior to 2.2.23, 3.0.0.beta1 through 3.1.20, and 3.2.0 through 3.2.5. The vulnerability was published on April 2, 2026, with a CVSS v3.1 base score of 5.3 (Medium) (GitHub Advisory, Rack Advisory).

Technical details

The root cause is classified as CWE-625 (Permissive Regular Expression). In Rack::Directory::DirectoryBody#each, the visible path is computed using show_path = Utils.escape_html(path.sub(/\A#{root}/, '')), where root is a developer-configured filesystem path normalized via File.expand_path(root) but inserted directly into the regex without escaping via Regexp.escape. If root contains regex metacharacters, the substitution fails to strip the prefix, causing the absolute filesystem path to be rendered in the HTML directory listing instead of the relative path. Exploitation requires no authentication or user interaction — an attacker simply needs to browse a directory listing served by a vulnerable Rack::Directory instance whose root path contains metacharacters (Rack Advisory, GitHub Advisory).

Impact

Successful exploitation results in information disclosure of the server's absolute filesystem path, potentially revealing directory layout, usernames embedded in paths, mount points, or deployment naming conventions that would otherwise be hidden from clients. There is no impact on integrity or availability. While the direct impact is limited to confidentiality (low), the exposed path information can assist attackers in reconnaissance for further targeted attacks against the server (GitHub Advisory).

Exploitability

No public proof-of-concept exploit code is known, and there is no evidence of in-the-wild exploitation at this time (GitHub Advisory). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.043% (14th percentile), indicating a low probability of exploitation in the near term. Exploitation is constrained by the precondition that the Rack application must use Rack::Directory with a root path containing regex metacharacters, which limits the attack surface (GitHub Advisory).

Exploitation steps

  1. Reconnaissance: Identify web applications built on Ruby/Rack that serve directory listings, using tools like Shodan, Censys, or manual browsing to find endpoints returning HTML directory indexes characteristic of Rack::Directory.
  2. Identify vulnerable configuration: Determine whether the application's Rack::Directory root path contains regex metacharacters (e.g., paths with ., +, or * in directory names such as /var/www/app.v1+release/public).
  3. Request a directory listing: Send a standard HTTP GET request to a path served by Rack::Directory (e.g., GET /files/ HTTP/1.1).
  4. Observe disclosed path: Inspect the HTML response body for directory listing entries — if the root path contains metacharacters and the regex substitution fails, the full absolute filesystem path (e.g., /var/www/app.v1+release/public/subdir/file.txt) will appear in the listing instead of the relative path (/subdir/file.txt).
  5. Leverage disclosed information: Use the exposed filesystem path to infer deployment structure, usernames, or mount points for further targeted attacks (Rack Advisory).

Indicators of compromise

  • Network: HTTP GET requests to directory-listing endpoints (e.g., paths served by Rack::Directory) from unfamiliar or scanning IP addresses, particularly with high frequency or systematic enumeration patterns.
  • Logs: Web server access logs showing repeated requests to directory listing URLs; responses containing absolute filesystem paths in the HTML body (e.g., paths starting with /home/, /var/, /srv/, or /opt/) rather than relative paths.
  • Application Behavior: HTML directory listing responses where file/directory links include the full server-side absolute path rather than a web-relative path, indicating the regex substitution has failed.

Mitigation and workarounds

Upgrade Rack to a patched version: 2.2.23, 3.1.21, or 3.2.6 depending on your current version branch. As a temporary workaround, ensure that Rack::Directory root paths do not contain regex metacharacters (+, *, ., etc.), or disable Rack::Directory entirely if directory listing functionality is not required. IBM has also issued advisories for affected products including Aspera Faspex, Aspera Enterprise WebApps, Aspera Shares, CloudPak for AIOps, API Connect, and License Metric Tool v9, which should be updated per their respective bulletins (Rack Advisory, IBM Aspera Faspex, IBM CloudPak AIOps).

Community reactions

The vulnerability was reported by researcher harukioya, coordinated by ioquatix, and reviewed for remediation by jeremyevans within the Rack project. Ubuntu issued security notice USN-8182-1 and SUSE released updates (SUSE-SU-2026:1745-1 and SUSE-SU-2026:1964-1) addressing this issue. IBM issued multiple security bulletins covering affected products. No significant social media discussion or broader community controversy has been observed, consistent with the moderate severity rating (GitHub Advisory, Ubuntu Advisory, SUSE Advisory).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

ruby-rack: 2.2.22-0+deb12u2

Fixed

sid

ruby-rack: 3.2.6-2

Fixed

trixie

ruby-rack: 3.1.20-0+deb13u2

Fixed

Ubuntu

Fixed

bionic (esm-apps)

ruby-rack: 1.6.4-4ubuntu0.2+esm10

Fixed

devel

ruby-rack

Affected

focal (esm-apps)

ruby-rack: 2.0.7-2ubuntu0.1+esm10

Fixed

jammy

ruby-rack

Affected

jammy (esm-apps)

ruby-rack: 2.1.4-5ubuntu1.2+esm3

Fixed

noble

ruby-rack: 2.2.7-1ubuntu0.7

Fixed

questing

ruby-rack: 3.1.16-0.1ubuntu0.3

Fixed

resolute

ruby-rack

Affected

Source: This report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-110264CRITICAL10
  • Ruby logoRuby
  • rubygem-rdoc
NoYesOct 22, 2026
GHSA-h7x6-9mqf-vgmxHIGH8.2
  • Ruby logoRuby
  • avo
NoYesOct 22, 2026
GHSA-x65r-p6hf-94hvMEDIUM6.5
  • Ruby logoRuby
  • avo
NoYesOct 22, 2026
GHSA-58rx-96gf-w92xMEDIUM6.1
  • Ruby logoRuby
  • ransack
NoYesOct 25, 2026
CVE-2026-63183LOWN/A
  • Ruby logoRuby
  • omniauth
NoNoOct 22, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management