Skip to content

Commit 981eb85

Browse files
rakviumRubySec CI
authored and
RubySec CI
committed
Updated advisory posts against rubysec/ruby-advisory-db@b7fc2b1
1 parent 849134a commit 981eb85

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
layout: advisory
3+
title: 'CVE-2025-27610 (rack): Local File Inclusion in Rack::Static'
4+
comments: false
5+
categories:
6+
- rack
7+
advisory:
8+
gem: rack
9+
cve: 2025-27610
10+
ghsa: 7wqh-767x-r66v
11+
url: https://github.com/rack/rack/security/advisories/GHSA-7wqh-767x-r66v
12+
title: Local File Inclusion in Rack::Static
13+
date: 2025-03-10
14+
description: |-
15+
## Summary
16+
17+
`Rack::Static` can serve files under the specified `root:` even if `urls:` are provided, which may expose other files under the specified `root:` unexpectedly.
18+
19+
## Details
20+
21+
The vulnerability occurs because `Rack::Static` does not properly sanitize user-supplied paths before serving files. Specifically, encoded path traversal sequences are not correctly validated, allowing attackers to access files outside the designated static file directory.
22+
23+
## Impact
24+
25+
By exploiting this vulnerability, an attacker can gain access to all files under the specified `root:` directory, provided they are able to determine then path of the file.
26+
27+
## Mitigation
28+
29+
- Update to the latest version of Rack, or
30+
- Remove usage of `Rack::Static`, or
31+
- Ensure that `root:` points at a directory path which only contains files which should be accessed publicly.
32+
33+
It is likely that a CDN or similar static file server would also mitigate the issue.
34+
cvss_v3: 7.5
35+
cvss_v4:
36+
patched_versions:
37+
- "~> 2.2.13"
38+
- "~> 3.0.14"
39+
- ">= 3.1.12"
40+
related:
41+
url:
42+
- https://github.com/rack/rack/security/advisories/GHSA-7wqh-767x-r66v
43+
- https://github.com/rack/rack/commit/50caab74fa01ee8f5dbdee7bb2782126d20c6583
44+
- https://github.com/advisories/GHSA-7wqh-767x-r66v
45+
---

0 commit comments

Comments
 (0)