7.7high
Browsershot Improper Input Validation vulnerability
- Severity
- 7.7high CVSS:4.0 by snyk
- Exploit likelihood
- 0.61% (higher than 50% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-c9f5-29f6-c35w
Description
Versions of the package spatie/browsershot before 5.0.3 are vulnerable to Improper Input Validation due to improper URL validation in the setUrl method. An attacker can exploit this vulnerability by utilizing view-source:file://, which allows for arbitrary file reading on a local file. **Note:** This is a bypass of the fix for [CVE-2024-21544](https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8496745).
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| spatie/browsershot | before 5.0.3 | CVE List |
| spatie/browsershot (Packagist) | before 5.0.3 | GitHub Advisory Database |
All scores
| snyk | 7.7high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N/E:P |
| snyk | 8.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N/E:P |
| GitHub | 8.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N/E:P |
Classification
What each source says
CVE List
Versions of the package spatie/browsershot before 5.0.3 are vulnerable to Improper Input Validation due to improper URL validation in the setUrl method. An attacker can exploit this vulnerability by utilizing view-source:file://, which allows for arbitrary file reading on a local file. **Note:** This is a bypass of the fix for [CVE-2024-21544](https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8496745).
GitHub Advisory Database
Versions of the package spatie/browsershot before 5.0.3 are vulnerable to Improper Input Validation due to improper URL validation through the setUrl method. An attacker can exploit this vulnerability by utilizing view-source:file://, which allows for arbitrary file reading on a local file.
Note:
This is a bypass of the fix for CVE-2024-21544.
NVD (es)
Las versiones del paquete spatie/browsershot anteriores a la 5.0.3 son vulnerables a la validación de entrada incorrecta debido a la validación incorrecta de URL a través del método setUrl. Un atacante puede aprovechar esta vulnerabilidad utilizando view-source:file://, que permite la lectura arbitraria de archivos en un archivo local. **Nota:** Esta es una omisión de la corrección para [CVE-2024-21544](https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8496745).
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-21549 changed 2026-08-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-c9f5-29f6-c35w changed 2025-02-04 | CC-BY-4.0 |
| NVD | CVE-2024-21549 changed 2026-08-06 | Public domain |