rack/file.rb (Rack::File) in Rack 1.5.x before 1.5.2 and 1.4.x before 1.4.5 allows…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- — Not recorded in CVSS 2.0
- Attack complexity
- Medium
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Partial · None · None
- Fix status
- Fixed
Attack profile from CVSS 2.0 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-22 and the CVSS impact.
Summary
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."
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | rack (RubyGems) | 1.5.0 to before 1.5.2 | 1.5.2 | Patch available | GHSA-85r7-w5mv-c849 |
| — | rack (RubyGems) | 1.4.0 to before 1.4.5 | 1.4.5 | Patch available | GHSA-85r7-w5mv-c849 |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- rack (RubyGems) Vendor— Affected 1.5.0 to before 1.5.2 Fixed in 1.5.2 Patch available GHSA-85r7-w5mv-c849
- rack (RubyGems) Vendor— Affected 1.4.0 to before 1.4.5 Fixed in 1.4.5 Patch available GHSA-85r7-w5mv-c849
CPE configurations NVD · 7
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:rack_project:rack:1.4.0:*:*:*:*:*:*:* | 1.4.0 | Vulnerable | Rack Project |
| cpe:2.3:a:rack_project:rack:1.4.1:*:*:*:*:*:*:* | 1.4.1 | Vulnerable | Rack Project |
| cpe:2.3:a:rack_project:rack:1.4.2:*:*:*:*:*:*:* | 1.4.2 | Vulnerable | Rack Project |
| cpe:2.3:a:rack_project:rack:1.4.3:*:*:*:*:*:*:* | 1.4.3 | Vulnerable | Rack Project |
| cpe:2.3:a:rack_project:rack:1.4.4:*:*:*:*:*:*:* | 1.4.4 | Vulnerable | Rack Project |
| cpe:2.3:a:rack_project:rack:1.5.0:*:*:*:*:*:*:* | 1.5.0 | Vulnerable | Rack Project |
| cpe:2.3:a:rack_project:rack:1.5.1:*:*:*:*:*:*:* | 1.5.1 | Vulnerable | Rack Project |
- cpe:2.3:a:rack_project:rack:1.4.0:*:*:*:*:*:*:* Versions 1.4.0 Vulnerable ·Rack Project
- cpe:2.3:a:rack_project:rack:1.4.1:*:*:*:*:*:*:* Versions 1.4.1 Vulnerable ·Rack Project
- cpe:2.3:a:rack_project:rack:1.4.2:*:*:*:*:*:*:* Versions 1.4.2 Vulnerable ·Rack Project
- cpe:2.3:a:rack_project:rack:1.4.3:*:*:*:*:*:*:* Versions 1.4.3 Vulnerable ·Rack Project
- cpe:2.3:a:rack_project:rack:1.4.4:*:*:*:*:*:*:* Versions 1.4.4 Vulnerable ·Rack Project
- cpe:2.3:a:rack_project:rack:1.5.0:*:*:*:*:*:*:* Versions 1.5.0 Vulnerable ·Rack Project
- cpe:2.3:a:rack_project:rack:1.5.1:*:*:*:*:*:*:* Versions 1.5.1 Vulnerable ·Rack Project
Remediation
- Fix · GHSA-85r7-w5mv-c849 rack (RubyGems) Fixed in 1.5.2 Advisory →
- Fix · GHSA-85r7-w5mv-c849 rack (RubyGems) Fixed in 1.4.5 Advisory →
Red Hat 1 advisory
- RHSA-2013:0638 Released 2013-03-12 · Red Hat rating ModerateRed Hat OpenShift Enterprise 1.1.2 update
- Red Hat OpenShift Enterprise Infrastructure ruby193-rubygem-rack-1:1.4.1-4.el6, rubygem-rack-1:1.3.0-4.el6op
- Red Hat OpenShift Enterprise Node jenkins-1.502-1.el6op, openshift-origin-cartridge-jenkins-1.4-1.0.3-1.el6op, ruby193-rubygem-rack-1:1.4.1-4.el6 +1
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat OpenShift Enterprise Infrastructure | Fixed | RHSA-2013:0638 |
| Red Hat OpenShift Enterprise Node | Fixed | RHSA-2013:0638 |
Not affected: 2 products
- Red Hat Enterprise MRG 2
- Red Hat Subscription Asset Manager
Timeline
- 2026-10-02 Threatist record created from CVE-2013-0262
- 2026-10-03 Alias added: GHSA-85r7-w5mv-c849
References
Other 12
- https://groups.google.com/forum/#%21msg/rack-devel/mZsuRonD7G8/DpZIOmMLbOgJ
- https://gist.github.com/rentzsch/4736940
- http://rack.github.com/
- https://bugzilla.redhat.com/show_bug.cgi?id=909071
- https://groups.google.com/forum/#%21msg/rack-devel/bf937jPZxJM/1s6x95vIhmAJ
- https://github.com/rack/rack/commit/6f237e4c9fab649d3750482514f0fde76c56ab30
- https://github.com/rack/rack/blob/master/lib/rack/file.rb#L56
- https://bugzilla.redhat.com/show_bug.cgi?id=909072
- https://github.com/rack/rack
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2013-0262.yml
- https://groups.google.com/forum/#!msg/rack-devel/bf937jPZxJM/1s6x95vIhmAJ
- https://groups.google.com/forum/#!msg/rack-devel/mZsuRonD7G8/DpZIOmMLbOgJ
More Rack Project Rack vulnerabilities
- TI-2022-12397 A sequence injection vulnerability exists in Rack <2.0.9.1, <2.1.4.1 and <2.2.3.1 which… CVSS 3.1CRITICAL 10.0
- TI-2022-12396 Uncontrolled resource consumption in https://github.com/rack/rack CVSS 3.1HIGH 7.5
- TI-2020-06579 Path traversal in https://github.com/rack/rack CVSS 3.1HIGH 8.6
- TI-2020-06602 Improper input validation in https://github.com/rack/rack CVSS 3.1HIGH 7.5
- TI-2018-11812 Uncontrolled resource consumption in Rack CVSS 3.0HIGH 7.5
- TI-2015-02854 lib/rack/utils.rb in Rack before 1.5.4 and 1.6.x before 1.6.2, as used with Ruby on Rails… CVSS 2.0MEDIUM 5.0
Sources
- CVE-2013-0262 · CVE Program
- CVE-2013-0262 · NVD
- FIRST EPSS
- GHSA-85r7-w5mv-c849 · GitHub Advisory Database · CC BY 4.0
- CVE-2013-0262 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences