Vulnerability 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.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://github.com/spatie/browsershot/blob/1e212b596c104138550ed4ef1b9977d8df570
- https://github.com/spatie/browsershot/commit/fae8396641b961f62bd756920b14f01a439
- https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8496745
FAQ
What is CVE-2024-21544?
CVE-2024-21544 is a vulnerability with a CVSS score of 8.6 (HIGH). 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 ...
How severe is CVE-2024-21544?
CVE-2024-21544 has been rated HIGH with a CVSS base score of 8.6/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2024-21544?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.