CVE Vulnerabilities

CVE-2026-34763

Permissive Regular Expression

Published: Apr 02, 2026 | Modified: Apr 16, 2026
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
5.3 MODERATE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

Rack is a modular Ruby web server interface. Prior to versions 2.2.23, 3.1.21, and 3.2.6, Rack::Directory interpolates the configured root path directly into a regular expression when deriving the displayed directory path. If root contains regex metacharacters such as +, *, or ., the prefix stripping can fail and the generated directory listing may expose the full filesystem path in the HTML output. This issue has been patched in versions 2.2.23, 3.1.21, and 3.2.6.

Weakness

The product uses a regular expression that does not sufficiently restrict the set of allowed values.

Affected Software

NameVendorStart VersionEnd Version
RackRack*2.2.23 (excluding)
RackRack3.0.0 (including)3.1.21 (excluding)
RackRack3.2.0 (including)3.2.6 (excluding)
Ruby-rackUbuntudevel*
Ruby-rackUbuntuesm-apps-legacy/xenial*
Ruby-rackUbuntuesm-apps/bionic*
Ruby-rackUbuntuesm-apps/focal*
Ruby-rackUbuntuesm-apps/jammy*
Ruby-rackUbuntuesm-apps/xenial*
Ruby-rackUbuntuesm-infra-legacy/trusty*
Ruby-rackUbuntujammy*
Ruby-rackUbuntunoble*
Ruby-rackUbuntuquesting*
Ruby-rackUbunturesolute*

Extended Description

This effectively causes the regexp to accept substrings that match the pattern, which produces a partial comparison to the target. In some cases, this can lead to other weaknesses. Common errors include:

Potential Mitigations

References