Home

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`.

PUBLISHED Reserved 2026-01-28 | Published 2026-01-29 | Updated 2026-02-10 | Assigner GitHub_M




HIGH: 8.3CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:A/VC:H/VI:H/VA:H/SC:N/SI:H/SA:N

Problem types

CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

CWE-157: Failure to Sanitize Paired Delimiters

Product status

< 9.3.1
affected

References

www.vicarius.io/...ulnerability-in-bash-completion-component

www.vicarius.io/...ulnerability-in-bash-completion-component

github.com/...letion/security/advisories/GHSA-qggc-44r3-cjgv

github.com/...ommit/ecacc32bb882210e5d37cd79a74de1af0d0ccad7

cve.org (CVE-2026-25063)

nvd.nist.gov (CVE-2026-25063)

Download JSON