# CVE-2026-22865: Gradle's failure to disable repositories failing to answer can expose builds to malicious artifacts

- Severity: High 8.6 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 7% of CVEs (2026-11-30)
- Published: 2026-01-16T22:46:19.741Z
- Modified: 2026-11-23T16:00:04.252Z
- Also known as: GHSA-mqwm-5m85-gmcv, BIT-GRADLE-2026-22865
- Weaknesses: CWE-494, CWE-829
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- gradle gradle: < 9.3.0; before 8.14.4; from 9.0.0 before 9.3.0
- org.gradle:gradle-core (Maven): before 8.14.4; from 9.0.0 before 9.3.0
- gradle (Bitnami): before 9.3.0

## Every score

- GitHub_M: CVSS:4.0 8.6 High `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`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/gradle/gradle/security/advisories/GHSA-mqwm-5m85-gmcv> (advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-22865> (advisory, web)
- <https://github.com/gradle/gradle/commit/d38bfc0f1d4dabd38b305a67489bb8a6645138a1> (web)
- <https://github.com/gradle/gradle/commit/fa96c8bc7f7741e5dfa1da002c559afca3fa1fc1> (web)
- <https://docs.gradle.org/8.14.4/release-notes.html> (web)
- <https://docs.gradle.org/9.3.0/release-notes.html> (web)
- <https://github.com/gradle/gradle> (package)
- <https://github.com/gradle/gradle/releases/tag/v8.14.4> (web)
- <https://github.com/gradle/gradle/releases/tag/v9.3.0> (web)

## Sources

- CVE List: [CVE-2026-22865](https://www.cve.org/CVERecord?id=CVE-2026-22865), CVE Terms of Use, modified 2026-01-20
- GitHub Advisory Database: [GHSA-mqwm-5m85-gmcv](https://github.com/advisories/GHSA-mqwm-5m85-gmcv), CC-BY-4.0, modified 2026-11-23
- NVD: [CVE-2026-22865](https://nvd.nist.gov/vuln/detail/CVE-2026-22865), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GRADLE-2026-22865](https://osv.dev/vulnerability/BIT-GRADLE-2026-22865), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-22865 · Whole record: https://cve.day/CVE-2026-22865.json · Rebuilt by cve.day 2026-11-25T22:59:12.904Z
