Vulnerability

CVE-2026-25063

highCVSS 4.0 8.3Published 29 Jan 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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

Affected products

From the NVD's configuration data (CPE), vendor first.

  • Gradle gradle-completion

Weakness type

References

  • github.com /gradle/gradle-completion/commit/ecacc32bb882210e5d37cd79a7…
  • github.com /gradle/gradle-completion/security/advisories/GHSA-qggc-44r…
  • www.vicarius.io /vsociety/posts/cve-2026-25063-detection-script-command-inj…
  • www.vicarius.io /vsociety/posts/cve-2026-25063-mitigation-script-command-in…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning