CVE-2008-1145
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…
Check your servers for CVE-2008-1145
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2008-1145 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Exploitation
EPSS 27.1%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 98.4% of all scored CVEs. Scores of 28 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2008-1145 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2008-1145RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2008-1145Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2008-1145
trivy image --scanners vuln IMAGE | grep CVE-2008-1145
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- SUSE-SR:2008:017 lists.opensuse.org · vendor advisory
- http://wiki.rpath.com/wiki/Advisories:rPSA-2008-0123 wiki.rpath.com
- http://support.apple.com/kb/HT2163 support.apple.com
- 29357 secunia.com · third party advisory
- VU#404515 kb.cert.org · third party advisory
- MDVSA-2008:141 mandriva.com · vendor advisory
- 29232 secunia.com · third party advisory
- 31687 secunia.com · third party advisory
- FEDORA-2008-2458 redhat.com · vendor advisory
- RHSA-2008:0897 redhat.com · vendor advisory
- APPLE-SA-2008-06-30 lists.apple.com · vendor advisory
- http://www.ruby-lang.org/en/news/2008/03/03/webrick-file-access-vulnerability/ ruby-lang.org
7 more
- 30802 secunia.com · third party advisory
- https://issues.rpath.com/browse/RPL-2338 issues.rpath.com
- 32371 secunia.com · third party advisory
- MDVSA-2008:142 mandriva.com · vendor advisory
- 29536 secunia.com · third party advisory
- FEDORA-2008-2443 redhat.com · vendor advisory
- http://wiki.rpath.com/Advisories:rPSA-2008-0123 wiki.rpath.com
Exploits and proof of concept
- 5215 exploit-db.com · exploit
Other references
- 20080325 rPSA-2008-0123-1 ruby securityfocus.com · mailing list
- 28123 securityfocus.com · vdb entry
- 20080306 [DSECRG-08-018] Ruby 1.8.6 (Webrick Httpd 1.3.1) Directory traversal file Download Vulnerability securityfocus.com · mailing list
- ADV-2008-1981 vupen.com · vdb entry
- ruby-webrick-directory-traversal(41010) exchange.xforce.ibmcloud.com · vdb entry
- 20080306 Re: [DSECRG-08-018] Ruby 1.8.6 (Webrick Httpd 1.3.1) Directory traversal file Download Vulnerability securityfocus.com · mailing list
- ADV-2008-0787 vupen.com · vdb entry
- oval:org.mitre.oval:def:10937 oval.cisecurity.org · vdb entry, signature
- 1019562 securitytracker.com · vdb entry
Source: the record CVE-2008-1145 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse