Live threats

All CVEs / Ruby-lang

CVE-2008-1891Ruby-lang Ruby

Medium 5.0 No auth needed

Priority
45
CVSS 2.0
5.0
EPSS
2.8%
probability of exploitation in 30 days · percentile 87
Auth required
No
Published
Apr 18, 2008
Updated
Jun 16, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
Vector
AV:N/AC:L/Au:N/C:P/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Ruby.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
ruby-langruby≤ 1.9.0
ruby-langruby1.8.5
ruby-langruby1.8.6

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.