{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "5.0.2"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "8a1e3476a9c07b72ace4d4747bac7c58dbc1c066"
            },
            {
              "fixed": "dfc3635b83dd980e5c39f8f8c73e87723b99ca01"
            }
          ],
          "repo": "https://github.com/spatie/browsershot",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "Versions of the package spatie/browsershot before 5.0.2 are vulnerable to Directory Traversal due to URI normalisation in the browser where the file:// check can be bypassed with file:\\\\. An attacker could read any file on the server by exploiting the normalization of \\ into /.",
  "id": "CVE-2024-21547",
  "modified": "2026-03-15T21:50:14.726514738Z",
  "published": "2024-12-18T06:15:23.187Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://gist.github.com/chuajianshen/baa71db588cfc038fb5d65624a47be81"
    },
    {
      "type": "WEB",
      "url": "https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8501858"
    },
    {
      "type": "FIX",
      "url": "https://github.com/spatie/browsershot/commit/dfc3635b83dd980e5c39f8f8c73e87723b99ca01"
    }
  ],
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
      "type": "CVSS_V4"
    }
  ]
}