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.
References (11)
Core 11
Core References
Vendor Advisory third-party-advisory
x_refsource_secunia
http://secunia.com/advisories/29794
Mailing List vendor-advisory
x_refsource_suse
http://lists.opensuse.org/opensuse-security-announce/2008-08/msg00006.html
Vendor Advisory vendor-advisory
x_refsource_mandriva
http://www.mandriva.com/security/advisories?name=MDVSA-2008:141
Third Party Advisory, VDB Entry vdb-entry
x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/41824
Third Party Advisory third-party-advisory
x_refsource_secunia
http://secunia.com/advisories/31687
Third Party Advisory x_refsource_misc
http://aluigi.altervista.org/adv/webrickcgi-adv.txt
Vendor Advisory vendor-advisory
x_refsource_fedora
https://www.redhat.com/archives/fedora-package-announce/2008-June/msg00937.html
Vendor Advisory vendor-advisory
x_refsource_mandriva
http://www.mandriva.com/security/advisories?name=MDVSA-2008:140
Third Party Advisory third-party-advisory
x_refsource_secunia
http://secunia.com/advisories/30831
Third Party Advisory vdb-entry
x_refsource_vupen
http://www.vupen.com/english/advisories/2008/1245/references
Various Sources x_refsource_confirm
http://www.ruby-lang.org/en/news/2008/06/20/arbitrary-code-execution-vulnerabilities/
Scores
EPSS
0.0281
EPSS Percentile
84.8%
Details
CWE
CWE-22
Status
published
Products (3)
ruby-lang/ruby
1.8.5
ruby-lang/ruby
1.8.6
ruby-lang/ruby
< 1.9.0
Published
Apr 18, 2008
Tracked Since
Feb 18, 2026