PT-2024-18960 · Spatie · Spatie/Browsershot

·

CVE-2024-21549

·

Published

2024-12-20

·

Updated

2026-08-06

CVSS v3.1

8.6

High

VectorAV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions spatie/browsershot versions prior to 5.0.3
Description The issue is related to improper input validation due to incorrect URL validation through the setUrl method. An attacker can exploit this by utilizing view-source:file://, allowing for arbitrary file reading on a local file. This is a bypass of a previous fix.
Recommendations For versions prior to 5.0.3, update to version 5.0.3 or later to resolve the issue. As a temporary workaround, consider restricting the use of the setUrl method to minimize the risk of exploitation. Avoid using the view-source:file:// protocol in the affected API endpoint until the issue is resolved.

Exploit

Fix

RCE

Out of bounds Read

Information Disclosure

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2024-21549
GHSA-C9F5-29F6-C35W

Affected Products

Spatie/Browsershot