8.7high
Spatie Browsershot Directory Traversal vulnerability
- Severity
- 8.7high CVSS:4.0 by snyk
- Exploit likelihood
- 0.94% (higher than 61% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-v528-6rq9-h6gw
Description
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 /.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| spatie/browsershot | before 5.0.2 | CVE List |
| spatie/browsershot (Packagist) | before 5.0.2 | GitHub Advisory Database |
All scores
| snyk | 8.7high CVSS:4.0 | 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 |
| snyk | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | high CVSS:4.0 | 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 |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
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 /.
NVD (es)
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 /.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-21547 changed 2024-12-18 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-v528-6rq9-h6gw changed 2024-12-18 | CC-BY-4.0 |
| NVD | CVE-2024-21547 changed 2026-06-17 | Public domain |