CVE-2024-21547
8.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
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 /.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| n/a | spatie/browsershot | 0 < 5.0.2 | affected |
Weaknesses
- CWE-22: Directory Traversal
ADP Enrichment
CISA ADP Vulnrichment
- SSVC:
- Exploitation: poc
- Automatable: yes
- Technical Impact: partial
References
- https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8501858
- https://gist.github.com/chuajianshen/baa71db588cfc038fb5d65624a47be81
- https://github.com/spatie/browsershot/commit/dfc3635b83dd980e5c39f8f8c73e87723b99ca01
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.