{"id":"CVE-2024-21547","aliases":["CVE-2024-21547","GHSA-v528-6rq9-h6gw"],"related":[],"kind":"vulnerability","state":"published","title":"Spatie Browsershot Directory Traversal vulnerability","summary":"Versions of the package spatie/browsershot before 5.0.2 are vulnerable to Directory Traversal due to URI normalisation in the browser where the file:// check can be bypassed with file:\\\\. An attacker could read any file on the server by exploiting the normalization of \\ into /.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Versions of the package spatie/browsershot before 5.0.2 are vulnerable to Directory Traversal due to URI normalisation in the browser where the file:// check can be bypassed with file:\\\\. An attacker could read any file on the server by exploiting the normalization of \\ into /.","source":"cvelist"},{"lang":"es","text":"Las versiones del paquete spatie/browsershot anteriores a la 5.0.2 son vulnerables a Directory Traversal debido a la normalización de URI en el navegador, donde la comprobación file:// se puede eludir con file:\\\\. Un atacante podría leer cualquier archivo del servidor aprovechando la normalización de \\ en /.","source":"nvd"}],"published":"2024-12-18T06:06:04.591Z","modified":"2026-06-17T07:09:43.157Z","severity":{"scorer":"snyk","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P","score":8.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:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P","score":8.7,"rating":"HIGH"},{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P","rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"5.0.2","status":"affected"}],"product":"spatie/browsershot","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.0.2"}],"ecosystem":"Packagist","package":"spatie/browsershot","purl":"pkg:composer/spatie/browsershot","source":"ghsa"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8501858","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://gist.github.com/chuajianshen/baa71db588cfc038fb5d65624a47be81","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/spatie/browsershot/commit/dfc3635b83dd980e5c39f8f8c73e87723b99ca01","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21547","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/spatie/browsershot","tags":["package"],"sources":["ghsa"]}],"credits":["Jian Shen Chua"],"assigner":"snyk","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2024-12-18T14:43:29.715Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-21547","url":"https://www.cve.org/CVERecord?id=CVE-2024-21547","licence":"CVE Terms of Use","modified":"2024-12-18T14:44:23.335Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v528-6rq9-h6gw","url":"https://github.com/advisories/GHSA-v528-6rq9-h6gw","licence":"CC-BY-4.0","modified":"2024-12-18T16:12:15.310Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-21547","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21547","licence":"Public domain","modified":"2026-06-17T07:09:43.157Z"}],"updatedAt":"2026-11-25T22:58:50.219Z","epss":{"score":0.00937,"percentile":0.61877,"date":"2026-12-01T12:00:22.000Z"}}