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
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."
- GHSA-85r7-w5mv-c849
- openSUSE-SU-2024:10115-1
- openSUSE-SU-2024:12119-1
- openSUSE-SU-2024:12397-1
- openSUSE-SU-2024:12974-1
- openSUSE-SU-2024:13167-1
- openSUSE-SU-2024:13726-1
- openSUSE-SU-2024:13727-1
- openSUSE-SU-2025:14811-1
- openSUSE-SU-2025:14875-1
- openSUSE-SU-2026:10286-1
- openSUSE-SU-2026:10358-1
- RHSA-2013:0638
- Published
- Feb 8, 2013
- Updated
- Jun 16, 2026
- EPSS
- 2.9% · 87th percentile
- CWE
- CWE-22
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
18
Monitor
Low priority for now.
- CVSS
- 17 / 40 · 4.3 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 2.9%
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for the hundreds of thousands of vulnerabilities in the database; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpAffected systems
| Vendor | Product | CPE |
|---|---|---|
| rack project | rack | cpe:2.3:a:rack_project:rack |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- rack project rack1.4.0
- rack project rack1.4.1
- rack project rack1.4.2
- rack project rack1.4.3
- rack project rack1.4.4
- rack project rack1.5.0
- rack project rack1.5.1
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | ruby-rack | before 1.4.1-2.1 | 1.4.1-2.1 |
| openSUSE:Tumbleweed | ruby3.2-rubygem-rack | before 3.0.7-1.2 | 3.0.7-1.2 |
| openSUSE:Tumbleweed | ruby3.2-rubygem-rack-2.2 | before 2.2.7-1.1 | 2.2.7-1.1 |
| openSUSE:Tumbleweed | rubyem-rack | before 1.4.7-1.8 | 1.4.7-1.8 |
| openSUSE:Tumbleweed | rubygem-rack | before 3.1.18-1.3 | 3.1.18-1.3 |
| openSUSE:Tumbleweed | rubygem-rack | before 2.2.3.1-1.1 | 2.2.3.1-1.1 |
| openSUSE:Tumbleweed | rubygem-rack | before 3.0.9.1-1.1 | 3.0.9.1-1.1 |
| openSUSE:Tumbleweed | rubygem-rack | before 3.1.12-1.1 | 3.1.12-1.1 |
| openSUSE:Tumbleweed | rubygem-rack-2.2 | before 2.2.22-1.1 | 2.2.22-1.1 |
| openSUSE:Tumbleweed | rubygem-rack-2.2 | before 2.2.8.1-1.1 | 2.2.8.1-1.1 |
| openSUSE:Tumbleweed | rubygem-rack-2.2 | before 2.2.11-1.1 | 2.2.11-1.1 |
| openSUSE:Tumbleweed | rubygem-rack-2.2 | before 2.2.4-1.1 | 2.2.4-1.1 |
| Red Hat:openshift:1::el6 | jenkins | before 0:1.502-1.el6op | 0:1.502-1.el6op |
| Red Hat:openshift:1::el6 | openshift-origin-cartridge-jenkins-1.4 | before 0:1.0.3-1.el6op | 0:1.0.3-1.el6op |
| Red Hat:openshift:1::el6 | ruby193-rubygem-rack | before 1:1.4.1-4.el6 | 1:1.4.1-4.el6 |
| Red Hat:openshift:1::el6 | rubygem-rack | before 1:1.3.0-4.el6op | 1:1.3.0-4.el6op |
| RubyGems | rack | from 1.4.0 · before 1.4.5 | 1.4.5 |
| RubyGems | rack | from 1.5.0 · before 1.5.2 | 1.5.2 |
Same product
rack project: all recordsOther highest-scoring records for the same primary product.
- CVE-2022-30123A sequence injection vulnerability exists in Rack <2.0.9.1, <2.1.4.1 and <2.2.3.1 which could allow is a possible shell escape in the Lint a41Plan
- CVE-2020-8161A directory traversal vulnerability exists in rack < 2.2.0 that allows an attacker perform directory traversal vulnerability in the Rack::Di35Monitor
- CVE-2022-30122A possible denial of service vulnerability exists in Rack <2.0.9.1, <2.1.4.1 and <2.2.3.1 in the multipart parsing component of Rack.31Monitor
- CVE-2020-8184A reliance on cookies without validation/integrity check security vulnerability exists in rack < 2.2.3, rack < 2.1.4 that makes it is possib31Monitor
- CVE-2018-16470There is a possible DoS vulnerability in the multipart parser in Rack before 2.0.6.31Monitor
- CVE-2018-16471There is a possible XSS vulnerability in Rack before 2.0.6 and 1.6.11.25Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:ruby-rack | 1.4.1-2.1 · Debian:12 | Package registry (OSV) |
| opensuse:ruby3.2-rubygem-rack | 3.0.7-1.2 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:ruby3.2-rubygem-rack-2.2 | 2.2.7-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:rubyem-rack | 1.4.7-1.8 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:rubygem-rack | 2.2.3.1-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:rubygem-rack-2.2 | 2.2.4-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| red hat:jenkins | 0:1.502-1.el6op · Red Hat:openshift:1::el6 | Package registry (OSV) |
| red hat:openshift-origin-cartridge-jenkins-1.4 | 0:1.0.3-1.el6op · Red Hat:openshift:1::el6 | Package registry (OSV) |
| red hat:ruby193-rubygem-rack | 1:1.4.1-4.el6 · Red Hat:openshift:1::el6 | Package registry (OSV) |
| red hat:rubygem-rack | 1:1.3.0-4.el6op · Red Hat:openshift:1::el6 | Package registry (OSV) |
| RubyGems:rack | 1.4.5 | Package registry (OSV) |
| RubyGems:rack | 1.5.2 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
If successful
- Confidentiality
- P · data can be read
- Integrity
- none
- Availability
- none
- Attack complexity
- M
- Confidentiality impact
- P
- Integrity impact
- None
- Availability impact
- None
Weakness class (CWE)
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')CVSS vector
AV:N/AC:M/Au:N/C:P/I:N/A:N
nvd-primary
Root cause
A user-supplied file name is joined with the allowed directory, but the result is never checked to confirm it is still inside that directory.
The bug in code
The whole CWE-22 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
const file = path.join(ROOT, req.query.name);res.sendFile(file);Fixed
const file = path.resolve(ROOT, req.query.name);if (!file.startsWith(ROOT + path.sep)) { return res.sendStatus(400);}res.sendFile(file);Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Path TraversalCAPEC-126likelihood: High · Very High
- Using Slashes and URL Encoding Combined to Bypass Validation LogicCAPEC-64likelihood: High · High
- Manipulating Web Input to File System CallsCAPEC-76likelihood: High · Very High
- Using Escaped Slashes in Alternate EncodingCAPEC-78likelihood: High · High
- Using Slashes in Alternate EncodingCAPEC-79likelihood: High · High
ATT&CK techniques
—
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- lists.opensuse.org/opensuse-updates/2013-03/msg00048.html
- rack.github.com/
- secunia.com/advisories/52033
- bugzilla.redhat.com/show_bug.cgi?id=909071
- bugzilla.redhat.com/show_bug.cgi?id=909072
- gist.github.com/rentzsch/4736940
- github.com/rack/rack/blob/master/lib/rack/file.rb#L56
- github.com/rack/rack/commit/6f237e4c9fab649d3750482514f0fde76c56ab30
- groups.google.com/forum/#%21msg/rack-devel/bf937jPZxJM/1s6x95vIhmAJ
- groups.google.com/forum/#%21msg/rack-devel/mZsuRonD7G8/DpZIOmMLbOgJ
Vendor advisories and official records. Exploit/PoC links are deliberately left out.