CVE-2026-22816
High · 7.4CVSS
7.4
EPSS
0.2%
Published
Jan 16, 2026
CISA due date
—
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Bitnami | gradle | 0 | 9.3.0 |
| Chainguard | gradle-8 | 0 | 8.14.4-r0 |
| Wolfi | gradle-8 | 0 | 8.14.4-r0 |
Related vulnerabilities
- CVE-2026-22865 Gradle is a build automation tool, and its native-platform tool provides Java bindings… Also affects gradle
- CVE-2025-4949 Eclipse JGit XML External Entity (XXE) Vulnerability Also affects gradle-8
- CVE-2024-30172 An issue was discovered in Bouncy Castle Java Cryptography APIs before 1.78. Also affects gradle-8
- CVE-2024-30171 An issue was discovered in Bouncy Castle Java TLS API and JSSE Provider before 1.78. Also affects gradle-8
- CVE-2024-29857 An issue was discovered in ECCurve.java and ECCurve.cs in Bouncy Castle Java (BC Java)… Also affects gradle-8
- CVE-2024-34447 An issue was discovered in the Bouncy Castle Crypto Package For Java before BC TLS Java… Also affects gradle-8
- CVE-2024-26308 Allocation of Resources Without Limits or Throttling vulnerability in Apache Commons… Also affects gradle-8
- CVE-2024-25710 Loop with Unreachable Exit Condition ('Infinite Loop') vulnerability in Apache Commons… Also affects gradle-8