CVE-2024-21547
Versions of the package spatie/browsershot before 5.0.2 are …
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 /.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- gist.github.com/chuajianshen/baa71db588cfc038fb5d65624a47be81
- github.com/spatie/browsershot/commit/dfc3635b83dd980e5c39f8f8c73e87723b99ca01
- security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8501858
- nvd.nist.gov/vuln/detail/CVE-2024-21547
- github.com/advisories/GHSA-v528-6rq9-h6gw
- nvd.nist.gov/vuln/detail/CVE-2024-21547
- cve.org/CVERecord?id=CVE-2024-21547
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.