OS Command Injection Affecting gradle-completion package, versions *


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.72% (51st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIANUNSTABLE-GRADLECOMPLETION-15158981
  • published31 Jan 2026
  • disclosed29 Jan 2026

Introduced: 29 Jan 2026

CVE-2026-25063  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

There is no fixed version for Debian:unstable gradle-completion.

NVD Description

Note: Versions mentioned in the description apply only to the upstream gradle-completion package and not the gradle-completion package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1