logo

CVE-2024-21544 spatie/browsershot

Package

Manager: composer
Name: spatie/browsershot
Vulnerable Version: >=0 <5.0.1

Severity

Level: Medium

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N

CVSS v4.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

EPSS: 0.0006 pctl0.18927

Details

Browsershot Local File Inclusion Versions of the package spatie/browsershot before 5.0.1 are vulnerable to Improper Input Validation due to improper URL validation through the setUrl method. An attacker can exploit this vulnerability by using leading whitespace (%20) before the file:// protocol, resulting in Local File Inclusion, which allows the attacker to read sensitive files on the server.

Metadata

Created: 2024-12-13T06:30:58Z
Modified: 2025-02-04T17:25:55Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/12/GHSA-g2r4-phv7-5fgv/GHSA-g2r4-phv7-5fgv.json
CWE IDs: ["CWE-20"]
Alternative ID: GHSA-g2r4-phv7-5fgv
Finding: F184
Auto approve: 1