{"id":"CVE-2024-21544","aliases":["CVE-2024-21544","GHSA-g2r4-phv7-5fgv"],"related":[],"kind":"vulnerability","state":"published","title":"Browsershot Local File Inclusion","summary":"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.\n\nAn 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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.\n\nAn 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.","source":"cvelist"},{"lang":"en","text":"Versions of the package spatie/browsershot before 5.0.1 are vulnerable to Improper Input Validation due to improper URL validation through the setUrl method.\nAn 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Las versiones del paquete spatie/browsershot anteriores a la 5.0.1 son vulnerables a la validación de entrada incorrecta debido a la validación incorrecta de URL a través del método setUrl. Un atacante puede aprovechar esta vulnerabilidad utilizando un espacio inicial (%20) antes del protocolo file://, lo que da como resultado la inclusión de archivos locales, lo que permite al atacante leer archivos confidenciales en el servidor.","source":"nvd"}],"published":"2024-12-13T05:00:14.744Z","modified":"2026-08-14T15:25:27.382Z","severity":{"scorer":"snyk","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N/E:P","score":7.7,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N/E:P","score":7.7,"rating":"HIGH"},{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N/E:P","score":8.6,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","score":8.6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N/E:P","rating":"MEDIUM"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"5.0.1","status":"affected"}],"product":"spatie/browsershot","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.0.1"}],"ecosystem":"Packagist","package":"spatie/browsershot","purl":"pkg:composer/spatie/browsershot","source":"ghsa"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8496745","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/spatie/browsershot/blob/1e212b596c104138550ed4ef1b9977d8df570c67/src/Browsershot.php%23L258-L269","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/spatie/browsershot/commit/fae8396641b961f62bd756920b14f01a4391296e","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21544","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/spatie/browsershot","tags":["package"],"sources":["ghsa"]}],"credits":["Muhammad Firdaus Amran"],"assigner":"snyk","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-12-16T18:17:07.853Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-21544","url":"https://www.cve.org/CVERecord?id=CVE-2024-21544","licence":"CVE Terms of Use","modified":"2026-08-14T15:25:27.382Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g2r4-phv7-5fgv","url":"https://github.com/advisories/GHSA-g2r4-phv7-5fgv","licence":"CC-BY-4.0","modified":"2025-02-04T17:35:11.537Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-21544","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21544","licence":"Public domain","modified":"2026-06-17T07:09:42.790Z"}],"updatedAt":"2026-11-25T22:58:50.075Z","epss":{"score":0.00572,"percentile":0.4864,"date":"2026-12-01T12:00:22.000Z"}}