Skip to content
OpenAdvisories
Unscored CVE-2008-1891 EUVD-2008-1891GHSA-rhf2-x48g-5wr7

Directory traversal vulnerability in WEBrick in Ruby 1.8.4 and earlier, 1.8.5 before 1.8.5-p231, 1.8.6 before 1.8.6-p230, 1.8.7 before 1.8.…

Published Apr 18, 2008 · Updated Aug 7, 2024 · Assigned by mitre

Description

Directory traversal vulnerability in WEBrick in Ruby 1.8.4 and earlier, 1.8.5 before 1.8.5-p231, 1.8.6 before 1.8.6-p230, 1.8.7 before 1.8.7-p22, and 1.9.0 before 1.9.0-2, when using NTFS or FAT filesystems, allows remote attackers to read arbitrary CGI files via a trailing (1) + (plus), (2) %2b (encoded plus), (3) . (dot), (4) %2e (encoded dot), or (5) %20 (encoded space) character in the URI, possibly related to the WEBrick::HTTPServlet::FileHandler and WEBrick::HTTPServer.new functionality and the :DocumentRoot option.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 ruby3.3 +5 3.3.10-23.1.hum1 RHSA-2026:7305
Red Hat Hardened Images 1 ruby3.4 +5 3.4.8-31.1.hum1 RHSA-2026:7307
Red Hat Hardened Images 1 ruby4.0 +5 4.0.0-33.3.hum1 RHSA-2026:8838

Advisories 3

References