Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
5.0
CVE-2008-1145: WEBrick in Ruby can let attackers read any file
CVE-2008-1145 · published 18 years ago
Summary
The WEBrick web server component included with Ruby versions before certain patches can be tricked into revealing files from the server’s file system. This happens on operating systems that use backslashes in paths or ignore case in file names, allowing outsiders to request files they shouldn’t see. Update Ruby to the latest version or apply the security patches that fix the path‑handling logic.
What to do
The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.
Affected software
| Vendor | Product | Affected versions |
|---|---|---|
| ruby-lang | webrick |
All versions
cpe:2.3:a:ruby-lang:webrick:-:*:*:*:*:ruby:*:* |
| fedoraproject | fedora |
7 8 cpe:2.3:o:fedoraproject:fedora:7:*:*:*:*:*:*:* |
Original advisory text
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-insens...
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.
References
- http://lists.apple.com/archives/security-announce/2008//Jun/msg00002.html Broken Link Mailing List
- http://lists.opensuse.org/opensuse-security-announce/2008-08/msg00006.html Mailing List Third Party Advisory
- http://secunia.com/advisories/29232 Not Applicable Vendor Advisory
- http://secunia.com/advisories/29357 Not Applicable Vendor Advisory
- http://secunia.com/advisories/29536 Not Applicable
- http://secunia.com/advisories/30802 Not Applicable
- http://secunia.com/advisories/31687 Not Applicable
- http://secunia.com/advisories/32371 Not Applicable
- http://support.apple.com/kb/HT2163 Third Party Advisory
- http://wiki.rpath.com/Advisories:rPSA-2008-0123 Broken Link
- http://wiki.rpath.com/wiki/Advisories:rPSA-2008-0123 Broken Link
- http://www.kb.cert.org/vuls/id/404515 Third Party Advisory US Government Resource
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:141 Broken Link
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:142 Broken Link
- http://www.redhat.com/support/errata/RHSA-2008-0897.html Third Party Advisory
- http://www.ruby-lang.org/en/news/2008/03/03/webrick-file-access-vulnerability/ Exploit Patch Vendor Advisory
- http://www.securityfocus.com/archive/1/489205/100/0/threaded Third Party Advisory VDB Entry
- http://www.securityfocus.com/archive/1/489218/100/0/threaded Third Party Advisory VDB Entry
- http://www.securityfocus.com/archive/1/490056/100/0/threaded Third Party Advisory VDB Entry
- http://www.securityfocus.com/bid/28123 Broken Link Third Party Advisory VDB Entry
- http://www.securitytracker.com/id?1019562 Broken Link Third Party Advisory VDB Entry
- http://www.vupen.com/english/advisories/2008/0787 Permissions Required
- http://www.vupen.com/english/advisories/2008/1981/references Permissions Required
- https://exchange.xforce.ibmcloud.com/vulnerabilities/41010 Third Party Advisory VDB Entry
- https://issues.rpath.com/browse/RPL-2338 Broken Link
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3... Broken Link
- https://www.exploit-db.com/exploits/5215 Exploit Third Party Advisory VDB Entry
- https://www.redhat.com/archives/fedora-package-announce/2008-March/msg00338.html Third Party Advisory
- https://www.redhat.com/archives/fedora-package-announce/2008-March/msg00354.html Third Party Advisory
Internet-facing
14 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically (estimated)
- Gives an attacker partial control (estimated)
Severity
5.0
Medium
Type
CWE-22Path Traversal
Timeline
Published4 Mar 2008
Updated20 Oct 2026
First seen29 Sep 2026
Sources
CVE-2008-1145 · NVD
Track software like this
Free during beta