Skip to content

Commit 2b17782

Browse files
authored
Merge pull request #340 from greysteil/sprockets-cve
Add Path Traversal in Sprockets vulnerability
2 parents 3ba7d99 + dc9a8d4 commit 2b17782

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

gems/sprockets/CVE-2018-3760.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
gem: sprockets
3+
cve: 2018-3760
4+
url: https://groups.google.com/forum/#!topic/ruby-security-ann/2S9Pwz2i16k
5+
title: Path Traversal in Sprockets
6+
date: 2018-06-19
7+
description: |
8+
Specially crafted requests can be used to access files that exist on
9+
the filesystem that is outside an application's root directory, when the
10+
Sprockets server is used in production.
11+
12+
All users running an affected release should either upgrade or use one of the work arounds immediately.
13+
14+
Workaround:
15+
In Rails applications, work around this issue, set `config.assets.compile = false` and
16+
`config.public_file_server.enabled = true` in an initializer and precompile the assets.
17+
18+
This work around will not be possible in all hosting environments and upgrading is advised.
19+
20+
patched_versions:
21+
- ">= 2.12.5, < 3.0.0"
22+
- ">= 3.7.2, < 4.0.0"
23+
- ">= 4.0.0.beta8"

0 commit comments

Comments
 (0)