SecurityContext

CVE-2024-21544: spatie/browsershot - Local File Inclusion

  • Cve: CVE-2024-21544
  • Name: spatie/browsershot - Local File Inclusion
  • Description: Versions of the package spatie/browsershot before 5.0.1 are vulnerable to Improper Input Validation due to improper URL validation in 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.
  • Impact: Attackers can read sensitive files on the server, leading to information disclosure.
  • Remediation: Update to version 5.0.1 or later.
  • Vulnerability type: file_inclusion
  • Vulnerability impact: information_disclosure, file_system_read
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.6
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
  • Epss score: 0.00572
  • Epss percentile: 0.47945
  • Assignee: [email protected]
  • Published at: 2024-12-13T05:15:07Z
  • Age in days: 711
  • Modified at: 2026-06-17T07:09:42Z
  • References total: 3
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-21544
  • Nvd status: deferred
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-20Improper Input Validation

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://github.com/spatie/browsershot/blob/1e212b596c104138550ed4ef1b9977d8df570c67/src/Browsershot.php%23L258-L269
https://github.com/spatie/browsershot/commit/fae8396641b961f62bd756920b14f01a4391296e
https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8496745

Projects

RepositoryLink kindsIndexedUrl
spatie/browsershotcommit, fix, packageyes/v1/repositories/spatie/browsershot

Index

  • Repositories: 5
  • Repositories high signal: 3
  • Packages: 1

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts