{"id":"CVE-2026-22865","summary":"Gradle's failure to disable repositories failing to answer can expose builds to malicious artifacts","details":"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.","aliases":["BIT-gradle-2026-22865","GHSA-mqwm-5m85-gmcv"],"modified":"2026-04-10T05:38:53.438528Z","published":"2026-01-16T22:46:19.741Z","related":["CGA-5q33-27fx-mhj8"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22865.json","cwe_ids":["CWE-494","CWE-829"],"cna_assigner":"GitHub_M"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22865.json"},{"type":"ADVISORY","url":"https://github.com/gradle/gradle/security/advisories/GHSA-mqwm-5m85-gmcv"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-22865"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/gradle/gradle","events":[{"introduced":"328772c6bae126949610a8beb59cb227ee580241"},{"fixed":"701205ed2f78811508466c8e1952304c2ea869f5"}]}],"versions":["v9.0.0","v9.1.0","v9.1.0-RC1","v9.1.0-RC2","v9.1.0-RC3","v9.1.0-RC4","v9.2.0","v9.2.0-RC1","v9.2.0-RC2","v9.2.0-RC3","v9.2.1","v9.3.0-M2","v9.3.0-RC1","v9.3.0-RC2","v9.3.0-RC3"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-22865.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"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"}]}