NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

CVE-2024-21544: Browsershot Local File Inclusion

mediumCVSS 4.0 6.6 · 3.1 8.6GHSA-g2r4-phv7-5fgv

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.

Published Dec 13, 2024 · Updated Feb 4, 2025

Affected packages

spatie/browsershot

Ecosystem
Composer (PHP)
Affected
< 5.0.1
Fixed in
5.0.1
Check
composer show spatie/browsershot

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Composer (PHP) vulnerabilities

All Composer (PHP) entries