Skip to content
Noroxi
CVE-2008-1145· NVD / CVE Program· CNA redhat

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

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.

MediumCVSS 5.0 · v2.0—Proof of concept Fix available
Published
Mar 4, 2008
Updated
Jun 16, 2026
EPSS
27.8% · 98th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

28

Monitor

Low priority for now.

CVSS
20 / 40 · 5.0 / 10
CISA KEV
0 / 30 · Not listed
EPSS
8 / 30 · 27.8%

Affected systems

VendorProduct
ruby-langwebrick
ruby-langruby
fedoraprojectfedora

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • fedoraproject fedora7
  • fedoraproject fedora8
  • ruby-lang webrickall versions

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Red Hat:enterprise_linux:4::asirbbefore 0:1.8.1-7.el4_7.10:1.8.1-7.el4_7.1
Red Hat:enterprise_linux:4::asrubybefore 0:1.8.1-7.el4_7.10:1.8.1-7.el4_7.1
Red Hat:enterprise_linux:4::asruby-debuginfobefore 0:1.8.1-7.el4_7.10:1.8.1-7.el4_7.1
Red Hat:enterprise_linux:4::asruby-develbefore 0:1.8.1-7.el4_7.10:1.8.1-7.el4_7.1
Red Hat:enterprise_linux:4::asruby-docsbefore 0:1.8.1-7.el4_7.10:1.8.1-7.el4_7.1
Red Hat:enterprise_linux:4::asruby-libsbefore 0:1.8.1-7.el4_7.10:1.8.1-7.el4_7.1
Red Hat:enterprise_linux:4::asruby-modebefore 0:1.8.1-7.el4_7.10:1.8.1-7.el4_7.1
Red Hat:enterprise_linux:4::asruby-tcltkbefore 0:1.8.1-7.el4_7.10:1.8.1-7.el4_7.1
Red Hat:enterprise_linux:5::clientruby-docsbefore 0:1.8.5-5.el5_2.50:1.8.5-5.el5_2.5
Red Hat:enterprise_linux:5::clientruby-irbbefore 0:1.8.5-5.el5_2.50:1.8.5-5.el5_2.5
Red Hat:enterprise_linux:5::clientruby-libsbefore 0:1.8.5-5.el5_2.50:1.8.5-5.el5_2.5
Red Hat:enterprise_linux:5::clientruby-rdocbefore 0:1.8.5-5.el5_2.50:1.8.5-5.el5_2.5
Red Hat:enterprise_linux:5::clientruby-ribefore 0:1.8.5-5.el5_2.50:1.8.5-5.el5_2.5
Red Hat:enterprise_linux:5::clientruby-tcltkbefore 0:1.8.5-5.el5_2.50:1.8.5-5.el5_2.5
Red Hat:enterprise_linux:5::client_workstationrubybefore 0:1.8.5-5.el5_2.50:1.8.5-5.el5_2.5
Red Hat:enterprise_linux:5::client_workstationruby-debuginfobefore 0:1.8.5-5.el5_2.50:1.8.5-5.el5_2.5
Red Hat:enterprise_linux:5::client_workstationruby-develbefore 0:1.8.5-5.el5_2.50:1.8.5-5.el5_2.5
Red Hat:enterprise_linux:5::client_workstationruby-modebefore 0:1.8.5-5.el5_2.50:1.8.5-5.el5_2.5

Other highest-scoring records for the same primary product.

  • CVE-2009-4492WEBrick 1.3.1 in Ruby 1.8.6 through patchlevel 383, 1.8.7 through patchlevel 248, 1.8.8dev, 1.9.1 through patchlevel 376, and 1.9.2dev write
    35Monitor
  • CVE-2025-6442Ruby WEBrick read_header HTTP Request Smuggling Vulnerability
    23Monitor
  • CVE-2019-11879The WEBrick gem 1.4.2 for Ruby allows directory traversal if the attacker once had local access to create a symlink to a location outside of
    22Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
red hat:irb0:1.8.1-7.el4_7.1 · Red Hat:enterprise_linux:4::asPackage registry (OSV)
red hat:ruby0:1.8.1-7.el4_7.1 · Red Hat:enterprise_linux:4::asPackage registry (OSV)
red hat:ruby-debuginfo0:1.8.1-7.el4_7.1 · Red Hat:enterprise_linux:4::asPackage registry (OSV)
red hat:ruby-devel0:1.8.1-7.el4_7.1 · Red Hat:enterprise_linux:4::asPackage registry (OSV)
red hat:ruby-docs0:1.8.1-7.el4_7.1 · Red Hat:enterprise_linux:4::asPackage registry (OSV)
red hat:ruby-irb0:1.8.5-5.el5_2.5 · Red Hat:enterprise_linux:5::clientPackage registry (OSV)
red hat:ruby-libs0:1.8.1-7.el4_7.1 · Red Hat:enterprise_linux:4::asPackage registry (OSV)
red hat:ruby-mode0:1.8.1-7.el4_7.1 · Red Hat:enterprise_linux:4::asPackage registry (OSV)
red hat:ruby-rdoc0:1.8.5-5.el5_2.5 · Red Hat:enterprise_linux:5::clientPackage registry (OSV)
red hat:ruby-ri0:1.8.5-5.el5_2.5 · Red Hat:enterprise_linux:5::clientPackage registry (OSV)
red hat:ruby-tcltk0:1.8.1-7.el4_7.1 · Red Hat:enterprise_linux:4::asPackage registry (OSV)

Exploit status

Proof of concept available

A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.

Evidence

  • Exploit-DB entry ×1

Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.

Public exploit evidence
SourceKindDate
Exploit-DB entryremote2008-03-06

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

  1. Published
  2. First PoC+1 d
  3. TodaySep 30, 2026+6784 d
EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.

Technical details

Attack conditions

  • No special conditions are required; it is repeatable.

If successful

Confidentiality
P · data can be read
Integrity
none
Availability
none
Attack complexity
Low
Confidentiality impact
P
Integrity impact
None
Availability impact
None

CVSS vector

AV:N/AC:L/Au:N/C:P/I:N/A:N

nvd-primary

Root cause

A user-supplied file name is joined with the allowed directory, but the result is never checked to confirm it is still inside that directory.

A representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.

Vulnerable

ts
const file = path.join(ROOT, req.query.name);res.sendFile(file);

Fixed

ts
const file = path.resolve(ROOT, req.query.name);if (!file.startsWith(ROOT + path.sep)) {  return res.sendStatus(400);}res.sendFile(file);

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records