{"id":"CVE-2026-0933","published":"2026-01-20T22:58:05Z","modified":"2026-01-23T21:54:58Z","title":"OS Command Injection in `wrangler pages deploy`","vendor":"Cloudflare","product":"Wrangler","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01514,"percentile":0.7512,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/cloudflare/workers-sdk","tags":[]}],"priority":{"score":20.4,"factors":[{"name":"EPSS percentile","points":15.02},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"cloudflare","affectedVersions":[{"vendor":"Cloudflare","product":"Wrangler","versions":[">= v3.0.0, <= v3.114.16",">= v4.0.0, <= v4.59.0","v2.0.15+"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-01-23T18:58:09.879547Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"wrangler","vulnerableRanges":[">=2.0.15, <3.114.17",">=4.0.0, <4.59.1"],"patched":["3.114.17","4.59.1"],"from":["GHSA-36p8-mvp6-cv38"],"provenance":"source"}],"summary":{"text":"The wrangler pages deploy command in Cloudflare's Wrangler CLI contains an OS command injection flaw, where the --commit-hash argument is interpolated unsanitised into a shell command, letting shell metacharacters run arbitrary commands. Exploitation requires an attacker to control the --commit-hash value, which is most likely where it is populated from external or untrusted sources in CI/CD pipelines, and successful exploitation could allow command execution on the host running Wrangler, including access to environment variables.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:14:29Z"},"euvd":{"id":"EUVD-2026-3519","exploited":false,"provenance":"source"}}