CVE-2008-1145 Path traversal in n/a

Medium 5.0 Published Updated

Remote attackers can access arbitrary files via directory traversal in WEBrick when backslash separators or case-insensitive names are supported.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2008-1145?

CVE-2008-1145 is a medium-severity path traversal vulnerability in Fedoraproject Fedora, published on 4 Mar 2008. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-22

Which versions are affected by CVE-2008-1145?

It affects 2 products.

Products include Fedoraproject Fedora, Ruby-Lang Webrick.

How do I fix CVE-2008-1145?

Upgrade to a fixed version.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2008-1145 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2008-1145 exists.

Public exploit code: 1 Exploit-DB entry.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as GHSA-f279-rf2r-m6m5, MINI-g877-gp2c-x8fr, MINI-q2gw-f69f-5q77.

Is CVE-2008-1145 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free