PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-22865 gradle CVE debrief

CVE-2026-22865 is a vulnerability in Gradle that causes failure to disable repositories, exposing builds to malicious artifacts. When resolving dependencies, Gradle searches repositories in declaration order. If it encounters connection errors, Gradle will disable the repository and fail dependency resolution. However, in previous versions of Gradle, some exceptions were not treated as fatal errors and would not cause a repository to be disabled. This behavior could allow an attacker to disrupt the service of a repository and leverage another repository to serve malicious artifacts.

Vendor
gradle
Product
org.gradle:gradle-core
CVSS
HIGH 8.6
CISA KEV
Not listed in stored evidence
Original CVE published
2026-11-23
Original CVE updated
2026-11-23
Advisory published
2026-11-23
Advisory updated
2026-11-23

Who should care

Defenders responsible for managing Gradle dependencies and repositories should be aware of this vulnerability and take steps to verify and update their Gradle versions, review repository configurations, and implement compensating controls.

Why it matters

CVE-2026-22865 is a vulnerability in Gradle that causes failure to disable repositories, exposing builds to malicious artifacts. Defenders should prioritize verifying the Gradle version, reviewing repository configurations, and implementing compensating controls to prevent dependency resolution from untrusted repositories.

  • Verify Gradle version and update if necessary to prevent repository disruption
  • Review repository configurations to prevent dependency resolution from untrusted repositories
  • Implement compensating controls to prevent dependency resolution from untrusted repositories
  • Monitor for suspicious activity in build logs

Technical summary

The vulnerability is caused by Gradle continuing to the next repository after encountering transient errors, potentially allowing an attacker to serve malicious artifacts. The attack requires the attacker to disrupt the service of a repository. This issue can be mitigated by verifying the Gradle version, reviewing repository configurations, and implementing compensating controls to prevent dependency resolution from untrusted repositories. Additionally, defenders should prioritize monitoring for suspicious activity in build logs and performing thorough reviews of build logs to identify potential security incidents.

Defensive priority

Defenders should prioritize verifying the Gradle version and ensuring it is up-to-date, reviewing repository configurations, and implementing compensating controls to prevent dependency resolution from untrusted repositories.

Recommended defensive actions

  • Verify the Gradle version and ensure it is up-to-date
  • Review repository configurations to prevent dependency resolution from untrusted repositories
  • Implement compensating controls to prevent dependency resolution from untrusted repositories
  • Monitor for suspicious activity in build logs
  • Perform a thorough review of the build logs to identify potential security incidents
  • Conduct a vulnerability assessment to identify potential weaknesses in the Gradle configuration
  • Implement additional security controls to prevent similar vulnerabilities in the future

Evidence notes

The vulnerability is caused by Gradle continuing to the next repository after encountering transient errors, potentially allowing an attacker to serve malicious artifacts. The attack requires the attacker to disrupt the service of a repository.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-22865 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-22865

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-22865 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-22865

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • Gradle causes failure to disable repositories exposing builds to malicious artifacts

    Unverified legacy reference

    URL: https://storage.googleapis.com/osv-vulnerabilities/Maven/GHSA-mqwm-5m85-gmcv.json

    osv_dev

  • Source reference

    Unverified legacy reference

    URL: https://github.com/gradle/gradle/security/advisories/GHSA-mqwm-5m85-gmcv

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://github.com/gradle/gradle/commit/d38bfc0f1d4dabd38b305a67489bb8a6645138a1

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://github.com/gradle/gradle/commit/fa96c8bc7f7741e5dfa1da002c559afca3fa1fc1

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://docs.gradle.org/8.14.4/release-notes.html

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://docs.gradle.org/9.3.0/release-notes.html

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://github.com/gradle/gradle

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://github.com/gradle/gradle/releases/tag/v8.14.4

    Supplemental source

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.