ubuntu-cve-2026-22865
Vulnerability from osv_ubuntu
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.
{
"affected": [
{
"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"
}
]
},
"package": {
"ecosystem": "Ubuntu:16.04:LTS",
"name": "gradle",
"purl": "pkg:deb/ubuntu/gradle@2.10-1?arch=source\u0026distro=xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.5-3",
"2.7-1",
"2.7-2",
"2.7-3",
"2.10-1"
]
},
{
"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"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:18.04:LTS",
"name": "gradle",
"purl": "pkg:deb/ubuntu/gradle@4.4.1-5ubuntu2~18.04+esm1?arch=source\u0026distro=esm-apps/bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"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"
]
},
{
"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"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "gradle",
"purl": "pkg:deb/ubuntu/gradle@4.4.1-10?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.4.1-8",
"4.4.1-9",
"4.4.1-10"
]
},
{
"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"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "gradle",
"purl": "pkg:deb/ubuntu/gradle@4.4.1-13?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.4.1-13"
]
},
{
"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"
}
]
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "gradle",
"purl": "pkg:deb/ubuntu/gradle@4.4.1-20?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.4.1-18",
"4.4.1-20"
]
},
{
"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"
}
]
},
"package": {
"ecosystem": "Ubuntu:25.10",
"name": "gradle",
"purl": "pkg:deb/ubuntu/gradle@4.4.1-22?arch=source\u0026distro=questing"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.4.1-22"
]
},
{
"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"
}
]
},
"package": {
"ecosystem": "Ubuntu:26.04:LTS",
"name": "gradle",
"purl": "pkg:deb/ubuntu/gradle@4.4.1-22ubuntu1?arch=source\u0026distro=resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.4.1-22",
"4.4.1-22build1",
"4.4.1-22ubuntu1"
]
}
],
"aliases": [],
"details": "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.",
"id": "UBUNTU-CVE-2026-22865",
"modified": "2026-05-20T15:24:37Z",
"published": "2026-01-16T23:15:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2026-22865"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2026-22865"
},
{
"type": "REPORT",
"url": "https://github.com/gradle/gradle/security/advisories/GHSA-mqwm-5m85-gmcv"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"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_V4"
},
{
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2026-22865"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.