nday
CVE-2026-22816 GHSA-w78c-w6vf-rw82

Gradle fails to disable repositories which can expose builds to malicious artifacts

gradle / gradle

Patch on record 311 days after disclosure. Patched: fixed in org.gradle:gradle-core 8.14.4 and org.gradle:gradle-core 9.3.0. None of the four PoC sources lists it. Not in CISA KEV.

why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

network
AV:N in 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 (CVSS 4.0) from the CNA GitHub_M
no authentication required
PR:N in 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 (CVSS 4.0) from the CNA GitHub_M
Maven
GHSA-w78c-w6vf-rw82: maven packages org.gradle:gradle-core
stage
PAT
disclosed
disclosure → patch
T+311d
cvss
8.6 HIGH v4.0

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
01-16T22:45Z
PATpatch
11-23T16:04Z
ANAanalysis
no record yet
POCPoC
no record yet
ITWexploited
no record yet
KEVKEV
no record yet

Summary

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.

Original text of the CVE record (cvelist), shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:N
Network: the attacker only needs to reach it over the network
Attack complexity AC:H
High: the attacker must evade or get around security measures such as ASLR or DEP, or obtain target-specific secrets
Attack requirements AT:P
Present: success depends on specific deployment or execution conditions, such as a race condition, a non-default setting or a position on the network path
Privileges required PR:N
None: no account or authorization needed
User interaction UI:P
Passive: limited, involuntary interaction, such as visiting a page

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

CVSS 4.0 vector from the CVE record, scored by the CNA GitHub_M.

Event log

+DISdisclosed

CVE record published by GitHub_M. CVSS 8.6, high.

src cvelist · nday , bulk import · raw
{
  "id": 411269,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-22816",
  "occurred_at": "2026-01-16T22:45:48.937Z",
  "observed_at": "2026-11-13T05:39:37.317819Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "cvss": {
      "source": "cna",
      "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",
      "version": "4.0",
      "base_score": 8.6,
      "base_severity": "HIGH"
    },
    "ssvc": {
      "timestamp": "2026-01-20T14:49:03.938522Z",
      "automatable": "no",
      "exploitation": "none",
      "technical_impact": "partial"
    },
    "state": "PUBLISHED",
    "date_published": "2026-01-16T22:45:48.937Z",
    "assigner_short_name": "GitHub_M"
  }
}
no source time; observed live by nday
+PATpatch released

The advisory gives fixed versions org.gradle:gradle-core 8.14.4 and org.gradle:gradle-core 9.3.0. Fix commits are linked. Advisory published ; the patch's own release time is not recorded.

src ghsa GHSA-w78c-w6vf-rw82 · nday , observed live · raw
{
  "id": 522953,
  "type": "patch_released",
  "source": "ghsa",
  "url": "https://github.com/advisories/GHSA-w78c-w6vf-rw82",
  "occurred_at": null,
  "observed_at": "2026-11-23T16:04:12.566454Z",
  "is_backfill": false,
  "dedupe_key": "GHSA-w78c-w6vf-rw82",
  "detail": {
    "cvss": {
      "cvss_v3": {
        "score": 0.0,
        "vector_string": null
      },
      "cvss_v4": {
        "score": 8.6,
        "vector_string": "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"
      }
    },
    "cwes": [
      {
        "name": "Download of Code Without Integrity Check",
        "cwe_id": "CWE-494"
      },
      {
        "name": "Inclusion of Functionality from Untrusted Control Sphere",
        "cwe_id": "CWE-829"
      }
    ],
    "ghsa_id": "GHSA-w78c-w6vf-rw82",
    "packages": [
      {
        "name": "org.gradle:gradle-core",
        "ecosystem": "maven",
        "first_patched_version": "8.14.4",
        "vulnerable_version_range": "< 8.14.4"
      },
      {
        "name": "org.gradle:gradle-core",
        "ecosystem": "maven",
        "first_patched_version": "9.3.0",
        "vulnerable_version_range": ">= 9.0.0, < 9.3.0"
      }
    ],
    "severity": "high",
    "references": [
      "https://github.com/gradle/gradle/security/advisories/GHSA-w78c-w6vf-rw82",
      "https://nvd.nist.gov/vuln/detail/CVE-2026-22816",
      "https://github.com/gradle/gradle/commit/4f2e3bbee4d0cee307dd97b684f11cfbe711b6f3",
      "https://github.com/gradle/gradle/commit/e5707d0d8fce3d768c9c489004700d78eab1773a",
      "https://docs.gradle.org/8.14.4/release-notes.html",
      "https://docs.gradle.org/9.3.0/release-notes.html",
      "https://github.com/gradle/gradle/releases/tag/v8.14.4",
      "https://github.com/gradle/gradle/releases/tag/v9.3.0",
      "https://github.com/advisories/GHSA-w78c-w6vf-rw82"
    ],
    "fix_commit_urls": [
      "https://github.com/gradle/gradle/commit/4f2e3bbee4d0cee307dd97b684f11cfbe711b6f3",
      "https://github.com/gradle/gradle/commit/e5707d0d8fce3d768c9c489004700d78eab1773a"
    ],
    "github_reviewed_at": "2026-11-23T15:33:34Z",
    "advisory_updated_at": "2026-11-23T15:39:17Z",
    "source_code_location": "https://github.com/gradle/gradle",
    "advisory_published_at": "2026-11-23T15:33:34Z"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Researcher discussion

0 researchers mentioned this in the last 7 days

Posts on X by researchers on nday's list that mention this CVE, shown as posted. nday does not check them.

nday has not collected any post on X by listed researchers that mentions this CVE.

Discussion

0 comments

No comments yet.