CVE-2024-21547
HIGH 7.7CVSS 4.0Spatie Browsershot Directory Traversal vulnerability
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 /.
- Published
- 18 Dec 2024
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Deferred
- Weakness
- CWE-22
- Also known as
- GHSA-v528-6rq9-h6gw
- Sources
- NVDJSONOSV GHSA-v528-6rq9-h6gwJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 4.0 | HIGH 7.7 | 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | 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 | |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Packagist | spatie/browsershot | < 5.0.2 | 5.0.2 |
References
- https://gist.github.com/chuajianshen/baa71db588cfc038fb5d65624a47be81 · WEB
- https://github.com/spatie/browsershot/commit/dfc3635b83dd980e5c39f8f8c73e87723b99ca01 · WEB
- https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8501858 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-21547 · ADVISORY
- https://github.com/spatie/browsershot · PACKAGE
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 18 Dec 2024)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 18 Dec 2024)