Advisory

GHSA-v528-6rq9-h6gw

Also known as: CVE-2024-21547

Summary

Spatie Browsershot Directory Traversal vulnerability

Details

Versions of the package spatie/browsershot before 5.0.2 are vulnerable to Directory Traversal due to URI normalisation in the browser where the file:// check can be bypassed with file:\\. An attacker could read any file on the server by exploiting the normalization of \ into /.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-12-18 06:30 UTC
Modified
2024-12-18 16:12 UTC

Affected packages and fixes

spatie/browsershot

Packagist · All systems

Affected

  • introduced 0, fixed 5.0.2 (ecosystem)

Fixed versions

5.0.2

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