gradle — security advisory
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. 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.
- Products
- gradle
- Affected versions
- 2.10-1, 2.5-3, 2.7-1, 2.7-2, 2.7-3, 3.2.1-3build2, 3.2.1-4, 3.2.1-5, 3.4.1-4, 3.4.1-6, 3.4.1-7ubuntu1, 4.4.1-10, 4.4.1-13, 4.4.1-18, 4.4.1-20, 4.4.1-22, 4.4.1-22build1, 4.4.1-22ubuntu1, 4.4.1-23, 4.4.1-5ubuntu2~18.04, 4.4.1-5ubuntu2~18.04+esm1, 4.4.1-8, 4.4.1-9
- Fixed versions
- Not specified
- CVEs
- CVE-2026-22865
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 02:57 UTC · Revision 1
Source evidence
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. 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.
osv:UBUNTU-CVE-2026-22865
gradle
Fixed versions: Not specified
gradle
Fixed versions: Not specified
gradle
Fixed versions: Not specified
gradle
Fixed versions: Not specified
gradle
Fixed versions: Not specified
gradle
Fixed versions: Not specified
gradle
Fixed versions: Not specified
gradle
Fixed versions: Not specified
Complete source record
{
"id": "fe7b53d8b3c49ed1654eb46be8b6932754b9657d1d04edaa134ac3d67d1ef26f",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-22865",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-22865",
"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. 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.",
"evidence": "osv:UBUNTU-CVE-2026-22865",
"products": [
{
"name": {
"value": "gradle",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.5-3",
"evidence": "/affected/0/versions"
},
{
"value": "2.7-1",
"evidence": "/affected/0/versions"
},
{
"value": "2.7-2",
"evidence": "/affected/0/versions"
},
{
"value": "2.7-3",
"evidence": "/affected/0/versions"
},
{
"value": "2.10-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "gradle",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.2.1-3build2",
"evidence": "/affected/1/versions"
},
{
"value": "3.2.1-4",
"evidence": "/affected/1/versions"
},
{
"value": "3.2.1-5",
"evidence": "/affected/1/versions"
},
{
"value": "3.4.1-4",
"evidence": "/affected/1/versions"
},
{
"value": "3.4.1-6",
"evidence": "/affected/1/versions"
},
{
"value": "3.4.1-7ubuntu1",
"evidence": "/affected/1/versions"
},
{
"value": "4.4.1-5ubuntu2~18.04",
"evidence": "/affected/1/versions"
},
{
"value": "4.4.1-5ubuntu2~18.04+esm1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "gradle",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.4.1-8",
"evidence": "/affected/2/versions"
},
{
"value": "4.4.1-9",
"evidence": "/affected/2/versions"
},
{
"value": "4.4.1-10",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "gradle",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.4.1-13",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "gradle",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.4.1-18",
"evidence": "/affected/4/versions"
},
{
"value": "4.4.1-20",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "gradle",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.4.1-22",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "gradle",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.4.1-22ubuntu1",
"evidence": "/affected/6/versions"
},
{
"value": "4.4.1-23",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "gradle",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.4.1-22",
"evidence": "/affected/7/versions"
},
{
"value": "4.4.1-22build1",
"evidence": "/affected/7/versions"
},
{
"value": "4.4.1-22ubuntu1",
"evidence": "/affected/7/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2026-22865",
"aliases": [
"UBUNTU-CVE-2026-22865"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gradle",
"purl": "pkg:deb/ubuntu/gradle?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"2.5-3",
"2.7-1",
"2.7-2",
"2.7-3",
"2.10-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-22865.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gradle",
"binary_version": "2.10-1"
},
{
"binary_name": "libgradle-core-java",
"binary_version": "2.10-1"
},
{
"binary_name": "libgradle-plugins-java",
"binary_version": "2.10-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gradle",
"purl": "pkg:deb/ubuntu/gradle?arch=source&distro=esm-apps%2Fbionic",
"ecosystem": "Ubuntu:Pro:18.04:LTS"
},
"versions": [
"3.2.1-3build2",
"3.2.1-4",
"3.2.1-5",
"3.4.1-4",
"3.4.1-6",
"3.4.1-7ubuntu1",
"4.4.1-5ubuntu2~18.04",
"4.4.1-5ubuntu2~18.04+esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-22865.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gradle",
"binary_version": "4.4.1-5ubuntu2~18.04+esm1"
},
{
"binary_name": "libgradle-core-java",
"binary_version": "4.4.1-5ubuntu2~18.04+esm1"
},
{
"binary_name": "libgradle-plugins-java",
"binary_version": "4.4.1-5ubuntu2~18.04+esm1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gradle",
"purl": "pkg:deb/ubuntu/gradle?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"4.4.1-8",
"4.4.1-9",
"4.4.1-10"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-22865.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gradle",
"binary_version": "4.4.1-10"
},
{
"binary_name": "libgradle-core-java",
"binary_version": "4.4.1-10"
},
{
"binary_name": "libgradle-plugins-java",
"binary_version": "4.4.1-10"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gradle",
"purl": "pkg:deb/ubuntu/gradle?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"4.4.1-13"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-22865.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gradle",
"binary_version": "4.4.1-13"
},
{
"binary_name": "libgradle-core-java",
"binary_version": "4.4.1-13"
},
{
"binary_name": "libgradle-plugins-java",
"binary_version": "4.4.1-13"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gradle",
"purl": "pkg:deb/ubuntu/gradle?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"4.4.1-18",
"4.4.1-20"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-22865.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gradle",
"binary_version": "4.4.1-20"
},
{
"binary_name": "libgradle-core-java",
"binary_version": "4.4.1-20"
},
{
"binary_name": "libgradle-plugins-java",
"binary_version": "4.4.1-20"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gradle",
"purl": "pkg:deb/ubuntu/gradle?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"4.4.1-22"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-22865.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gradle",
"binary_version": "4.4.1-22"
},
{
"binary_name": "libgradle-core-java",
"binary_version": "4.4.1-22"
},
{
"binary_name": "libgradle-plugins-java",
"binary_version": "4.4.1-22"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gradle",
"purl": "pkg:deb/ubuntu/gradle?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"4.4.1-22ubuntu1",
"4.4.1-23"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-22865.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gradle",
"binary_version": "4.4.1-23"
},
{
"binary_name": "libgradle-core-java",
"binary_version": "4.4.1-23"
},
{
"binary_name": "libgradle-plugins-java",
"binary_version": "4.4.1-23"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gradle",
"purl": "pkg:deb/ubuntu/gradle?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"4.4.1-22",
"4.4.1-22build1",
"4.4.1-22ubuntu1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-22865.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gradle",
"binary_version": "4.4.1-22ubuntu1"
},
{
"binary_name": "libgradle-core-java",
"binary_version": "4.4.1-22ubuntu1"
},
{
"binary_name": "libgradle-plugins-java",
"binary_version": "4.4.1-22ubuntu1"
}
]
}
}
],
"modified": "2026-10-17T12:59:55.351416760Z",
"provider": "osv",
"upstream": [
"CVE-2026-22865"
],
"references": [
"https://ubuntu.com/security/CVE-2026-22865",
"https://www.cve.org/CVERecord?id=CVE-2026-22865",
"https://github.com/gradle/gradle/security/advisories/GHSA-mqwm-5m85-gmcv"
]
},
"related_cves": [
{
"value": "CVE-2026-22865",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 359976,
"published_at": "2026-01-16T23:15:00+00:00"
}