{
  "id": "CVE-2026-0933",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-0933",
  "published_at": "2026-01-20T22:58:05.212Z",
  "title": "OS Command Injection in `wrangler pages deploy`",
  "vendor": "Cloudflare",
  "product": "Wrangler",
  "cvss": {
    "score": 9.9,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "SummaryA command injection vulnerability (CWE-78) has been found to exist in the `wrangler pages deploy` command. The issue occurs because the `--commit-hash` parameter is passed directly to a shell command without proper validation or sanitization, allowing an attacker with control of `--commit-hash` to execute arbitrary commands on the system running Wrangler.\n\n\n\n\nRoot causeThe commitHash variable, derived from user input via the --commit-hash CLI argument, is interpolated directly into a shell command using template literals (e.g.,  execSync(`git show -s --format=%B ${commitHash}`)). Shell metacharacters are interpreted by the shell, enabling command execution.\n\n\n\n\nImpactThis vulnerability is generally hard to exploit, as it requires --commit-hash to be attacker controlled. The vulnerability primarily affects CI/CD environments where `wrangler pages deploy` is used in automated pipelines and the \n\n--commit-hash parameter is populated from external, potentially untrusted sources. An attacker could exploit this to:\n\n  *  Run any shell command.\n  *  Exfiltrate environment variables.\n  *  Compromise the CI runner to install backdoors or modify build artifacts.\n\n\n\nCredits Disclosed responsibly by kny4hacker.\n\n\n\n\nMitigation\n  *  Wrangler v4 users are requested to upgrade to Wrangler v4.59.1 or higher.\n  *  Wrangler v3 users are requested to upgrade to Wrangler v3.114.17 or higher.\n  *  Users on Wrangler v2 (EOL) should upgrade to a supported major version.",
  "cwe": "CWE-20",
  "cpes": [
    "cpe:2.3:a:cloudflare:wrangler:*:*:*:*:*:node.js:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.7,
    "nvd": 9.9
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Cloudflare",
        "product": "Wrangler",
        "ranges": [
          "\u003e= v3.0.0, \u003c= v3.114.16",
          "\u003e= v4.0.0, \u003c= v4.59.0",
          "v2.0.15+"
        ],
        "fixed_in": null
      },
      {
        "vendor": "",
        "product": "wrangler",
        "ranges": [
          "\u003e= 2.0.15, \u003c 3.114.17"
        ],
        "fixed_in": [
          "3.114.17"
        ],
        "ecosystem": "npm",
        "advisory": "GHSA-36p8-mvp6-cv38"
      },
      {
        "vendor": "",
        "product": "wrangler",
        "ranges": [
          "\u003e= 4.0.0, \u003c 4.59.1"
        ],
        "fixed_in": [
          "4.59.1"
        ],
        "ecosystem": "npm",
        "advisory": "GHSA-36p8-mvp6-cv38"
      }
    ],
    "upgrade": [
      "Upgrade wrangler to 3.114.17 or later.",
      "Upgrade wrangler to 4.59.1 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
