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

- Severity: High 8.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:A/VC:H/VI:H/VA:H/SC:N/SI:H/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.79%, higher than 57% of CVEs (2026-12-01)
- Published: 2026-01-29T21:47:16.881Z
- Modified: 2026-06-17T10:24:04.130Z
- Weaknesses: CWE-78, CWE-157
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- gradle gradle-completion: < 9.3.1; up to 9.3.0

## Every score

- GitHub_M: CVSS:4.0 8.3 High `CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:A/VC:H/VI:H/VA:H/SC:N/SI:H/SA:N`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/gradle/gradle-completion/security/advisories/GHSA-qggc-44r3-cjgv> (patch, vendor-advisory)
- <https://github.com/gradle/gradle-completion/commit/ecacc32bb882210e5d37cd79a74de1af0d0ccad7> (patch)
- <https://www.vicarius.io/vsociety/posts/cve-2026-25063-detection-script-command-injection-vulnerability-in-bash-completion-component> (third-party-advisory)
- <https://www.vicarius.io/vsociety/posts/cve-2026-25063-mitigation-script-command-injection-vulnerability-in-bash-completion-component> (mitigation, third-party-advisory)

## Sources

- CVE List: [CVE-2026-25063](https://www.cve.org/CVERecord?id=CVE-2026-25063), CVE Terms of Use, modified 2026-02-10
- NVD: [CVE-2026-25063](https://nvd.nist.gov/vuln/detail/CVE-2026-25063), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-25063 · Whole record: https://cve.day/CVE-2026-25063.json · Rebuilt by cve.day 2026-11-25T22:59:13.309Z
