CVEfocus › CVE database › CVE-2026-22816

CVE-2026-22816Gradle fails to disable repositories which can expose builds to malicious artifacts

CVSS 8.6 HighEPSS 0.2% (higher than 8% of CVEs)Published 2026-01-16Updated 2026-01-20Assigner: GitHub_M

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.

CWE-494CWE-829

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

3Fixed
7Fix pending
3Under investigation
1Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10gradleFix pendingUBUNTU-CVE-2026-22816
Ubuntu 26.04gradleUnder investigationUBUNTU-CVE-2026-22816
Ubuntu 25.10gradleWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-22816
Ubuntu 24.04gradleUnder investigationUBUNTU-CVE-2026-22816
Ubuntu 22.04gradleUnder investigationUBUNTU-CVE-2026-22816
Ubuntu 20.04gradleFix pendingUBUNTU-CVE-2026-22816
Ubuntu 18.04gradleFix pendingUBUNTU-CVE-2026-22816
Ubuntu 16.04gradleFix pendingUBUNTU-CVE-2026-22816
Debian 14gradleFix pendingDEBIAN-CVE-2026-22816
Debian 13gradleFix pendingDEBIAN-CVE-2026-22816
Debian 12gradleFix pendingDEBIAN-CVE-2026-22816
Alpine Linux 3.24gradleFixed8.14.4-r0ALPINE-CVE-2026-22816
Alpine Linux 3.23gradleFixed8.14.4-r0ALPINE-CVE-2026-22816
Maven libraryorg.gradle:gradle-coreFixed9.3.0GHSA-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.

References

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.