LiveActive security incident?Get immediate response
CVE Record

CVE-2024-21549: Versions of the package spatie/browsershot before 5.0.3 are vulnerable to Improper Input Validation due to...

Versions of the package spatie/browsershot before 5.0.3 are vulnerable to Improper Input Validation due to improper URL validation in the setUrl method. An attacker can exploit this vulnerability by utilizing view-source:file://, which allows for arbitrary file reading on a local file. **Note:** This is a bypass of the fix for [CVE-2024-21544](https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8496745).

HighCVSS 8.6Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

Browsershot versions before 5.0.3 may let a remote attacker make an application read local files when attacker-controlled input reaches URL processing. This can expose credentials, configuration, or other sensitive data available to the browser process. The issue bypasses an earlier fix for CVE-2024-21544.

Executive priority

Prioritize remediation for public services that generate screenshots, PDFs, or browser output from user-influenced URLs. The primary business risk is unauthorized disclosure of secrets or configuration files. Upgrade promptly, then verify deployed versions and reduce the browser process's filesystem access.

Technical view

CVE-2024-21549 is improper input validation in spatie/browsershot's setUrl method. A view-source wrapper around a local-file URL can bypass URL validation and enable arbitrary local-file reading. The supplied CVSS 3.1 score is 8.6, reflecting network reachability, low complexity, no required privileges, and high confidentiality impact.

Likely exposure

Exposure is most likely where applications run spatie/browsershot before 5.0.3 and allow untrusted or indirectly attacker-controlled values to reach setUrl. Impact depends on the files and permissions available to the browser process. The source bundle does not identify specific exposed deployments.

Exploitation context

The CVSS vector records proof-of-concept maturity, but the supplied sources do not establish active exploitation. This CVE is not listed as KEV in the bundle. Treat internet-facing, unauthenticated URL-processing paths as the highest-priority exposure.

Researcher notes

This is a CWE-20 validation flaw and a bypass of the CVE-2024-21544 fix. Review the referenced corrective commit when assessing custom forks or backports. The bundle supports confidentiality impact and the affected-version boundary, but provides no confirmed victim reports or evidence of active exploitation.

Mitigation direction

  • Upgrade spatie/browsershot to version 5.0.3 or later.
  • Prevent untrusted input from directly or indirectly controlling setUrl values.
  • Restrict the browser process from reading unnecessary files and secrets.
  • Review current vendor guidance before applying compensating controls.

Validation and detection

  • Inventory Composer lockfiles and deployed artifacts for spatie/browsershot versions earlier than 5.0.3.
  • Trace whether user-controlled values can reach setUrl through request parameters or stored content.
  • Confirm production resolves version 5.0.3 or later after remediation.
  • Defensively verify that local-file URL wrappers are rejected without accessing sensitive files.
  • Review application logs for unusual local-file or view-source URL handling attempts.
Prepared
Confidence
high
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-20: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

File access behavior lookup

The CVE wording references file access or upload behavior, so file telemetry and web shell review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2024-21549 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
8.6 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N/E:P

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

2CVSS vectors
3Timeline events
1ADP providers
4Source links

SSVC decision data

CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: pocAutomatable: yesTechnical Impact: partial

CVSS vector scores

2 official scores

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
8.6CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N/E:P3.94snyk
7.7CVSS 4.0HighCVSS: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:Psnyk

Vulnerability scoring details

Base CVSS 4.0 score

7.7High
CVSS 4.0 vector shape for CVE-2024-21549Attack VectorAttack ComplexityAttack RequirementsPrivileges RequiredUser InteractionVS ConfidentialityVS IntegrityVS AvailabilitySS ConfidentialitySS IntegritySS Availability

Vector: 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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Attack Requirements
NonePresent
Privileges Required
NoneLowHigh
User Interaction
NonePassiveActive
VS Confidentiality
HighLowNone
VS Integrity
HighLowNone
VS Availability
HighLowNone
SS Confidentiality
HighLowNone
SS Integrity
HighLowNone
SS Availability
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. CVE publishedCVE Program

    The CVE record was published.

  3. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CISA-ADPCISA ADP Vulnrichment
other:ssvc
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/aspatie/browsershot0Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-20 · source CWE mapping

Improper Input Validation

Improper Input Validation represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.