Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
💎 RubyGems

GHSA-pr3h-jjhj-573x

HIGH

Sprockets path traversal leads to information leak

Also known asCVE-2018-3760
Published
Jun 20, 2018
Updated
Feb 16, 2024
Affected
3 pkgs
Patched
3 / 3
Exploits
5 known

EPSS Exploitation Probability

via FIRST.org ↗
93.9%probability of exploitation in next 30 days
Very High Risk100th percentile0.00%
93.3%93.7%94.1%94.4%93.9%93.9%Dec 25Apr 26Jun 26

EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.

Blast Radius

3 pkgs affected
💎sprockets💎sprockets💎sprockets

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects RubyGems packages — download data is not available via public APIs for these ecosystems.

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.

Affected Packages

3 total 3 fixed
EcosystemPackageVulnerable rangeFix
💎RubyGemssprockets3.0.0&&< 3.7.23.7.2
💎RubyGemssprockets4.0.0.beta1&&< 4.0.0.beta84.0.0.beta8
💎RubyGemssprocketsall versions2.12.5
Exploits & PoCs
5

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is GHSA-pr3h-jjhj-573x in your stack?

O3 detects GHSA-pr3h-jjhj-573x across RubyGems dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.