Advisory

GHSA-pr3h-jjhj-573x

Also known as: CVE-2018-3760

Summary

Sprockets path traversal leads to information leak

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2018-06-20 22:18 UTC
Modified
2024-02-16 08:29 UTC

Affected packages and fixes

sprockets

RubyGems · All systems

Affected

  • introduced 3.0.0, fixed 3.7.2 (ecosystem)

Fixed versions

3.7.2

Fix

The export has no generic command for this ecosystem.

sprockets

RubyGems · All systems

Affected

  • introduced 4.0.0.beta1, fixed 4.0.0.beta8 (ecosystem)

Fixed versions

4.0.0.beta8

Fix

The export has no generic command for this ecosystem.

sprockets

RubyGems · All systems

Affected

  • introduced 0, fixed 2.12.5 (ecosystem)

Fixed versions

2.12.5

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences