{"id":"CVE-2024-21544","published":"2024-12-13T05:00:14Z","modified":"2026-08-14T15:25:27Z","title":"Versions of the package spatie/browsershot before 5.0.1 are vulnerable to Improper Input Validation due to improper…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00572,"percentile":0.47268,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8496745","tags":[]},{"url":"https://github.com/spatie/browsershot/blob/1e212b596c104138550ed4ef1b9977d8df570c67/src/Browsershot.php%23L258-L269","tags":[]},{"url":"https://github.com/spatie/browsershot/commit/fae8396641b961f62bd756920b14f01a4391296e","tags":[]}],"priority":{"score":15.5,"factors":[{"name":"EPSS percentile","points":9.45},{"name":"CVSS severity","points":6.02}]},"affectedVersions":[{"vendor":"n/a","product":"spatie/browsershot","versions":["< 5.0.1"]}],"affected":[{"ecosystem":"Packagist","package":"spatie/browsershot","vulnerableRanges":["<5.0.1"],"patched":["5.0.1"],"from":["GHSA-g2r4-phv7-5fgv"],"provenance":"source"}],"euvd":{"id":"EUVD-2024-3469","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-spatie-browsershot-cve-2022-41706","children":[{"from":"CVE-2024-21544","to":"CVE-2024-21549","relation":"bypass","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"bypass","quote":"An attacker can exploit this vulnerability by utilizing view-source:file://, which allows for arbitrary file reading on a local file. **Note:** This is a bypass of the fix for CVE-2024-21544.","from":"CVE.org","in":"CVE-2024-21549"},{"kind":"same-code","provenance":"machine","files":["src/Browsershot.php"],"commits":["https://github.com/spatie/browsershot/commit/fae8396641b961f62bd756920b14f01a4391296e","https://github.com/spatie/browsershot/commit/f791ce0ae8dd99367dbfa30588ee31e1196e1728"],"basis":"shared file"},{"kind":"similar","provenance":"machine","score":0.35,"basis":"same package + description similarity"}]}],"packageHistory":[{"cve":"CVE-2022-41706","published":"2022-11-25","fixed":"3.57.3","kev":false},{"cve":"CVE-2022-43983","published":"2022-11-25","fixed":"3.57.3","kev":false},{"cve":"CVE-2022-43984","published":"2022-11-25","fixed":"3.57.4","kev":false},{"cve":"CVE-2024-21544","published":"2024-12-13","fixed":"5.0.1","kev":false},{"cve":"CVE-2024-21547","published":"2024-12-18","fixed":"5.0.2","kev":false,"link":{"from":"CVE-2024-21544","to":"CVE-2024-21547","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:spatie/browsershot","fromFixed":"5.0.1","toFixed":"5.0.2","daysApart":5},{"kind":"same-code","provenance":"machine","files":["src/Browsershot.php"],"commits":["https://github.com/spatie/browsershot/commit/fae8396641b961f62bd756920b14f01a4391296e","https://github.com/spatie/browsershot/commit/dfc3635b83dd980e5c39f8f8c73e87723b99ca01"],"basis":"shared file"}]}},{"cve":"CVE-2024-21549","published":"2024-12-20","fixed":"5.0.3","kev":false},{"cve":"CVE-2025-1022","published":"2025-02-05","fixed":"5.0.5","kev":false}],"package":"Packagist:spatie/browsershot"}}