CVE-2024-21544
High
Description
Versions of the package spatie/browsershot before 5.0.1 are vulnerable to Improper Input Validation due to improper URL validation in the setUrl method. An attacker can exploit this vulnerability by using leading whitespace (%20) before the file:// protocol, resulting in Local File Inclusion, which allows the attacker to read sensitive files on the server.
SeverityHigh
CVSS8.6
Exploit probability—
ProductSpatie/browsershot
PublishedDec 13, 2024
First seenDec 13, 2024
Weakness typeCWE-20Improper input validation
How to fix
Update
- spatie/browsershot5.0.1 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| spatie/browsershotPackagist | v < 5.0.1 | 5.0.1 |
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.