CVE-2008-1145: Path Traversal

Published Mar 3, 2008
·
Updated

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.

Other sources

http://www.ruby-lang.org/en/news/2008/03/03/webrick-file-access-vulnerability/

WEBrick, a standard library of Ruby to implement HTTP servers, has file access vulnerability.

1. Systems that accept backslash (\) as a path separator, such as Windows. 2. Systems that use case insensitive filesystems such as NTFS on Windows, HFS on Mac OS X.

Attacker can access private files by sending a url with url encoded backslash (\). This works only on systems that accept backslash as a path separator. Or they could bypass restrictions with case-insensitive filesystems.

Red Hat

Affected Software

14 affected componentsFixes available
redhat/ruby<0:1.8.1-7.el4_7.1
0:1.8.1-7.el4_7.1
redhat/ruby<0:1.8.5-5.el5_2.5
0:1.8.5-5.el5_2.5
WEBrick webrick<=1.9
WEBrick webrick<=1.9_1
WEBrick webrick<=1.8
WEBrick webrick<=1.8_p115
WEBrick webrick<=1.8_p114
ruby-lang Webrick Ruby
ruby-lang Ruby>=1.8.0<1.8.5.115
ruby-lang Ruby>=1.8.6<1.8.6.114
ruby-lang Ruby=1.9.0
ruby-lang Ruby=1.9.0.1
Fedoraproject Fedora=7
Fedoraproject Fedora=8

Event History

Mar 3, 2008
CVE Published
via Red Hat·12:00 AM
Mar 4, 2008
Data Sourced
via Red Hat·11:24 AM
DescriptionSeverityAffected Software
CVE Published
via MITRE·11:00 PM
Data Sourced
via MITRE·11:00 PM
Description

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2008-1145?

CVE-2008-1145 is classified as a moderate severity vulnerability due to its potential to expose sensitive files.

2

How do I fix CVE-2008-1145?

To mitigate CVE-2008-1145, upgrade to a version of Ruby that is patched for this vulnerability, such as Ruby 1.8.6 or later.

3

Which versions of WEBrick are affected by CVE-2008-1145?

CVE-2008-1145 affects all versions of WEBrick prior to 1.8.6 and 1.9.0.

4

Is my Ruby installation vulnerable to CVE-2008-1145?

If you are using Ruby versions 1.8.0 to 1.8.5 or any version before 1.8.6, your installation may be vulnerable to CVE-2008-1145.

5

What is the impact of exploiting CVE-2008-1145?

Exploiting CVE-2008-1145 could allow an attacker to access arbitrary files on the server, leading to potential data exposure.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203