CVE-2026-0933 Details
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.
A command injection vulnerability has been identified in the Cloudflare Workers CLI tool, Wrangler, specifically within the 'pages deploy' command. This vulnerability arises from the '--commit-hash' parameter being passed directly to a shell command without adequate validation or sanitization. As a result, an attacker who can control the 'commit-hash' parameter could execute arbitrary commands on the system where Wrangler is running. This issue primarily affects CI/CD environments that use 'wrangler pages deploy' in automated pipelines, especially when the 'commit-hash' parameter is sourced from external, potentially untrusted inputs.
Users of Wrangler version 4 should upgrade to version 4.59.1 or higher. Users of Wrangler version 3 should upgrade to version 3.114.17 or higher. Those on Wrangler version 2, which is end-of-life, should upgrade to a supported major version.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 23, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/cloudflare/workers-sdk | [email protected] | Product |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-20 | Improper Input Validation | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| cloudflare wrangler | >= 2.0.15, < 3.114.17 >= 4.0.0, < 4.59.1 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 27, 2026 | Reanalysis | [email protected] |
| Jan 27, 2026 | Initial Analysis | [email protected] |
| Jan 20, 2026 | New CVE Received | [email protected] |