# CVE-2026-22816: Gradle fails to disable repositories which 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.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2026-01-16T22:45:48.937Z
- Modified: 2026-11-23T15:45:04.066Z
- Also known as: GHSA-w78c-w6vf-rw82, BIT-GRADLE-2026-22816
- 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. If a Gradle build used an unresolvable host name, Gradle would continue to work as long as all dependencies could be resolved from another repository. An unresolvable host name could be caused by allowing a repository's domain name registration to lapse or typo-ing the real domain name. This behavior could allow an attacker to register a service under the host name used by the build and serve malicious artifacts. The attack requires the repository to be listed before others in the build configuration. 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-w78c-w6vf-rw82> (advisory, vendor-advisory, web)
- <https://github.com/gradle/gradle/commit/e5707d0d8fce3d768c9c489004700d78eab1773a> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-22816> (advisory, web)
- <https://github.com/gradle/gradle/commit/4f2e3bbee4d0cee307dd97b684f11cfbe711b6f3> (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-22816](https://www.cve.org/CVERecord?id=CVE-2026-22816), CVE Terms of Use, modified 2026-01-20
- GitHub Advisory Database: [GHSA-w78c-w6vf-rw82](https://github.com/advisories/GHSA-w78c-w6vf-rw82), CC-BY-4.0, modified 2026-11-23
- NVD: [CVE-2026-22816](https://nvd.nist.gov/vuln/detail/CVE-2026-22816), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GRADLE-2026-22816](https://osv.dev/vulnerability/BIT-GRADLE-2026-22816), Apache-2.0, modified 2026-09-08

---

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