CVE-2013-0262 Rack Vulnerable to Path Traversal
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.
| Package | Affected | Fixed in |
|---|---|---|
rack RubyGems | From 1.4.0 | 1.4.5 |
rack RubyGems | From 1.4.0 | 1.4.5 |
rack RubyGems | From 1.5.0 | 1.5.2 |
rack RubyGems | From 1.5.0 | 1.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.
Other vulnerabilities in n/a
- CVE-2018-16470 Rack vulnerable to Denial of Service
- CVE-2013-0263 Rack arbitrary code execution via timing attack
- CVE-2013-0183 Rack rubygems receiving excessively long lines triggers out-of-memory error
- CVE-2011-5036 Rack Gem Subject to Denial of Service via Hash Collisions
- CVE-2012-6109 Rack vulnerable to REDoS
Sources
Also known as DEBIAN-CVE-2013-0262, GHSA-85r7-w5mv-c849, UBUNTU-CVE-2013-0262.