CVE-2024-21547
JSON

8.7high

Spatie Browsershot Directory Traversal vulnerability

Severity
8.7high CVSS:4.0 by snyk
Exploit likelihood
0.94% (higher than 61% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-v528-6rq9-h6gw

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 /.

Affected

Product or packageVersionsReported by
spatie/browsershotbefore 5.0.2CVE List
spatie/browsershot (Packagist)before 5.0.2GitHub Advisory Database

All scores

snyk8.7high CVSS:4.0CVSS: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
snyk7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHubhigh CVSS:4.0CVSS: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

Classification

CWE-22

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

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 /.

NVD (es)

Las versiones del paquete spatie/browsershot anteriores a la 5.0.2 son vulnerables a Directory Traversal debido a la normalización de URI en el navegador, donde la comprobación file:// se puede eludir con file:\\. Un atacante podría leer cualquier archivo del servidor aprovechando la normalización de \ en /.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-21547 changed 2024-12-18CVE Terms of Use
GitHub Advisory DatabaseGHSA-v528-6rq9-h6gw changed 2024-12-18CC-BY-4.0
NVDCVE-2024-21547 changed 2026-06-17Public domain