Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • 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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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
    • Singularity Identity
      Identity Threat Detection and Response
    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
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • 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
      DFIR, Breach Readiness, & Compromise Assessments
    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
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • 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-22816

CVE-2026-22816: Gradle Build Automation RCE Vulnerability

CVE-2026-22816 is a remote code execution vulnerability in Gradle Build Automation that allows attackers to serve malicious artifacts via unresolvable host names. This article covers technical details, affected versions, and mitigation.

Published: January 23, 2026

CVE-2026-22816 Overview

CVE-2026-22816 is a download of code without integrity check vulnerability affecting Gradle, a widely-used build automation tool. When resolving dependencies in versions prior to 9.3.0, certain exceptions during repository resolution were not treated as fatal errors. This behavior allowed Gradle to continue searching subsequent repositories even when a primary repository experienced resolution failures, creating an opportunity for supply chain attacks.

The vulnerability stems from improper error handling in the dependency management subsystem. When a build encountered specific transient errors—such as an unresolvable hostname—Gradle would not disable the problematic repository and would instead proceed to resolve dependencies from alternative repositories in the configuration list. An attacker could exploit this by registering a domain name that matches a typo-squatted or lapsed repository URL, allowing them to serve malicious artifacts to vulnerable builds.

Critical Impact

Attackers can perform supply chain attacks by serving malicious artifacts through attacker-controlled repositories when primary repository resolution fails, potentially compromising build integrity across development environments and CI/CD pipelines.

Affected Products

  • Gradle versions prior to 9.3.0
  • Gradle native-platform tool (Java bindings for native APIs)
  • Build configurations with multiple repository sources

Discovery Timeline

  • 2026-01-16 - CVE CVE-2026-22816 published to NVD
  • 2026-01-16 - Last updated in NVD database

Technical Details for CVE-2026-22816

Vulnerability Analysis

This vulnerability is classified under CWE-494 (Download of Code Without Integrity Check). The core issue lies in Gradle's dependency resolution mechanism, which failed to properly handle certain transient errors as security-critical events. When the dependency resolver encountered errors such as DNS resolution failures or connection timeouts, it would mark these as non-fatal and continue searching through the list of configured repositories.

The attack surface requires that the attacker-controlled repository be listed before legitimate repositories in the build configuration. This ordering dependency is significant because Gradle resolves dependencies sequentially, and the first repository to successfully provide an artifact wins. If an attacker can anticipate or cause a resolution failure in a legitimate repository (through DNS hijacking, domain expiration, or typo-squatting), their malicious repository can serve compromised artifacts.

The vulnerability has particularly severe implications for enterprise environments where build configurations may reference multiple repositories, including internal mirrors and public repositories. A compromised artifact could propagate through CI/CD pipelines, affecting production deployments.

Root Cause

The root cause is inadequate error classification in Gradle's repository resolution logic. Specific exception types that should have been treated as security-relevant failures were instead categorized as transient errors that could be safely bypassed. The ModuleComponentRepository interface lacked proper state tracking for repository health, preventing the system from disabling repositories that exhibited potentially dangerous resolution failures.

Attack Vector

The attack requires a network-based approach with moderate complexity. An attacker would need to:

  1. Identify a target organization using Gradle builds with multiple repository configurations
  2. Register a domain matching a typo-squatted or expired repository URL
  3. Host a malicious artifact repository at the attacker-controlled domain
  4. Wait for the target's builds to encounter resolution errors with legitimate repositories
  5. Serve malicious artifacts when Gradle falls back to the attacker's repository

The attack does not require authentication but does require user interaction in the form of running a Gradle build. The impact includes high confidentiality and integrity risks as malicious code can be injected into the build pipeline.

java
     public boolean isContinueOnConnectionFailure() {
         return delegate.isContinueOnConnectionFailure();
     }
+
+    @Override
+    public boolean isRepositoryDisabled() {
+        return delegate.isRepositoryDisabled();
+    }
 }

Source: GitHub Commit Update

The security patch introduces a new isRepositoryDisabled() method to the repository interface, enabling proper state tracking and repository disabling after encountering critical errors.

Detection Methods for CVE-2026-22816

Indicators of Compromise

  • Unexpected dependencies appearing in build outputs that were not explicitly declared
  • Build logs showing repository resolution fallback behavior with warnings about connection failures
  • DNS queries to suspicious or typo-squatted domain names during build processes
  • Artifact checksums that don't match expected values from primary repositories

Detection Strategies

  • Monitor Gradle build logs for repeated transient error messages followed by successful dependency resolution from alternative repositories
  • Implement artifact signing and verification to detect unauthorized or modified dependencies
  • Deploy network monitoring to identify unusual outbound connections during build processes
  • Use dependency lock files to detect unexpected changes in resolved dependency sources

Monitoring Recommendations

  • Configure build pipelines to alert on repository fallback events
  • Implement centralized logging for all Gradle builds with correlation of dependency sources
  • Deploy DNS monitoring to detect resolution attempts to unusual or suspicious domains
  • Establish baseline artifact fingerprints and alert on deviations

How to Mitigate CVE-2026-22816

Immediate Actions Required

  • Upgrade Gradle to version 9.3.0 or later immediately
  • Audit build configurations for multiple repository sources and verify domain ownership
  • Review recent build artifacts for integrity using checksum verification
  • Implement repository allowlisting to restrict dependency sources to trusted repositories

Patch Information

Gradle has addressed this vulnerability in version 9.3.0 by introducing changes to stop searching other repositories when encountering transient errors. The fix implements proper repository state tracking through the isRepositoryDisabled() method, ensuring that repositories exhibiting resolution failures are disabled rather than bypassed. Details are available in the GitHub Security Advisory GHSA-w78c-w6vf-rw82.

Workarounds

  • Configure Gradle to use a single trusted repository or corporate proxy to eliminate fallback behavior
  • Implement strict dependency verification using Gradle's built-in verification metadata features
  • Use dependency lock files (gradle.lockfile) to pin exact dependency versions and sources
  • Deploy network egress controls to restrict build server connectivity to approved repository domains only
bash
# Enable dependency verification in gradle/verification-metadata.xml
# This ensures all dependencies are verified against trusted checksums
./gradlew --write-verification-metadata sha256,sha512

# Generate dependency lock file to pin versions
./gradlew dependencies --write-locks

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

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/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
  • ConfidentialityHigh
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-494
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-w78c-w6vf-rw82
  • Related CVEs
  • CVE-2026-25063: gradle-completion RCE Vulnerability

  • CVE-2026-22865: Gradle Build Tool DOS Vulnerability

  • CVE-2023-35947: Gradle Path Traversal Vulnerability

  • CVE-2025-27148: Gradle Privilege Escalation Vulnerability
Default Legacy - Prefooter | 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
  • 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

English