Read the docs
TI-2026-20247 Aliases CVE-2026-25063

gradle-completion has a Bash command injection issue

Priority LOW 39CWE-157Published · Updated

Key facts

Attack vector
Local
Privileges required
High
User interaction
Active
Attack complexity
Low
Attack requirements
None
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-78.

Summary

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

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.0079 56th percentileScored 2026-11-07
Fix Fixed gradle-completion (gradle): 9.3.1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
gradlegradle-completionbefore 9.3.19.3.1Patch availableCNA
  • gradle-completion Vendorgradle Affected before 9.3.1 Fixed in 9.3.1 Patch available CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:gradle:gradle-completion:*:*:*:*:*:gradle:*:*up to 9.3.0Vulnerablegradle
  • cpe:2.3:a:gradle:gradle-completion:*:*:*:*:*:gradle:*:* Versions up to 9.3.0 Vulnerable ·gradle

Remediation

  • Fix · CNA gradle-completion (gradle) Fixed in 9.3.1

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-25063

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences