Vulnerability · Published Dec 18, 2024 · Assigned by snyk

CVE-2024-21547

High 7.5

In plain English

A high-severity path traversal in spatie/browsershot. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 61% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.9%top 38.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Packagistspatie/browsershot5.0.2GHSA-v528-6rq9-h6gw

Affected products (as reported)

VendorProductVersions
n/a spatie/browsershot 0 – before 5.0.2

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P

References