{"id":"CVE-2024-21544","aliases":["GHSA-g2r4-phv7-5fgv"],"url":"https://o3.security/vulnerability/CVE-2024-21544","summary":"Browsershot Local File Inclusion","details":"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.\r\rAn 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.","published":"2024-12-13T05:00:14.744Z","modified":"2026-08-08T03:48:01.405939663Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"spatie/browsershot","fixedVersion":"5.0.1"}],"fix":{"url":"https://github.com/spatie/browsershot/commit/fae8396641b961f62bd756920b14f01a4391296e","label":"spatie/browsershot@fae8396"},"references":[{"type":"WEB","url":"https://github.com/spatie/browsershot/blob/1e212b596c104138550ed4ef1b9977d8df570c67/src/Browsershot.php%23L258-L269"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8496745"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21544.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21544"},{"type":"FIX","url":"https://github.com/spatie/browsershot/commit/fae8396641b961f62bd756920b14f01a4391296e"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-08T03:48:01.405939663Z"}}