# CVE-2026-0933: OS Command Injection in `wrangler pages deploy`

- Severity: High 7.7 (CVSS:4.0, scored by cloudflare) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.51%, higher than 75% of CVEs (2026-12-01)
- Published: 2026-01-20T22:58:05.212Z
- Modified: 2026-06-17T10:11:39.087Z
- Also known as: GHSA-36p8-mvp6-cv38
- Weaknesses: CWE-20, CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: cloudflare

## 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.




Root 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.




ImpactThis 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 

--commit-hash parameter is populated from external, potentially untrusted sources. An attacker could exploit this to:

  *  Run any shell command.
  *  Exfiltrate environment variables.
  *  Compromise the CI runner to install backdoors or modify build artifacts.



Credits Disclosed responsibly by kny4hacker.




Mitigation
  *  Wrangler v4 users are requested to upgrade to Wrangler v4.59.1 or higher.
  *  Wrangler v3 users are requested to upgrade to Wrangler v3.114.17 or higher.
  *  Users on Wrangler v2 (EOL) should upgrade to a supported major version.

(As written by CVE List.)

## Affected

- Wrangler: from v3.0.0 up to v3.114.16; from v4.0.0 up to v4.59.0; v2.0.15+
- wrangler (npm): from 2.0.15 before 3.114.17; from 4.0.0 before 4.59.1
- cloudflare wrangler: from 2.0.15 before 3.114.17; from 4.0.0 before 4.59.1

## Every score

- cloudflare: CVSS:4.0 7.7 High `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`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/cloudflare/workers-sdk> (package, product)
- <https://github.com/cloudflare/workers-sdk/security/advisories/GHSA-36p8-mvp6-cv38> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-0933> (advisory)
- <https://github.com/cloudflare/workers-sdk/commit/99b1f328a9afe181b49f1114ed47f15f6d25f0be> (web)
- <https://github.com/cloudflare/workers-sdk/releases/tag/wrangler%403.114.17> (web)
- <https://github.com/cloudflare/workers-sdk/releases/tag/wrangler%404.59.1> (web)

## Sources

- CVE List: [CVE-2026-0933](https://www.cve.org/CVERecord?id=CVE-2026-0933), CVE Terms of Use, modified 2026-01-23
- GitHub Advisory Database: [GHSA-36p8-mvp6-cv38](https://github.com/advisories/GHSA-36p8-mvp6-cv38), CC-BY-4.0, modified 2026-02-03
- NVD: [CVE-2026-0933](https://nvd.nist.gov/vuln/detail/CVE-2026-0933), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-0933 · Whole record: https://cve.day/CVE-2026-0933.json · Rebuilt by cve.day 2026-11-25T22:59:13.011Z
