GitHub Advisoryadvisory · Packagist
GHSA-v528-6rq9-h6gw Spatie Browsershot Directory Traversal vulnerability
HIGH
Official page ↗
- Aliases
- CVE-2024-21547
- Ecosystem
- Packagist
- Packages
- spatie/browsershot
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Weaknesses
- CWE-22
- Reviewed
- 2024-12-18
Affected packages
• Packagist spatie/browsershot: < 5.0.2 → fixed in 5.0.2
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 /.
Related
Alias · CVE (1)
- CVE-2024-21547 Versions of the package spatie/browsershot before 5.0.2 are vulnerable to Directory Traversal due to URI normalisation in the browser where… vulnerability
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-21547 advisory
- https://github.com/spatie/browsershot/commit/dfc3635b83dd980e5c39f8f8c73e87723b99ca01 web
- https://gist.github.com/chuajianshen/baa71db588cfc038fb5d65624a47be81 web
- https://github.com/spatie/browsershot package
- https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8501858 web