Loading...
Skip to main content

CVE-2018-3760 — Vulnerability in sprockets — CVE Details

HIGH

Sprockets path traversal leads to information leak

Published June 20, 2018Updated February 16, 2024Source: osv

Summary

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.

Advisory Timeline

  • First published June 20, 2018 (3036 days ago).
  • Last revised February 16, 2024 — 2066 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update sprockets to 4.0.0.beta8 or later
gem install sprockets -v 4.0.0.beta8
Bundler
Update sprockets to 3.7.2 or later
gem install sprockets -v 3.7.2
Bundler
Update sprockets to 2.12.5 or later
gem install sprockets -v 2.12.5

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (3)

Affects 1 ecosystem: rubygems (1).

PackageEcosystemAffectedFixed In
sprockets
rubygems
4.0.0.beta1, 4.0.0.beta2, 4.0.0.beta3, 4.0.0.beta4 (+3 more)4.0.0.beta8
sprockets
rubygems
3.0.0, 3.0.1, 3.0.2, 3.0.3 (+19 more)3.7.2
sprockets
rubygems
0.9.0, 0.9.1, 1.0.0, 1.0.1 (+54 more)2.12.5

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Frequently Asked Questions

What is CVE-2018-3760?
Sprockets path traversal leads to information leak This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
How do I check if my project is affected by CVE-2018-3760?
CVE-2018-3760 affects sprockets. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2018-3760 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
7.5

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-pr3h-jjhj-573x

Related CVEs

  • CVE-2026-94462
    HIGH

    Spree: Broken Access Control in `PATCH /api/v3/store/carts/:id/associate` (IDOR)

  • CVE-2026-77601
    HIGH

    OpenC3 COSMOS: Authenticated OS command injection via the `pypi_url` setting

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies