CVE-2024-21547

High

Description

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 /.

SeverityHigh
CVSS7.5
Exploit probability—
ProductSpatie/browsershot
PublishedDec 18, 2024
First seenDec 18, 2024

How to fix

Update
  • spatie/browsershot5.0.2 or later

Affected products

ProductAffected versionsFixed in
spatie/browsershotPackagistv < 5.0.25.0.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.