Vulnerability 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 /.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://gist.github.com/chuajianshen/baa71db588cfc038fb5d65624a47be81
- https://github.com/spatie/browsershot/commit/dfc3635b83dd980e5c39f8f8c73e87723b9
- https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8501858
FAQ
What is CVE-2024-21547?
CVE-2024-21547 is a vulnerability with a CVSS score of 7.5 (HIGH). 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 ...
How severe is CVE-2024-21547?
CVE-2024-21547 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2024-21547?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.