CVE-2018-3760
Sprockets path traversal leads to information leak
Reported by hackerone · Published June 26, 2018
sprockets is fixed in 4.0.0.beta8, 3.7.2 and 2.12.5 (RubyGems)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| sprockets | RubyGems | 4.0.0.beta8, 3.7.2, 2.12.5 |
| sprockets | sprockets_project | 3.7.1, 2.12.4 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| HackerOne | Sprockets | 4.0.0.beta8, 3.7.2, 2.12.5 |
| HackerOne | Sprockets | 4.0.0.beta8, 3.7.2, 2.12.5 |
| RubyGems | sprockets | 0, 3.0.0, 4.0.0.beta1 |
Timeline
- Jun 26, 2018 CVE Published
- Jul 19, 2018 PoC Published
- Oct 21, 2019 VulnCheck XDB Entry (4 in total, the first dated here)
- Dec 28, 2020 VulnCheck KEV Exploitation (739 in total, the first dated here)
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 17, 2026 Security Advisory (8 in total, the first dated here)
- Sep 20, 2026 Coalition ESS Score
- Oct 31, 2026 Distribution Patch (5 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2018-3760
vulnetix vdb fixes CVE-2018-3760
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-3760/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- RHSA-2018:2745 vendor-advisoryx_refsource_REDHAT
- x_refsource_MISC
- RHSA-2018:2244 vendor-advisoryx_refsource_REDHAT
- RHSA-2018:2561 vendor-advisoryx_refsource_REDHAT
- RHSA-2018:2245 vendor-advisoryx_refsource_REDHAT
- DSA-4242 vendor-advisoryx_refsource_DEBIAN
- https://nvd.nist.gov/vuln/detail/CVE-2018-3760 advisory
- https://groups.google.com/g/ruby-security-ann/c/2S9Pwz2i16k url
- https://github.com/rails/sprockets/commit/c09131cf5b2c479263939c8582e22b98ed616c5f patch
- https://github.com/rails/sprockets/commit/9c34fa05900b968d74f08ccf40917848a7be9441 patch
- https://github.com/rails/sprockets/commit/18b8a7f07a50c245e9aee7854ecdbe606bbd8bb5 patch