Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.gradle/gradle-core
  4. ›
  5. CVE-2026-22865

CVE-2026-22865: Gradle causes failure to disable repositories exposing builds to malicious artifacts

November 23, 2026

When resolving dependencies, Gradle searches repositories in declaration order. If it encounters connection errors, Gradle will disable the repository and fail dependency resolution. This is necessary for both reproducibility and security reasons to prevent dependencies from being resolved from other repositories without warning.

In previous versions of Gradle, some exceptions were not treated as fatal errors and would not cause a repository to be disabled. If 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.

References

  • docs.gradle.org/8.14.4/release-notes.html
  • docs.gradle.org/9.3.0/release-notes.html
  • github.com/advisories/GHSA-mqwm-5m85-gmcv
  • github.com/gradle/gradle/commit/d38bfc0f1d4dabd38b305a67489bb8a6645138a1
  • github.com/gradle/gradle/commit/fa96c8bc7f7741e5dfa1da002c559afca3fa1fc1
  • github.com/gradle/gradle/releases/tag/v8.14.4
  • github.com/gradle/gradle/releases/tag/v9.3.0
  • github.com/gradle/gradle/security/advisories/GHSA-mqwm-5m85-gmcv
  • nvd.nist.gov/vuln/detail/CVE-2026-22865

Code Behaviors & Features

Detect and mitigate CVE-2026-22865 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 8.14.4, all versions starting from 9.0.0 before 9.3.0

Fixed versions

  • 8.14.4
  • 9.3.0

Solution

Upgrade to versions 8.14.4, 9.3.0 or above.

Impact 8 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-494: Download of Code Without Integrity Check
  • CWE-829: Inclusion of Functionality from Untrusted Control Sphere

Source file

maven/org.gradle/gradle-core/CVE-2026-22865.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Nov 2026 00:16:36 +0000.