CVE-2026-25063gradle-completion has a Bash command injection issue
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`.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | gradle | Fix pending | UBUNTU-CVE-2026-25063 | |
| Ubuntu 26.04 | gradle | Under investigation | UBUNTU-CVE-2026-25063 | |
| Ubuntu 25.10 | gradle | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-25063 | |
| Ubuntu 24.04 | gradle | Under investigation | UBUNTU-CVE-2026-25063 | |
| Ubuntu 22.04 | gradle | Under investigation | UBUNTU-CVE-2026-25063 | |
| Ubuntu 20.04 | gradle | Fix pending | UBUNTU-CVE-2026-25063 | |
| Ubuntu 18.04 | gradle | Fix pending | UBUNTU-CVE-2026-25063 | |
| Ubuntu 16.04 | gradle | Fix pending | UBUNTU-CVE-2026-25063 | |
| Debian 14 | gradle-completion | Fixed | 1.4.1-1 | DEBIAN-CVE-2026-25063 |
| Debian 13 | gradle-completion | Fix pending | DEBIAN-CVE-2026-25063 | |
| Debian 12 | gradle-completion | Fix pending | DEBIAN-CVE-2026-25063 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- gradle-completion: affected: < 9.3.1
References
- https://github.com/gradle/gradle-completion/security/advisories/GHSA-qggc-44r3-cjgv
- https://github.com/gradle/gradle-completion/commit/ecacc32bb882210e5d37cd79a74de1af0d0ccad7
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.