CVE-2008-1891 Path traversal in n/a

Medium 5.0 Published Updated

Remote attackers can read arbitrary CGI files via directory traversal in WEBrick when using NTFS or FAT filesystems.

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-1891?

CVE-2008-1891 is a medium-severity path traversal vulnerability in Ruby-Lang Ruby, published on 18 Apr 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.4 and earlier, 1.8.5 before 1.8.5-p231, 1.8.6 before 1.8.6-p230, 1.8.7 before 1.8.7-p22, and 1.9.0 before 1.9.0-2, when using NTFS or FAT filesystems, allows remote attackers to read arbitrary CGI files via a trailing (1) + (plus), (2) %2b (encoded plus), (3) . (dot), (4) %2e (encoded dot), or (5) %20 (encoded space) character in the URI, possibly related to the WEBrick::HTTPServlet::FileHandler and WEBrick::HTTPServer.new functionality and the :DocumentRoot option.

Weakness: CWE-22

Which versions are affected by CVE-2008-1891?

It affects 1 product.

Products include Ruby-Lang Ruby.

How do I fix CVE-2008-1891?

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-1891 being exploited?

There is no known exploitation of CVE-2008-1891 in the wild and no public exploit code.

All Ruby-Lang Ruby vulnerabilities

Sources

Also known as GHSA-rhf2-x48g-5wr7.

Is CVE-2008-1891 in your software?

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

Check your SBOMs for free