CVE-2026-22816 Gradle fails to disable repositories which can expose builds to malicious artifacts
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
10 packages: 3 fixed, 7 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/gradle(Debian 12) | = 4.4.1-18; = 4.4.1-19; = 4.4.1-20; = 4.4.1-21 +6 more | No fix listed | No fix yet |
| debian/gradle(Debian 13) | = 4.4.1-22; = 4.4.1-23; = 4.5.1-1; = 4.6-1 +2 more | No fix listed | No fix yet |
| debian/gradle(Debian 14) | = 4.4.1-22; = 4.4.1-23; = 4.5.1-1; = 4.6-1 +2 more | No fix listed | No fix yet |
| ubuntu/gradle(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/gradle(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/gradle(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/gradle(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| alpine/gradle(Alpine v3.23) | < 8.14.4-r0 | 8.14.4-r0 | Fixed |
| alpine/gradle(Alpine v3.24) | < 8.14.4-r0 | 8.14.4-r0 | Fixed |
| gradle | < 8.14.4; = < 9.3.0; >= 9.0.0, < 9.3.0 | 8.14.4, 9.3.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| gradle | = < 9.3.0 | No fix listed |
| debian/gradle(Debian:12) | All versions | No fix listed |
| debian/gradle(Debian:12) | = 4.4.1-18 | No fix listed |
| debian/gradle(Debian:12) | = 4.4.1-19 | No fix listed |
| debian/gradle(Debian:12) | = 4.4.1-20 | No fix listed |
| debian/gradle(Debian:12) | = 4.4.1-21 | No fix listed |
| debian/gradle(Debian:12) | = 4.4.1-22 | No fix listed |
| debian/gradle(Debian:12) | = 4.4.1-23 | No fix listed |
| debian/gradle(Debian:12) | = 4.5.1-1 | No fix listed |
| debian/gradle(Debian:12) | = 4.6-1 | No fix listed |
| debian/gradle(Debian:12) | = 4.6-2 | No fix listed |
| debian/gradle(Debian:13) | All versions | No fix listed |
| debian/gradle(Debian:13) | = 4.4.1-22 | No fix listed |
| debian/gradle(Debian:13) | = 4.4.1-23 | No fix listed |
| debian/gradle(Debian:13) | = 4.5.1-1 | No fix listed |
| debian/gradle(Debian:13) | = 4.6-1 | No fix listed |
| debian/gradle(Debian:13) | = 4.6-2 | No fix listed |
| debian/gradle(Debian:14) | All versions | No fix listed |
| debian/gradle(Debian:14) | = 4.4.1-22 | No fix listed |
| debian/gradle(Debian:14) | = 4.4.1-23 | No fix listed |
| debian/gradle(Debian:14) | = 4.5.1-1 | No fix listed |
| debian/gradle(Debian:14) | = 4.6-1 | No fix listed |
| debian/gradle(Debian:14) | = 4.6-2 | No fix listed |
| ubuntu/gradle(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/gradle(Ubuntu:24.04) | All versions | No fix listed |
Show 6 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/gradle(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/gradle(Ubuntu:26.10) | All versions | No fix listed |
| gradle | < 8.14.4 | 8.14.4 |
| gradle | >= 9.0.0, < 9.3.0 | 9.3.0 |
| alpine/gradle(Alpine:v3.23) | < 8.14.4-r0 | 8.14.4-r0 |
| alpine/gradle(Alpine:v3.24) | < 8.14.4-r0 | 8.14.4-r0 |
References
- https://github.com/gradle/gradle/security/advisories/GHSA-w78c-w6vf-rw82 vendor-advisory
- https://github.com/gradle/gradle/commit/e5707d0d8fce3d768c9c489004700d78eab1773a patch
- Debian Security Tracker CVE-2026-22816 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking