CVE-2018-3760: Path Traversal

Published Jun 19, 2018
·
Updated

rubygem-sprockets before versions 2.12.5, 3.7.2 and 4.0.0beta8 are vulnerable to a path traversal flaw in the sprockets/server.rb:forbiddenrequest?() function. A remote attacker could exploit this to read arbitrary files from the Sprockets server.

External References:

http://www.openwall.com/lists/oss-security/2018/06/19/2 https://blog.heroku.com/rails-asset-pipeline-vulnerability

Upstream Patch:

https://github.com/rails/sprockets/commit/c09131cf5b2c479263939c8582e22b98ed616c5f

Other sources

Specially crafted requests can be used to access files that exist 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. Workaround: In Rails applications, work around this issue, set config.assets.compile = false and config.publicfileserver.enabled = true in an initializer and precompile the assets.

This work around will not be possible in all hosting environments and upgrading is advised.

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 Software

26 affected componentsFixes available
rubygems/sprockets>=4.0.0.beta1<=4.0.0.beta7
4.0.0.beta8
rubygems/sprockets>=3.0.0<3.7.2
3.7.2
rubygems/sprockets<2.12.5
2.12.5
debian/ruby-sprockets
3.7.2-13.7.2-4
redhat/rubygem-sprockets<4.0.0
4.0.0
redhat/rubygem-sprockets<3.7.2
3.7.2
redhat/rubygem-sprockets<2.12.5
2.12.5
redhat Cloudforms=4.5
redhat Cloudforms=4.6
redhat Enterprise Linux=6.0
redhat Enterprise Linux=6.7
redhat Enterprise Linux=7.0
redhat Enterprise Linux=7.3
redhat Enterprise Linux=7.4
redhat Enterprise Linux=7.5
redhat Enterprise Linux=7.6
Sprockets Project Sprockets>=2.0.0<=2.12.4
Sprockets Project Sprockets>=3.0.0<=3.7.1
Sprockets Project Sprockets=4.0.0-beta1
Sprockets Project Sprockets=4.0.0-beta2
Sprockets Project Sprockets=4.0.0-beta3
Sprockets Project Sprockets=4.0.0-beta4
Sprockets Project Sprockets=4.0.0-beta5
Sprockets Project Sprockets=4.0.0-beta6
Sprockets Project Sprockets=4.0.0-beta7
Debian Debian Linux=9.0

Event History

Jun 20, 2018
Data Sourced
07:12 AM
SeverityAffected Software
Advisory Published
10:18 PM
Jun 26, 2018
CVE Published
via MITRE·07:00 PM
Data Sourced
via MITRE·07:00 PM
DescriptionWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2018-3760?

CVE-2018-3760 is an information leak vulnerability in Sprockets that allows specially crafted requests to access files outside of an application's root directory.

2

Which versions of Sprockets are affected by CVE-2018-3760?

Versions 4.0.0.beta7 and lower 3.x versions of Sprockets are affected by CVE-2018-3760.

3

How severe is CVE-2018-3760?

CVE-2018-3760 has a severity rating of 7.5 (high).

4

What is the remedy for CVE-2018-3760?

Affected users should upgrade to version 4.0.0.beta8 or use one of the workarounds provided.

5

Where can I find more information about CVE-2018-3760?

More information about CVE-2018-3760 can be found at the following links: [NVD](https://nvd.nist.gov/vuln/detail/CVE-2018-3760), [Red Hat Security Advisories](https://access.redhat.com/errata/RHSA-2018:2244,https://access.redhat.com/errata/RHSA-2018:2245).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203