{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-0933","id":"CVE-2026-0933","title":"OS Command Injection in `wrangler pages deploy`","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 variab","descriptionLong":"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.","published":"2026-01-20T22:58:05.212Z","updated":"2026-10-28T02:31:05.273167505Z","reserved":"2026-01-14T08:27:27.244Z","status":"Analyzed","rejected":false,"assigner":"cloudflare","metric":{"version":"4.0","score":7.7,"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","rating":"high","source":"cloudflare"},"metrics":[{"version":"4.0","score":7.7,"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","rating":"high","source":"cloudflare"},{"version":"4.0","score":7.7,"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/E:X/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","rating":"high","source":"cloudflare.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","rating":"high","source":"GitHub"},{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"NVD"}],"rating":"high","products":["Cloudflare Wrangler"],"affectedProducts":[{"vendor":"Cloudflare","product":"Wrangler","defaultStatus":"unaffected","versions":[{"lessThanOrEqual":"v3.114.16","status":"affected","version":"v3.0.0","versionType":"semver"},{"lessThanOrEqual":"v4.59.0","status":"affected","version":"v4.0.0","versionType":"semver"},{"status":"affected","version":"v2.0.15+"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"wrangler","purl":"pkg:npm/wrangler","ranges":[">=2.0.15 <3.114.17",">=4.0.0 <4.59.1"],"fixed":["3.114.17","4.59.1"],"advisory":"GHSA-36p8-mvp6-cv38"}],"cwes":["CWE-20","CWE-78"],"aliases":["GHSA-36p8-mvp6-cv38"],"references":[{"url":"https://github.com/cloudflare/workers-sdk","tags":["Product","package"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/0xxx/CVE-2026-0933.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-0933","tags":["advisory"]},{"url":"https://github.com/cloudflare/workers-sdk/security/advisories/GHSA-36p8-mvp6-cv38","tags":["web"]},{"url":"https://github.com/cloudflare/workers-sdk/commit/99b1f328a9afe181b49f1114ed47f15f6d25f0be","tags":["web"]},{"url":"https://github.com/cloudflare/workers-sdk/releases/tag/wrangler%403.114.17","tags":["web"]},{"url":"https://github.com/cloudflare/workers-sdk/releases/tag/wrangler%404.59.1","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.01514,"epssPercentile":0.75009,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-0933","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-0933","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-0933","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-36p8-mvp6-cv38","ok":true,"note":"GHSA-36p8-mvp6-cv38"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-0933","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}