Skip to content

Commit dc9a8d4

Browse files
authored
Added workaround
1 parent 82ec625 commit dc9a8d4

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

gems/sprockets/CVE-2018-3760.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,18 @@ url: https://groups.google.com/forum/#!topic/ruby-security-ann/2S9Pwz2i16k
55
title: Path Traversal in Sprockets
66
date: 2018-06-19
77
description: |
8-
Specially crafted requests can be used to access files that exists on
8+
Specially crafted requests can be used to access files that exist on
99
the filesystem that is outside an application's root directory, when the
1010
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+
1120
patched_versions:
1221
- ">= 2.12.5, < 3.0.0"
1322
- ">= 3.7.2, < 4.0.0"

0 commit comments

Comments
 (0)