CVE-2026-22865
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedGradle 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. An exception like NoHttpResponseException can indicate transient errors. If the errors persist after a maximum number of retries, Gradle would continue to the next repository. This behavior could allow an attacker to disrupt the service of a repository and leverage another repository to serve malicious artifacts. This attack requires the attacker to have control over a repository after the disrupted repository. Gradle has introduced a change in behavior in Gradle 9.3.0 to stop searching other repositories when encountering these errors.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceIn Gradle versions before 9.3.0, certain transient exceptions (like NoHttpResponseException) during dependency resolution were not treated as fatal errors and did not disable the failing repository. Gradle would continue to the next repository in the list, potentially resolving dependencies from an attacker-controlled repository after disrupting a legitimate one.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data< 8.14.4>= 9.0.0, < 9.3.0CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- High
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Determine installed Gradle versionRun 'gradle --version' or check the Gradle wrapper properties file (gradle/wrapper/gradle-wrapper.properties) for the 'distributionUrl' propertyAffected if The version is less than 8.14.4, or greater than or equal to 9.0.0 but less than 9.3.0
-
Identify configured repositoriesSearch build configuration files (build.gradle, build.gradle.kts, settings.gradle, settings.gradle.kts) for 'repositories' blocks and count the number of declared repositoriesAffected if Multiple repositories are declared in any build configuration
-
Check for repository failover behaviorReview build logs or dependency resolution output for cases where Gradle falls back to a secondary repository after a transient failure (such as NoHttpResponseException or network-related exceptions)Affected if Gradle successfully resolves dependencies from a secondary repository after a transient error from a primary repository
You are affected if your installed Gradle version falls within the vulnerable ranges AND you have multiple repositories configured, allowing Gradle to continue searching other repositories after transient failures.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped8.14.49.3.0
Upgrade to Gradle 9.3.0 or later, which stops searching other repositories when encountering these types of errors.
Gradle 8.14.4 (for 8.x users) or Gradle 9.3.0 (for 9.x users)
- Identify the current Gradle version in use by checking the Gradle wrapper properties file (gradle/wrapper/gradle-wrapper.properties) or running 'gradle --version'
- Determine which Gradle release line (8.x or 9.x) is in use based on the current version
- If using Gradle 8.x version < 8.14.4: Upgrade to Gradle 8.14.4 or later (8.14.4, 8.14.5, etc.)
- If using Gradle 9.x version >= 9.0.0 and < 9.3.0: Upgrade to Gradle 9.3.0 or later
- Update the Gradle wrapper by running 'gradle wrapper --gradle-version=<new-version>' or manually updating the gradle-wrapper.properties file
- Verify the upgrade by running 'gradle --version' to confirm the new version is active
- Test build scripts and plugins to ensure compatibility with the new Gradle version
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation4.0 h
- Implementation4.0 h
- Testing4.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,968.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-22865 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-22865 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data