CVE-2026-22816Gradle fails to disable repositories which can expose builds to malicious artifacts
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.
What to do
Fixed builds are available from Alpine, Maven: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | gradle | Fix pending | UBUNTU-CVE-2026-22816 | |
| Ubuntu 26.04 | gradle | Under investigation | UBUNTU-CVE-2026-22816 | |
| Ubuntu 25.10 | gradle | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-22816 | |
| Ubuntu 24.04 | gradle | Under investigation | UBUNTU-CVE-2026-22816 | |
| Ubuntu 22.04 | gradle | Under investigation | UBUNTU-CVE-2026-22816 | |
| Ubuntu 20.04 | gradle | Fix pending | UBUNTU-CVE-2026-22816 | |
| Ubuntu 18.04 | gradle | Fix pending | UBUNTU-CVE-2026-22816 | |
| Ubuntu 16.04 | gradle | Fix pending | UBUNTU-CVE-2026-22816 | |
| Debian 14 | gradle | Fix pending | DEBIAN-CVE-2026-22816 | |
| Debian 13 | gradle | Fix pending | DEBIAN-CVE-2026-22816 | |
| Debian 12 | gradle | Fix pending | DEBIAN-CVE-2026-22816 | |
| Alpine Linux 3.24 | gradle | Fixed | 8.14.4-r0 | ALPINE-CVE-2026-22816 |
| Alpine Linux 3.23 | gradle | Fixed | 8.14.4-r0 | ALPINE-CVE-2026-22816 |
| Maven library | org.gradle:gradle-core | Fixed | 9.3.0 | GHSA-w78c-w6vf-rw82 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- gradle: affected: < 9.3.0
References
- https://github.com/gradle/gradle/security/advisories/GHSA-w78c-w6vf-rw82
- https://github.com/gradle/gradle/commit/e5707d0d8fce3d768c9c489004700d78eab1773a
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.