CWE
22
Advisory Published
CVE Published
Updated

CVE-2008-1145: Path Traversal

First published: Mon Mar 03 2008(Updated: )

<a href="http://www.ruby-lang.org/en/news/2008/03/03/webrick-file-access-vulnerability/">http://www.ruby-lang.org/en/news/2008/03/03/webrick-file-access-vulnerability/</a> 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.

Credit: secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
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<=1.9
WEBrick<=1.9_1
WEBrick<=1.8
WEBrick<=1.8_p115
WEBrick<=1.8_p114
WEBrick
Ruby>=1.8.0<1.8.5.115
Ruby>=1.8.6<1.8.6.114
Ruby=1.9.0
Ruby=1.9.0.1
Fedora=7
Fedora=8

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • 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.

  • 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.

  • 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.

  • 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.

  • 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203