LiveActive security incident?Get immediate response
CVE Record

CVE-2026-22816: Gradle 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.

HighCVSS 8.6Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

Gradle builds before 9.3.0 may silently fall back to another repository when an earlier repository has certain resolution errors. If that earlier repository name is later registered or controlled by an attacker, builds could retrieve malicious dependencies. This is a software supply-chain risk affecting build integrity rather than a direct runtime server compromise.

Executive priority

Prioritize remediation for CI/CD and release pipelines. The business impact is compromised software artifacts, which can propagate to customers or production systems. Upgrade planning should be treated as a supply-chain integrity control, especially for products built with Gradle.

Technical view

CVE-2026-22816 affects Gradle versions before 9.3.0. During dependency resolution, some exceptions were not treated as fatal and did not disable the repository as intended. Gradle could continue to later repositories, masking an invalid or lapsed repository host. An attacker controlling that host could serve malicious artifacts when the repository appears before others in build configuration.

Likely exposure

Organizations are exposed if they use Gradle before 9.3.0 and build files reference unreachable, mistyped, expired, or otherwise attacker-claimable repository hostnames before trusted repositories.

Exploitation context

No active exploitation is stated in the provided sources, and the CVE is not marked KEV. Successful abuse requires a vulnerable Gradle version, a listed repository hostname an attacker can control, and build behavior that accepts dependencies from that repository context.

Researcher notes

The advisory describes a dependency-confusion-style condition tied to repository error handling and hostname control. Evidence supports affected Gradle versions before 9.3.0 and a behavioral change in 9.3.0. Do not assume exploitation in the wild from the provided sources.

Mitigation direction

  • Upgrade Gradle to 9.3.0 or later.
  • Audit build repository lists for typos, expired domains, and unresolvable hosts.
  • Remove unused or untrusted repositories from Gradle configurations.
  • Ensure trusted repositories are explicitly configured and reviewed.
  • Check Gradle’s advisory for any updated vendor guidance.

Validation and detection

  • Inventory Gradle versions used by developer workstations and CI systems.
  • Search build files for repository declarations across all projects.
  • Verify every repository hostname resolves to an expected, controlled service.
  • Confirm repository ordering does not place questionable hosts before trusted sources.
  • Review dependency resolution logs for unexpected repository fallback behavior.
Prepared
Confidence
high
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-494: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cwe · low confidence lookup

CWE-829: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-22816 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
8.6 (4.0)
Known Exploited
No
Published

Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:H/SA:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
8.6CVSS 4.0HighCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:H/SA:N——Primary CVE score

Vulnerability scoring details

Base CVSS 4.0 score

8.6High
CVSS 4.0 vector shape for CVE-2026-22816Attack VectorAttack ComplexityAttack RequirementsPrivileges RequiredUser InteractionVS ConfidentialityVS IntegrityVS AvailabilitySS ConfidentialitySS IntegritySS Availability

Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:H/SA:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Attack Requirements
NonePresent
Privileges Required
NoneLowHigh
User Interaction
NonePassiveActive
VS Confidentiality
HighLowNone
VS Integrity
HighLowNone
VS Availability
HighLowNone
SS Confidentiality
HighLowNone
SS Integrity
HighLowNone
SS Availability
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
gradlegradle< 9.3.0Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-494 · source CWE mapping

Download of Code Without Integrity Check

Download of Code Without Integrity Check represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.

CWE-829 · source CWE mapping

Inclusion of Functionality from Untrusted Control Sphere

Inclusion of Functionality from Untrusted Control Sphere represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.