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-22865

CVE-2026-22865: Gradle Build Tool DOS Vulnerability

CVE-2026-22865 is a denial of service vulnerability in Gradle build automation tool that allows attackers to disrupt repository services and serve malicious artifacts. This article covers technical details, affected versions, and mitigations.

Published: January 23, 2026

CVE-2026-22865 Overview

Gradle is a build automation tool, and its native-platform tool provides Java bindings for native APIs. A vulnerability exists in versions before 9.3.0 where certain exceptions during dependency resolution were not treated as fatal errors and would not cause a repository to be disabled. When a build encountered one of these exceptions, Gradle would continue to the next repository in the list and potentially resolve dependencies from a different repository, enabling supply chain attack scenarios.

Critical Impact

This vulnerability could allow an attacker to disrupt the service of a legitimate repository and leverage another controlled repository to serve malicious artifacts, compromising the software supply chain.

Affected Products

  • Gradle versions prior to 9.3.0
  • Gradle native-platform tool with Java bindings
  • Build systems utilizing multiple repository configurations

Discovery Timeline

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

Technical Details for CVE-2026-22865

Vulnerability Analysis

This vulnerability relates to CWE-494 (Download of Code Without Integrity Check), manifesting in Gradle's dependency resolution mechanism. The issue arises from improper error handling during repository communication. When Gradle encounters transient errors such as NoHttpResponseException, the build tool does not properly treat these as conditions that should terminate the repository search. Instead, after exhausting retry attempts, Gradle proceeds to query subsequent repositories in the configured list.

The vulnerability creates a window of opportunity for supply chain attacks. An attacker who can cause disruption to a primary, trusted repository—through denial of service or network interference—can force Gradle to fall back to a secondary repository under their control. This secondary repository can then serve malicious artifacts that appear legitimate to the build process.

Root Cause

The root cause stems from Gradle's error classification logic in the dependency resolution subsystem. Certain HTTP exceptions, including NoHttpResponseException, were categorized as recoverable errors rather than terminal failures. While this design was intended to handle genuine transient network issues gracefully, it created an attack surface where persistent errors (potentially induced by an attacker) would not prevent Gradle from seeking dependencies elsewhere.

The permissive fallback behavior means that even after the maximum retry count is exceeded for a given repository, Gradle continues its search through the repository chain rather than failing the build with an appropriate error.

Attack Vector

The attack vector requires network-level access to disrupt communication between the build system and a legitimate repository. An attacker must have control over a repository that appears later in the build's repository configuration. The attack unfolds as follows:

  1. The attacker disrupts the target's connection to a legitimate repository (e.g., through network interference or denial of service)
  2. Gradle encounters errors when attempting to resolve dependencies from the disrupted repository
  3. After retries are exhausted, Gradle falls back to the next configured repository
  4. The attacker-controlled repository serves malicious artifacts in place of legitimate dependencies
  5. The build proceeds with compromised dependencies, potentially introducing backdoors or malware

This attack is network-based but requires specific preconditions: the attacker must control a repository in the fallback chain and must be able to sustain disruption of the primary repository.

Detection Methods for CVE-2026-22865

Indicators of Compromise

  • Unexpected dependency resolution from secondary or tertiary repositories in build logs
  • Increased NoHttpResponseException or similar transient errors targeting specific repositories
  • Hash mismatches for resolved artifacts compared to expected values
  • Build artifacts originating from untrusted or unexpected repository sources

Detection Strategies

  • Review Gradle build logs for repository fallback patterns and repeated connection failures to primary repositories
  • Implement artifact verification using checksums or signatures to detect substitution attacks
  • Monitor network traffic for anomalous patterns targeting repository connections
  • Enable Gradle's dependency verification feature to detect unexpected artifact sources

Monitoring Recommendations

  • Configure alerting for builds that resolve dependencies from non-primary repositories
  • Implement integrity verification for all resolved dependencies using Gradle's built-in verification features
  • Monitor for unusual network activity or denial of service indicators targeting build infrastructure
  • Audit repository configurations to minimize exposure to untrusted fallback repositories

How to Mitigate CVE-2026-22865

Immediate Actions Required

  • Upgrade Gradle to version 9.3.0 or later, which includes the behavioral fix for repository error handling
  • Review and minimize the number of repositories in your build configuration to reduce fallback attack surface
  • Enable Gradle dependency verification to cryptographically verify artifact integrity
  • Audit existing builds for any evidence of unexpected repository fallback behavior

Patch Information

Gradle has addressed this vulnerability by introducing a behavioral change in version 9.3.0. In the patched version, Gradle will stop searching other repositories when encountering persistent errors rather than continuing through the repository chain. This prevents the fallback mechanism from being exploited for supply chain attacks.

For additional details, refer to the GitHub Security Advisory.

Workarounds

  • Configure builds to use a single trusted repository when possible, eliminating fallback attack vectors
  • Implement network-level controls to ensure stable connectivity to legitimate repositories
  • Use Gradle's dependency locking feature to prevent unexpected dependency version changes
  • Deploy a repository manager proxy that validates artifacts before serving them to builds
bash
# Enable dependency verification in Gradle
# Create or update gradle/verification-metadata.xml with trusted checksums
gradle --write-verification-metadata sha256

# Configure strict repository handling by limiting repositories
# In settings.gradle.kts, define only essential repositories:
# dependencyResolutionManagement {
#     repositories {
#         mavenCentral()  // Single trusted repository
#     }
# }

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

  • Vulnerability Details
  • TypeDOS

  • 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 Security Advisory
  • Related CVEs
  • CVE-2026-25063: gradle-completion RCE Vulnerability

  • CVE-2026-22816: Gradle Build Automation RCE 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