Home › Vulnerabilities › gradle
Gradle core flaws CVE-2026-22865 and CVE-2026-22816 let builds fall back to other repositories
Two HIGH-rated (CVSS 8.6) GitHub advisories published on 2026-11-23 cover maven:org.gradle:gradle-core and share one root cause: Gradle could keep resolving dependencies from later repositories after certain repository errors. The records do not say either flaw is known to be exploited.
What to look into
- 2 vulnerabilities in maven:org.gradle:gradle-core: 2 high (CVSS up to 8.6).
- None of them is known to be exploited yet.
- Start with CVE-2026-22865 (8.6 high): Gradle CVE-2026-22865: a failing earlier repository can let a later one serve malicious build artifacts. An attacker without an account can exploit this over the network if a user views or visits something, but only under specific conditions.
- 2 of 2 can be attacked over the network without logging in.
- Kinds of flaws: Download of Code Without Integrity Check (×2); Inclusion of Functionality from Untrusted Control Sphere (×2).
Key points
- Two HIGH (CVSS 8.6) advisories cover maven:org.gradle:gradle-core, published 2026-11-23.
- Both flaws stem from Gradle continuing to later repositories after errors that should have been fatal.
- CVE-2026-22865 covers transient errors persisting after maximum retries.
- CVE-2026-22816 covers unresolvable host names, such as lapsed domains or typos.
- The records do not state that either flaw is known to be exploited.
What the batch covers
Two advisories for the maven:org.gradle:gradle-core package were published by GitHub Advisory on 2026-11-23. Both are rated HIGH (CVSS 8.6) and both concern how Gradle handles repository failures during dependency resolution.
Gradle searches repositories in declaration order. Normally, a connection error causes Gradle to disable that repository and fail resolution, so dependencies are not quietly taken from another source. According to the advisories, some exceptions in earlier versions were not treated as fatal, so a build could move on to the next repository and resolve dependencies from there.
CVE-2026-22865
This flaw involves transient errors such as NoHttpResponseException. The advisory says that when such errors persisted after the maximum number of retries, Gradle continued to the next repository. An attacker could reportedly disrupt one repository and use a repository later in the list to serve malicious artifacts, but only if the attacker controls that later repository.
CVE-2026-22816
This flaw involves UnknownHostException, raised when a host name cannot be resolved. The advisory lists causes such as DNS misconfiguration, a host name typo, or a domain registration that lapsed. If dependencies could be resolved from another repository, the build kept working. The excerpt ends before the attack scenario is fully described.
Fixes and status
The advisory for CVE-2026-22865 states that Gradle introduced a change in behavior in Gradle 9.3.0. Both excerpts are cut off mid-sentence, so the full fixed-version guidance, any workarounds and detection advice are not shown here. Administrators should read the complete advisories before deciding on a version.
What to do
- Read the complete GitHub advisories for CVE-2026-22865 and CVE-2026-22816, since the excerpts are truncated.
- Check the advisories for the fixed Gradle version; the visible text names Gradle 9.3.0 as where the behavior change was introduced.
- Review build repository lists for repositories that come after others you do not control, since the attack described depends on that ordering.
The 2 vulnerabilities
- CVE-2026-22865 8.6 Gradle CVE-2026-22865: a failing earlier repository can let a later one serve malicious build artifacts
- CVE-2026-22816 8.6 Gradle dependency resolution can fall back to other repositories after an unresolvable host (CVE-2026-22816)
Frequently asked questions
How many maven:org.gradle:gradle-core vulnerabilities were published on November 23, 2026?
2 vulnerabilities: 2 high, with CVSS scores up to 8.6.
Are any of them being exploited?
None of them is in CISA's Known Exploited Vulnerabilities catalog yet.
Which one should be fixed first?
CVE-2026-22865 (CVSS 8.6): Gradle CVE-2026-22865: a failing earlier repository can let a later one serve malicious build artifacts.