CVE Catalog
EnglishPolski(English translation not available - showing Polish)

CVE-2026-25063

High
Published: Translated: NVD NIST

Summary

W `gradle-completion` do wersji 9.3.0 zidentyfikowano podatność na wstrzyknięcie poleceń, która umożliwia wykonanie dowolnego kodu podczas korzystania z autouzupełniania w Bashu w projekcie zawierającym złośliwy plik Gradle. Skrypt `gradle-completion` nieprawidłowo sanitizuje nazwy zadań i opisy zadań Gradle, co prowadzi do wstrzyknięcia poleceń.

Risk Assessment

Podatność ta może prowadzić do nieautoryzowanego wykonania kodu w systemie, co stwarza poważne zagrożenie dla bezpieczeństwa organizacji, zwłaszcza w przypadku projektów z złośliwymi plikami Gradle.

Recommendation

Zaleca się aktualizację do wersji 9.3.1 lub nowszej, aby usunąć tę podatność. Alternatywnie, można zastosować obejście, aby zminimalizować ryzyko związane z autouzupełnianiem w Bashu.

Related vulnerabilities

Original NVD description (English source)

gradle-completion provides Bash and Zsh completion support for Gradle. A command injection vulnerability was found in gradle-completion up to and including 9.3.0 that allows arbitrary code execution when a user triggers Bash tab completion in a project containing a malicious Gradle build file. The `gradle-completion` script for Bash fails to adequately sanitize Gradle task names and task descriptions, allowing command injection via a malicious Gradle build file when the user completes a command in Bash (without them explicitly running any task in the build). For example, given a task description that includes a string between backticks, then that string would be evaluated as a command when presenting the task description in the completion list. While task execution is the core feature of Gradle, this inherent execution may lead to unexpected outcomes. The vulnerability does not affect zsh completion. The first patched version is 9.3.1. As a workaround, it is possible and effective to t

Vulnerability data from NVD (NIST) · CISA KEV · EPSS