rubygem-sprockets: Path traversal in forbidden_request?() can allow remote attackers to read arbitrary files
Published Jun 26, 2018
7.5
HIGHCVSS 3.0
EPSS 26.72%
Description
There is an information leak vulnerability in Sprockets. Versions Affected: 4.0.0.beta7 and lower, 3.7.1 and lower, 2.12.4 and lower. Specially crafted requests can be used to access files that exists on the filesystem that is outside an application's root directory, when the Sprockets server is used in production. All users running an affected release should either upgrade or use one of the work arounds immediately.
Affected products
-
- Version 4.0.0.beta8, 3.7.2, 2.12.5StatusaffectedConstraints-
- Version
Configuration 1
- 4.5
- 4.6
- 6.0
- 6.7
- 7.0
- 7.3
- 7.4
- 7.5
- 7.6
Configuration 2
- ≥ 2.0.0 · ≤ 2.12.4
- ≥ 3.0.0 · ≤ 3.7.1
- 4.0.0
- 4.0.0
- 4.0.0
- 4.0.0
- 4.0.0
- 4.0.0
- 4.0.0
Configuration 3
- 9.0
No data.
CloudForms Management Engine 5.8
ansible-tower-0:3.1.8-1.el7at
Fixed · RHSA-2018:2745
CloudForms Management Engine 5.8
cfme-0:5.8.5.1-1.el7cf
Fixed · RHSA-2018:2745
CloudForms Management Engine 5.8
cfme-appliance-0:5.8.5.1-1.el7cf
Fixed · RHSA-2018:2745
CloudForms Management Engine 5.8
cfme-gemset-0:5.8.5.1-1.el7cf
Fixed · RHSA-2018:2745
CloudForms Management Engine 5.8
rh-postgresql95-postgresql-pglogical-0:1.2.1-2.el7cf
Fixed · RHSA-2018:2745
CloudForms Management Engine 5.9
cfme-0:5.9.4.7-1.el7cf
Fixed · RHSA-2018:2561
CloudForms Management Engine 5.9
cfme-amazon-smartstate-0:5.9.4.7-1.el7cf
Fixed · RHSA-2018:2561
CloudForms Management Engine 5.9
cfme-appliance-0:5.9.4.7-1.el7cf
Fixed · RHSA-2018:2561
CloudForms Management Engine 5.9
cfme-gemset-0:5.9.4.7-1.el7cf
Fixed · RHSA-2018:2561
CloudForms Management Engine 5.9
rh-postgresql95-postgresql-pglogical-0:2.1.0-4.el7cf
Fixed · RHSA-2018:2561
CloudForms Management Engine 5.9
rh-ruby23-rubygem-redhat_access_cfme-0:2.0.3-1.el7cf
Fixed · RHSA-2018:2561
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-ror42-rubygem-sprockets-0:3.2.0-5.el6
Fixed · RHSA-2018:2244
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-ror50-rubygem-sprockets-0:3.7.1-2.el6
Fixed · RHSA-2018:2245
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
rh-ror42-rubygem-sprockets-0:3.2.0-5.el6
Fixed · RHSA-2018:2244
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
rh-ror50-rubygem-sprockets-0:3.7.1-2.el6
Fixed · RHSA-2018:2245
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-ror42-rubygem-sprockets-0:3.2.0-5.el7
Fixed · RHSA-2018:2244
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-ror50-rubygem-sprockets-0:3.7.1-2.el7
Fixed · RHSA-2018:2245
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
rh-ror42-rubygem-sprockets-0:3.2.0-5.el7
Fixed · RHSA-2018:2244
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
rh-ror50-rubygem-sprockets-0:3.7.1-2.el7
Fixed · RHSA-2018:2245
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-ror42-rubygem-sprockets-0:3.2.0-5.el7
Fixed · RHSA-2018:2244
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-ror50-rubygem-sprockets-0:3.7.1-2.el7
Fixed · RHSA-2018:2245
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
rh-ror42-rubygem-sprockets-0:3.2.0-5.el7
Fixed · RHSA-2018:2244
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
rh-ror50-rubygem-sprockets-0:3.7.1-2.el7
Fixed · RHSA-2018:2245
Red Hat Ceph Storage 1.3
ruby193-rubygem-sprockets
Will not fix
Red Hat Satellite 6
ruby193-rubygem-sprockets
Not affected
Red Hat Subscription Asset Manager
ruby193-rubygem-sprockets
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| CloudForms Management Engine 5.8 | ansible-tower-0:3.1.8-1.el7at | Fixed | RHSA-2018:2745 |
| CloudForms Management Engine 5.8 | cfme-0:5.8.5.1-1.el7cf | Fixed | RHSA-2018:2745 |
| CloudForms Management Engine 5.8 | cfme-appliance-0:5.8.5.1-1.el7cf | Fixed | RHSA-2018:2745 |
| CloudForms Management Engine 5.8 | cfme-gemset-0:5.8.5.1-1.el7cf | Fixed | RHSA-2018:2745 |
| CloudForms Management Engine 5.8 | rh-postgresql95-postgresql-pglogical-0:1.2.1-2.el7cf | Fixed | RHSA-2018:2745 |
| CloudForms Management Engine 5.9 | cfme-0:5.9.4.7-1.el7cf | Fixed | RHSA-2018:2561 |
| CloudForms Management Engine 5.9 | cfme-amazon-smartstate-0:5.9.4.7-1.el7cf | Fixed | RHSA-2018:2561 |
| CloudForms Management Engine 5.9 | cfme-appliance-0:5.9.4.7-1.el7cf | Fixed | RHSA-2018:2561 |
| CloudForms Management Engine 5.9 | cfme-gemset-0:5.9.4.7-1.el7cf | Fixed | RHSA-2018:2561 |
| CloudForms Management Engine 5.9 | rh-postgresql95-postgresql-pglogical-0:2.1.0-4.el7cf | Fixed | RHSA-2018:2561 |
| CloudForms Management Engine 5.9 | rh-ruby23-rubygem-redhat_access_cfme-0:2.0.3-1.el7cf | Fixed | RHSA-2018:2561 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-ror42-rubygem-sprockets-0:3.2.0-5.el6 | Fixed | RHSA-2018:2244 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-ror50-rubygem-sprockets-0:3.7.1-2.el6 | Fixed | RHSA-2018:2245 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | rh-ror42-rubygem-sprockets-0:3.2.0-5.el6 | Fixed | RHSA-2018:2244 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | rh-ror50-rubygem-sprockets-0:3.7.1-2.el6 | Fixed | RHSA-2018:2245 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-ror42-rubygem-sprockets-0:3.2.0-5.el7 | Fixed | RHSA-2018:2244 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-ror50-rubygem-sprockets-0:3.7.1-2.el7 | Fixed | RHSA-2018:2245 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS | rh-ror42-rubygem-sprockets-0:3.2.0-5.el7 | Fixed | RHSA-2018:2244 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS | rh-ror50-rubygem-sprockets-0:3.7.1-2.el7 | Fixed | RHSA-2018:2245 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-ror42-rubygem-sprockets-0:3.2.0-5.el7 | Fixed | RHSA-2018:2244 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-ror50-rubygem-sprockets-0:3.7.1-2.el7 | Fixed | RHSA-2018:2245 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-ror42-rubygem-sprockets-0:3.2.0-5.el7 | Fixed | RHSA-2018:2244 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-ror50-rubygem-sprockets-0:3.7.1-2.el7 | Fixed | RHSA-2018:2245 |
| Red Hat Ceph Storage 1.3 | ruby193-rubygem-sprockets | Will not fix | n/a |
| Red Hat Satellite 6 | ruby193-rubygem-sprockets | Not affected | n/a |
| Red Hat Subscription Asset Manager | ruby193-rubygem-sprockets | Will not fix | n/a |
No package ranges for this CVE.
Remediation
Red Hat mitigation
Ensure config.assets.compile = false in production.rb.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
AV:N/AC:L/Au:N/C:P/I:N/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (28 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 26.72% (0.26717) | 97.97th | v5 (v2026.06.15) |
| Sep 22, 2026 | 26.72% (0.26717) | 97.93th | v5 (v2026.06.15) |
| Sep 21, 2026 | 16.08% (0.16077) | 96.82th | v5 (v2026.06.15) |
| Sep 6, 2026 | 26.72% (0.26717) | 97.89th | v5 (v2026.06.15) |
| Sep 5, 2026 | 16.08% (0.16077) | 96.76th | v5 (v2026.06.15) |
| Aug 30, 2026 | 26.72% (0.26717) | 97.88th | v5 (v2026.06.15) |
| Aug 28, 2026 | 16.08% (0.16077) | 96.74th | v5 (v2026.06.15) |
| Aug 24, 2026 | 26.72% (0.26717) | 97.87th | v5 (v2026.06.15) |
| Aug 23, 2026 | 16.08% (0.16077) | 96.73th | v5 (v2026.06.15) |
| Jun 15, 2026 | 26.72% (0.26717) | 97.76th | v5 (v2026.06.15) |
| Nov 21, 2025 | 93.86% (0.93855) | 99.86th | v4 (v2025.03.14) |
| Nov 18, 2025 | 87.99% (0.87993) | 99.57th | v4 (v2025.03.14) |
| Mar 17, 2025 | 93.61% (0.93612) | 99.83th | v4 (v2025.03.14) |
| Dec 17, 2024 | 9.89% (0.09886) | 94.85th | v3 (v2023.03.01) |
| Dec 12, 2024 | 1.62% (0.01615) | 87.97th | v3 (v2023.03.01) |
| Jan 20, 2024 | 2.27% (0.02274) | 88.52th | v3 (v2023.03.01) |
| Dec 27, 2023 | 2.88% (0.02876) | 89.70th | v3 (v2023.03.01) |
| Nov 17, 2023 | 3.60% (0.03601) | 90.64th | v3 (v2023.03.01) |
| Jul 8, 2023 | 5.01% (0.05013) | 91.75th | v3 (v2023.03.01) |
| Jun 20, 2023 | 6.46% (0.06456) | 92.66th | v3 (v2023.03.01) |
| May 8, 2023 | 8.58% (0.08583) | 93.47th | v3 (v2023.03.01) |
| Mar 7, 2023 | 6.71% (0.06706) | 92.70th | v3 (v2023.03.01) |
| Mar 6, 2023 | 65.37% (0.65368) | 99.04th | v2 (v2022.01.01) |
| Feb 4, 2022 | 65.37% (0.65368) | 98.80th | v2 (v2022.01.01) |
| Feb 3, 2022 | 7.04% (0.07038) | 83.71th | v1 |
| Jan 6, 2022 | 7.04% (0.07038) | 83.55th | v1 |
| Sep 1, 2021 | 7.04% (0.07038) | 91.20th | v1 |
| Apr 14, 2021 | 7.04% (0.07038) | 0.00th | v1 |
References (17)
- http://www.openwall.com/lists/oss-security/2018/06/19/2
- https://access.redhat.com/errata/RHSA-2018:2244 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:2245 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:2561 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:2745 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2018-3760 Vendor Advisory
- https://blog.heroku.com/rails-asset-pipeline-vulnerability
- https://bugzilla.redhat.com/show_bug.cgi?id=1593058 Issue Tracking
- https://github.com/advisories/GHSA-pr3h-jjhj-573x Advisory
- https://github.com/rails/sprockets/commit/18b8a7f07a50c245e9aee7854ecdbe606bbd8bb5
- https://github.com/rails/sprockets/commit/9c34fa05900b968d74f08ccf40917848a7be9441
- https://github.com/rails/sprockets/commit/c09131cf5b2c479263939c8582e22b98ed616c5f
- https://github.com/rails/sprockets/commit/c09131cf5b2c479263939c8582e22b98ed616c5fhttps://github.com/rails/sprockets/commit/9c34fa05900b968d74f08ccf40917848a7be9441https://github.com/rails/sprockets/commit/18b8a7f07a50c245e9aee7854ecdbe606bbd8bb5 x_refsource_MISCBroken Link
- https://groups.google.com/d/msg/rubyonrails-security/ft_J--l55fM/7roDfQ50BwAJ x_refsource_MISCPatchThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2018-3760
- https://www.cve.org/CVERecord?id=CVE-2018-3760
- https://www.debian.org/security/2018/dsa-4242 vendor-advisoryx_refsource_DEBIANThird Party Advisory
Change history (0)
No recorded changes yet.