Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.
Summary
CVE-2026-22865: high-severity vulnerability (CVSS 8.6) in org.gradle:gradle-core.
What happened
Original description from the source: ### Impact 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. #### Vulnerability caused by continuing after max retries on transient errors An exception like [`NoHttpResponseException`](https://hc.apache.org/httpclient-legacy/exception-handling.html#org_apache_commons_httpclient_NoHttpResponseException) can indicate transient errors. If the errors persist after a maximum number of retries, Gradle would continue to the next repository. This behavior could allow an attacker to disrupt the service of a repository and leverage another repository to serve malicious artifacts. This attack requires the attacker to have control over a repository after the disrupted repository. ### Patches Gradle has introduced a change in behavior in Gradle 9.3.0 and 8.14.4 to stop searching other repositories when encountering these errors. Upgrading to either version will protect you against the vulnerabilities described here. ### Workarounds If you are using strict [repository content filtering](https://docs.gradle.org/9.3.0/userguide/filtering_repository_content.html#header) and / or [dependency verification](https://doc…
Why it matters
High severity, CVSS 8.6.
Affected products and versions
org.gradle:gradle-core < 8.14.4 (fixed in 8.14.4); org.gradle:gradle-core >= 9.0.0, < 9.3.0 (fixed in 9.3.0)
| Product | Versions | Fixed in |
|---|---|---|
| org.gradle:gradle-core | < 8.14.4 | 8.14.4 |
| org.gradle:gradle-core | >= 9.0.0, < 9.3.0 | 9.3.0 |
Action recommended by the source
Upgrade to a fixed version: 8.14.4, 9.3.0.
Fixed in: 8.14.4, 9.3.0
Sources and references
- https://github.com/advisories/GHSA-mqwm-5m85-gmcv — GHSA
- https://github.com/gradle/gradle/security/advisories/GHSA-mqwm-5m85-gmcv — GHSA
- https://nvd.nist.gov/vuln/detail/CVE-2026-22865 — GHSA
- https://github.com/gradle/gradle/commit/d38bfc0f1d4dabd38b305a67489bb8a6645138a1 — GHSA
- https://github.com/gradle/gradle/commit/fa96c8bc7f7741e5dfa1da002c559afca3fa1fc1 — GHSA
- https://docs.gradle.org/8.14.4/release-notes.html — GHSA
- https://docs.gradle.org/9.3.0/release-notes.html — GHSA
- https://github.com/gradle/gradle/releases/tag/v8.14.4 — GHSA
- https://github.com/gradle/gradle/releases/tag/v9.3.0 — GHSA
Weaknesses (CWE): CWE-494, CWE-829
Relevant change history
Published
Preliminary advisory published.