{"id":"CVE-2024-21549","aliases":["CVE-2024-21549","GHSA-c9f5-29f6-c35w"],"related":[],"kind":"vulnerability","state":"published","title":"Browsershot Improper Input Validation vulnerability","summary":"Versions of the package spatie/browsershot before 5.0.3 are vulnerable to Improper Input Validation due to improper URL validation in the setUrl method. An attacker can exploit this vulnerability by utilizing view-source:file://, which allows for arbitrary file reading on a local file.\n\n**Note:**\n\nThis is a bypass of the fix for [CVE-2024-21544](https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8496745).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Versions of the package spatie/browsershot before 5.0.3 are vulnerable to Improper Input Validation due to improper URL validation in the setUrl method. An attacker can exploit this vulnerability by utilizing view-source:file://, which allows for arbitrary file reading on a local file.\n\n**Note:**\n\nThis is a bypass of the fix for [CVE-2024-21544](https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8496745).","source":"cvelist"},{"lang":"en","text":"Versions of the package spatie/browsershot before 5.0.3 are vulnerable to Improper Input Validation due to improper URL validation through the setUrl method. An attacker can exploit this vulnerability by utilizing view-source:file://, which allows for arbitrary file reading on a local file.\n\n**Note:**\n\nThis is a bypass of the fix for [CVE-2024-21544](https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8496745).","format":"markdown","source":"ghsa"},{"lang":"es","text":"Las versiones del paquete spatie/browsershot anteriores a la 5.0.3 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 view-source:file://, que permite la lectura arbitraria de archivos en un archivo local. **Nota:** Esta es una omisión de la corrección para [CVE-2024-21544](https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8496745).","source":"nvd"}],"published":"2024-12-20T05:00:01.462Z","modified":"2026-08-15T15:25:14.543Z","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","CWE-125","CWE-200"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"5.0.3","status":"affected"}],"product":"spatie/browsershot","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.0.3"}],"ecosystem":"Packagist","package":"spatie/browsershot","purl":"pkg:composer/spatie/browsershot","source":"ghsa"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8533023","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/spatie/browsershot/discussions/906","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/spatie/browsershot/commit/f791ce0ae8dd99367dbfa30588ee31e1196e1728","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21549","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/spatie/browsershot","tags":["package"],"sources":["ghsa"]}],"credits":["Ahmad Shauqi"],"assigner":"snyk","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2024-12-20T16:20:43.009Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-21549","url":"https://www.cve.org/CVERecord?id=CVE-2024-21549","licence":"CVE Terms of Use","modified":"2026-08-15T15:25:14.543Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-c9f5-29f6-c35w","url":"https://github.com/advisories/GHSA-c9f5-29f6-c35w","licence":"CC-BY-4.0","modified":"2025-02-04T17:35:09.731Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-21549","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21549","licence":"Public domain","modified":"2026-08-06T16:16:34.917Z"}],"updatedAt":"2026-11-25T22:58:50.284Z","epss":{"score":0.00606,"percentile":0.50373,"date":"2026-12-01T12:00:22.000Z"}}