Skip to content
OpenAdvisories
Unscored Public exploit CVE-2008-1145 EUVD-2008-1154GHSA-f279-rf2r-m6m5

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…

Published Mar 4, 2008 · Updated Aug 7, 2024 · Assigned by redhat

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
RHEL 5 ruby +8 1.8.5-5.el5_2.5 RHSA-2008:0897
RHEL 4 irb +6 1.8.1-7.el4_7.1 RHSA-2008:0897

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling ruby3.3-webrick 1.9.1-r0 —
Wolfi rolling ruby3.4-webrick 1.9.1-r3 —
Wolfi rolling ruby4.0-webrick 1.9.2-r0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 1

References