Katalog CVE

CVE-2026-0933

Krytyczne
Opublikowano: Przetłumaczono: NVD NIST

Streszczenie

W poleceniu `wrangler pages deploy` wykryto podatność na wstrzykiwanie poleceń (CWE-78). Problem występuje, ponieważ parametr `--commit-hash` jest przekazywany bezpośrednio do polecenia powłoki bez odpowiedniej walidacji lub sanityzacji, co pozwala atakującemu kontrolującemu `--commit-hash` na wykonanie dowolnych poleceń w systemie, na którym działa Wrangler. Podatność jest trudna do wykorzystania, ale dotyczy głównie środowisk CI/CD, gdzie parametr pochodzi z zewnętrznych, niezaufanych źródeł.

Ocena ryzyka

W środowiskach CI/CD atakujący może wykonać dowolne polecenia na systemie, co może prowadzić do naruszenia integralności procesów budowania i wdrożeń oraz potencjalnego przejęcia kontroli nad infrastrukturą.

Rekomendacja

Zaktualizuj Wrangler do wersji zawierającej poprawkę oraz unikaj przekazywania niezaufanych wartości do parametru `--commit-hash`.

Oryginalny opis (angielski, źródło NVD)

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

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS