CVE-2026-22865 Details
Description
Gradle is a build automation tool, and its native-platform tool provides Java bindings for native APIs. When resolving dependencies in versions before 9.3.0, 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. An exception like 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. Gradle has introduced a change in behavior in Gradle 9.3.0 to stop searching other repositories when encountering these errors.
A vulnerability exists in Gradle's dependency resolution process in versions prior to 9.3.0 and in the 9.0.0 to 9.2.1 range. When Gradle encounters certain exceptions, such as NoHttpResponseException, it does not treat them as fatal errors. This allows Gradle to continue resolving dependencies from other repositories without disabling the problematic one. As a result, an attacker could disrupt a repository's service and use another repository to deliver malicious artifacts, provided they have control over the latter.
Users can upgrade to Gradle versions 8.14.4 or 9.3.0 and later, both of which address this vulnerability. If an upgrade is not possible, configuring dependency verification can help ensure that only expected dependencies are resolved.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/gradle/gradle/security/advisories/GHSA-mqwm-5m85-gmcv | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-494 | Download of Code Without Integrity Check | [email protected] |
| CWE-829 | Inclusion of Functionality from Untrusted Control Sphere | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| gradle gradle | < 8.14.4 >= 9.0.0, < 9.3.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 18, 2026 | Initial Analysis | [email protected] |
| Jan 16, 2026 | New CVE Received | [email protected] |