CVE-2024-21549
PHP vulnerability analysis and mitigation

Overview

CVE-2024-21549 affects versions of the spatie/browsershot package before 5.0.3. This vulnerability is related to Improper Input Validation in the URL validation mechanism through the setUrl method. The vulnerability was discovered on December 16, 2024, and was publicly disclosed on December 19, 2024 (Snyk Advisory).

Technical details

The vulnerability stems from improper URL validation in the setUrl method of the browsershot package. The security flaw allows attackers to bypass the existing URL validation mechanisms by utilizing the 'view-source:file://' protocol, which was not properly blocked in the validation logic. This vulnerability is particularly notable as it represents a bypass of the fix for a previous vulnerability (CVE-2024-21544). The vulnerability has received a CVSS v3.1 base score of 8.6 (HIGH) and a CVSS v4.0 score of 7.7 (HIGH) (Snyk Advisory).

Impact

When successfully exploited, this vulnerability allows an attacker to perform arbitrary file reading on the local system. This means an attacker can access sensitive files on the server where the vulnerable application is running, potentially exposing confidential information (Snyk Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 5.0.3 of the spatie/browsershot package. The fix involves updating the URL validation logic to explicitly block the 'view-source' protocol in addition to the previously blocked file protocols. Users are strongly recommended to upgrade to version 5.0.3 or later to address this vulnerability (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65854CRITICAL9.8
  • PHPPHP
  • mineadmin/mineadmin
NoNoDec 12, 2025
CVE-2024-58303HIGH8.6
  • PHPPHP
  • fof/pretty-mail
NoNoDec 11, 2025
CVE-2025-67719HIGH8.5
  • PHPPHP
  • ibexa/user
NoYesDec 11, 2025
CVE-2025-67648HIGH7.1
  • PHPPHP
  • shopware/shopware
NoYesDec 11, 2025
CVE-2025-67737LOW3.1
  • PHPPHP
  • azuracast/azuracast
NoYesDec 12, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management