CVE-2024-21544
HIGHSpatie Browsershot < 5.0.1 - Improper Input Validation
Title source: ruleDescription
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.
References (3)
Core 3
Core References
Various Sources
https://github.com/spatie/browsershot/blob/1e212b596c104138550ed4ef1b9977d8df570c67/src/Browsershot.php%23L258-L269
Third Party Advisory
https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8496745
Scores
CVSS v3
8.6
EPSS
0.0022
EPSS Percentile
44.1%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
yes
Technical Impact
partial
Details
CWE
CWE-20
Status
published
Products (2)
n/a/spatie/browsershot
< 5.0.1
spatie/browsershot
0 - 5.0.1Packagist
Published
Dec 13, 2024
Tracked Since
Feb 18, 2026