Ruby WEBrick directory traversal

ruby-webrick-directory-traversal (41010) The risk level is classified as MediumMedium Risk


Ruby could allow a remote attacker to traverse directories on the system, caused by an error in the WEBrick library. An attacker could send a specially-crafted URL request containing an encoded backslash (..%5c) or files that match patterns specified in the :NondisclosureName option to view arbitrary files on the system.


Base Score: 4.3
  Access Vector: Network
  Access Complexity: Medium
  Authentication: None
  Confidentiality Impact: Partial
  Integrity Impact: None
  Availability Impact: None
Temporal Score: 3.7
  Exploitability: High
  Remediation Level: Official-Fix
  Report Confidence: Confirmed


Obtain Information


Refer to the Ruby Web site for patch, upgrade or suggested workaround information. See References.


  • Ruby Programming Language Web site: File access vulnerability of WEBrick.
  • BID-28123: Ruby WEBrick Remote Directory Traversal and Information Disclosure Vulnerabilities
  • 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 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.
  • MDVSA-2008:141: Updated ruby packages fix vulnerabilities
  • MDVSA-2008:142: Updated ruby packages fix vulnerabilities
  • OSVDB ID: 42615: Ruby WEBrick WEBrick::HTTPServ* Encoded Traversal Arbitrary File Access
  • OSVDB ID: 42616: Ruby WEBrick WEBrick::HTTPServ* :NondisclosureName Option Mixed Case Arbitrary File Access
  • RHSA-2008-0897: Moderate: ruby security update
  • SA29232: Ruby WEBrick Information Disclosure Vulnerabilities
  • SA30802: Apple Mac OS X Security Update Fixes Multiple Vulnerabilities
  • SECTRACK ID: 1019562: Ruby Directory Traversal Flaw in WEBrick Library Lets Remote Users View Files on the Target System.
  • SUSE-SR:2008:017: SUSE Security Summary Report
  • US-CERT VU#404515: Ruby WEBrick vulnerable to directory traversal

Platforms Affected:

  • MandrakeSoft Mandrake Linux 2007.1 X86_64
  • MandrakeSoft Mandrake Linux 2007.1
  • MandrakeSoft Mandrake Linux 2008.0
  • MandrakeSoft Mandrake Linux 2008.0 X86_64
  • MandrakeSoft Mandrake Linux Corporate Server 3.0 X86_64
  • MandrakeSoft Mandrake Linux Corporate Server 3.0
  • MandrakeSoft Mandrake Linux Corporate Server 4.0
  • MandrakeSoft Mandrake Linux Corporate Server 4.0 X86_64
  • RedHat Enterprise Linux 4 ES
  • RedHat Enterprise Linux 4 Desktop
  • RedHat Enterprise Linux 4 AS
  • RedHat Enterprise Linux 4 WS
  • RedHat Enterprise Linux 4.7.z AS
  • RedHat Enterprise Linux 5 Client
  • RedHat Enterprise Linux 5
  • RedHat Enterprise Linux 5 Client Workstation
  • RedHat Enterprise Linux 5.2.z EUS
  • RedHat Red Hat Enterprise Linux 4.7.z ES
  • Ruby-lang Ruby 1.8.4 and prior
  • Ruby-lang Ruby 1.8.5-p114 and prior
  • Ruby-lang Ruby 1.8.6-p113 and prior
  • Ruby-lang Ruby 1.9.0-1 and prior


Mar 04, 2008

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email ignore thisxforceignore this@ignore thisus.ignore thisibm.comignore this

Return to the main page