{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2026-0933", "assignerOrgId": "a22f1246-ba21-4bb4-a601-ad51614c1513", "state": "PUBLISHED", "assignerShortName": "cloudflare", "dateReserved": "2026-01-14T08:27:27.244Z", "datePublished": "2026-01-20T22:58:05.212Z", "dateUpdated": "2026-01-23T21:54:58.842Z" }, "containers": { "cna": { "affected": [ { "defaultStatus": "unaffected", "packageName": "Wrangler", "product": "Wrangler", "repo": "https://github.com/cloudflare/workers-sdk", "vendor": "Cloudflare", "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+" } ] } ], "descriptions": [ { "lang": "en", "supportingMedia": [ { "base64": false, "type": "text/html", "value": "
A 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.
The 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.
This 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:
Disclosed responsibly by kny4hacker.