Skip to content

CVE-2026-25063 gradle-completion has a Bash command injection issue

HighCVSS 8.3 EPSS 0.79%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
UbuntuDebian

Description

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 temporarily disable bash completion for Gradle by removing gradle-completion from .bashrc or .bash_profile.

Upgrade path

8 packages: 2 fixed, 6 with no fix yet.

PackageAffectedFixed inStatus
debian/gradle-completion(Debian 12) = 1.3.1-1.1; = 1.4.1-1; All versions No fix listed No fix yet
debian/gradle-completion(Debian 13) = 1.3.1-1.1; = 1.4.1-1; All versions No fix listed No fix yet
ubuntu/gradle(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/gradle(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/gradle(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/gradle(Ubuntu 26.10) All versions No fix listed No fix yet
debian/gradle-completion(Debian 14) < 1.4.1-1; = 1.3.1-1.1 1.4.1-1 Fixed
gradle-completion <= 9.3.0; = < 9.3.1 after 9.3.0 Fixed

Affected products

ProductAffected versionsFixed in
gradle-completion = < 9.3.1 No fix listed
ubuntu/gradle(Ubuntu:22.04) All versions No fix listed
ubuntu/gradle(Ubuntu:24.04) All versions No fix listed
ubuntu/gradle(Ubuntu:26.04) All versions No fix listed
ubuntu/gradle(Ubuntu:26.10) All versions No fix listed
gradle-completion <= 9.3.0 No fix listed
debian/gradle-completion(Debian:12) All versions No fix listed
debian/gradle-completion(Debian:12) = 1.3.1-1.1 No fix listed
debian/gradle-completion(Debian:12) = 1.4.1-1 No fix listed
debian/gradle-completion(Debian:13) All versions No fix listed
debian/gradle-completion(Debian:13) = 1.3.1-1.1 No fix listed
debian/gradle-completion(Debian:13) = 1.4.1-1 No fix listed
debian/gradle-completion(Debian:14) < 1.4.1-1 1.4.1-1
debian/gradle-completion(Debian:14) = 1.3.1-1.1 No fix listed

References