Skip to content
Fencer Vulns
medium 5.0

CVE-2008-1145 json

Directory traversal vulnerability in WEBrick in Ruby 1.8 before 1.8.5-p115 and 1.8.6-p114, and 1.9 through 1.9.0-1, when running on systems…

published 2008-03-04 18 y ago modified 2026-06-16 4 mo ago also EUVD-2008-1154

cvss
5.0
version 2.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
27.1%
EPSS 27.1% chance of exploitation in 30 days, percentile 98%
public exploits
1
Exploit-DB

Summary

Directory traversal vulnerability in WEBrick in Ruby 1.8 before 1.8.5-p115 and 1.8.6-p114, and 1.9 through 1.9.0-1, when running on systems that support backslash (\) path separators or case-insensitive file names, allows remote attackers to access arbitrary files via (1) "..%5c" (encoded backslash) sequences or (2) filenames that match patterns in the :NondisclosureName option.

Patch / fix

  • ruby-lang ruby 1.8.5.115, 1.8.6.114, 1.9.0.1
  • ruby RHEL 4 1.8.1-7.el4_7.1
  • ruby RHEL 5 1.8.5-5.el5_2.5
  • irb RHEL 4 1.8.1-7.el4_7.1
  • ruby-ri RHEL 5 1.8.5-5.el5_2.5
  • ruby-irb RHEL 5 1.8.5-5.el5_2.5
  • ruby-libs RHEL 4 1.8.1-7.el4_7.1
  • ruby-libs RHEL 5 1.8.5-5.el5_2.5
  • ruby-mode RHEL 4 1.8.1-7.el4_7.1

red hat advisories RHSA-2008:0897

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2008-1145 updated cvss 5.0

ruby: webrick directory traversal

  • Red Hat Enterprise Linux (v. 5 server) ruby 1.8.5-5.el5_2.5, ruby-ri 1.8.5-5.el5_2.5, ruby-irb 1.8.5-5.el5_2.5, ruby-libs 1.8.5-5.el5_2.5, ruby-mode 1.8.5-5.el5_2.5, ruby-rdoc 1.8.5-5.el5_2.5, +1 more Red Hat Enterprise Linux AS version 4 irb 1.8.1-7.el4_7.1, ruby 1.8.1-7.el4_7.1, ruby-libs 1.8.1-7.el4_7.1, ruby-mode 1.8.1-7.el4_7.1, ruby-tcltk 1.8.1-7.el4_7.1 Red Hat Enterprise Linux Desktop (v. 5 client) ruby 1.8.5-5.el5_2.5, ruby-ri 1.8.5-5.el5_2.5, ruby-irb 1.8.5-5.el5_2.5, ruby-libs 1.8.5-5.el5_2.5, ruby-mode 1.8.5-5.el5_2.5, ruby-rdoc 1.8.5-5.el5_2.5, +1 more Red Hat Enterprise Linux Desktop version 4 irb 1.8.1-7.el4_7.1, ruby 1.8.1-7.el4_7.1, ruby-libs 1.8.1-7.el4_7.1, ruby-mode 1.8.1-7.el4_7.1, ruby-tcltk 1.8.1-7.el4_7.1 Red Hat Enterprise Linux Desktop Workstation (v. 5 client) ruby 1.8.5-5.el5_2.5, ruby-ri 1.8.5-5.el5_2.5, ruby-irb 1.8.5-5.el5_2.5, ruby-libs 1.8.5-5.el5_2.5, ruby-mode 1.8.5-5.el5_2.5, ruby-rdoc 1.8.5-5.el5_2.5, +1 more Red Hat Enterprise Linux ES version 4 irb 1.8.1-7.el4_7.1, ruby 1.8.1-7.el4_7.1, ruby-libs 1.8.1-7.el4_7.1, ruby-mode 1.8.1-7.el4_7.1, ruby-tcltk 1.8.1-7.el4_7.1
    +1 more products
    Red Hat Enterprise Linux WS version 4 irb 1.8.1-7.el4_7.1, ruby 1.8.1-7.el4_7.1, ruby-libs 1.8.1-7.el4_7.1, ruby-mode 1.8.1-7.el4_7.1, ruby-tcltk 1.8.1-7.el4_7.1
    fixed: vendor fix RHSA-2008:0897

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Timeline

  1. Published
  2. First public exploit (EDB-5215)

Exploit prediction

27.10% chance of exploitation in the next 30 days, higher than 98% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • EDB-5215 Ruby 1.8.6/1.9 (WEBick HTTPd 1.3.1) - Directory Traversal remote, 2008-03-06
  • ruby-lang.org http://www.ruby-lang.org/en/news/2008/03/03/webrick-file-access-vulnerability/ referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:P/I:N/A:N

Classification

Weakness
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Improved CPE configurations. This old version of WEBrick embedded in old ruby versions was not versioned properly, so just report the vuln as against ruby itself.