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

> CVE-2026-0933: OS Command Injection in `wrangler pages deploy`. CVSS 9.9 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2026-0933
Last updated: 2026-06-17T10:11:39Z

- Published: 2026-01-20 22:58 UTC · Updated: 2026-06-17 10:11 UTC · Assigner: cloudflare
- CVSS: 9.9 (CVSS 3.1) · Severity: Critical · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- EPSS: 1.5%, 74th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-20

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

## Affected vendors and products

- Cloudflare: Wrangler

## Tracked companies

- [Cloudflare](https://rewindex.com/company/cloudflare.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2026-0933)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2026-0933)
- [https://github.com/cloudflare/workers-sdk](https://github.com/cloudflare/workers-sdk)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2026-0933 · Markdown: https://rewindex.com/cve/CVE-2026-0933.md · JSON: https://rewindex.com/api/v1/cves/CVE-2026-0933 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T03:11:25.481Z
