GitHub Advisoryadvisory · RubyGems

GHSA-pr3h-jjhj-573x Sprockets path traversal leads to information leak

HIGH Published 2018-06-20 Modified 2023-09-05 Official page ↗
Aliases
CVE-2018-3760
Ecosystem
RubyGems
Packages
sprockets
Severity
High
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weaknesses
CWE-200, CWE-22
Reviewed
2020-06-16

Affected packages

• RubyGems sprockets: >= 3.0.0, < 3.7.2 → fixed in 3.7.2 • RubyGems sprockets: >= 4.0.0.beta1, < 4.0.0.beta8 → fixed in 4.0.0.beta8 • RubyGems sprockets: < 2.12.5 → fixed in 2.12.5

Description

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.public_file_server.enabled = true` in an initializer and precompile the assets. This work around will not be possible in all hosting environments and upgrading is advised.

Related

Alias · CVE (1)

  • CVE-2018-3760 There is an information leak vulnerability in Sprockets. vulnerability

Weakness · CWE (2)

  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor weakness
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References