CVE-2013-0262 Rack Vulnerable to Path Traversal

Medium 4.3 Published Updated

Attackers can read arbitrary files outside the intended root directory via crafted PATH_INFO in Rack::File, exposing sensitive data.

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

What is CVE-2013-0262?

CVE-2013-0262 is a medium-severity path traversal vulnerability in n/a, published on 8 Feb 2013. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

rack/file.rb (Rack::File) in Rack 1.5.x before 1.5.2 and 1.4.x before 1.4.5 allows attackers to access arbitrary files outside the intended root directory via a crafted PATH_INFO environment variable, probably a directory traversal vulnerability that is remotely exploitable, aka "symlink path traversals."

Weakness: CWE-22

Which versions are affected by CVE-2013-0262?

4 open source packages ship an affected version, including rack. It affects 1 product.

PackageAffectedFixed in
rack RubyGemsFrom 1.4.01.4.5
rack RubyGemsFrom 1.4.01.4.5
rack RubyGemsFrom 1.5.01.5.2
rack RubyGemsFrom 1.5.01.5.2

Products include Rack Project Rack.

How do I fix CVE-2013-0262?

Upgrade rack to a fixed version for your release line: 1.4.5 or 1.5.2.

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

Is CVE-2013-0262 being exploited?

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

Sources

Also known as DEBIAN-CVE-2013-0262, GHSA-85r7-w5mv-c849, UBUNTU-CVE-2013-0262.

Is CVE-2013-0262 in your software?

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

Check your SBOMs for free