UBUNTU-CVE-2023-35946 (CVE-2023-35946)
Vulnerability from osv_ubuntu – Published: 2023-06-30 21:15 – Updated: 2026-11-24 09:56 – Source websiteGradle is a build tool with a focus on build automation and support for multi-language development. When Gradle writes a dependency into its dependency cache, it uses the dependency's coordinates to compute a file location. With specially crafted dependency coordinates, Gradle can be made to write files into an unintended location. The file may be written outside the dependency cache or over another file in the dependency cache. This vulnerability could be used to poison the dependency cache or overwrite important files elsewhere on the filesystem where the Gradle process has write permissions. Exploiting this vulnerability requires an attacker to have control over a dependency repository used by the Gradle build or have the ability to modify the build's configuration. It is unlikely that this would go unnoticed. A fix has been released in Gradle 7.6.2 and 8.2 to protect against this vulnerability. Gradle will refuse to cache dependencies that have path traversal elements in their dependency coordinates. It is recommended that users upgrade to a patched version. If you are unable to upgrade to Gradle 7.6.2 or 8.2, dependency verification will make this vulnerability more difficult to exploit.
| Ecosystem | Package | Version |
|---|---|---|
| Ubuntu:16.04:LTS |
gradle
pkg:deb/ubuntu/gradle@2.10-1?arch=source&distro=xenial
|
Affected: All versions (ecosystem)
2.5-32.7-12.7-22.7-32.10-1
|
| Ubuntu:Pro:18.04:LTS |
gradle
pkg:deb/ubuntu/gradle@4.4.1-5ubuntu2~18.04+esm1?arch=source&distro=esm-apps/bionic
|
Affected: All versions (ecosystem)
3.2.1-3build23.2.1-43.2.1-53.4.1-43.4.1-63.4.1-7ubuntu14.4.1-5ubuntu2~18.044.4.1-5ubuntu2~18.04+esm1
|
| Ubuntu:20.04:LTS |
gradle
pkg:deb/ubuntu/gradle@4.4.1-10?arch=source&distro=focal
|
Affected: All versions (ecosystem)
4.4.1-84.4.1-94.4.1-10
|
| Ubuntu:22.04:LTS |
gradle
pkg:deb/ubuntu/gradle@4.4.1-13?arch=source&distro=jammy
|
Affected: All versions (ecosystem)
4.4.1-13
|
| Ubuntu:24.04:LTS |
gradle
pkg:deb/ubuntu/gradle@4.4.1-20?arch=source&distro=noble
|
Affected: All versions (ecosystem)
4.4.1-184.4.1-20
|
| Ubuntu:25.10 |
gradle
pkg:deb/ubuntu/gradle@4.4.1-22?arch=source&distro=questing
|
Affected: All versions (ecosystem)
4.4.1-22
|
| Ubuntu:26.10 |
gradle
pkg:deb/ubuntu/gradle@4.4.1-23?arch=source&distro=stonking
|
Affected: All versions (ecosystem)
4.4.1-22ubuntu14.4.1-23
|
| Ubuntu:26.04:LTS |
gradle
pkg:deb/ubuntu/gradle@4.4.1-22ubuntu1?arch=source&distro=resolute
|
Affected: All versions (ecosystem)
4.4.1-224.4.1-22build14.4.1-22ubuntu1
|
{
"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-23"
},
{
"binary_name": "libgradle-core-java",
"binary_version": "4.4.1-23"
},
{
"binary_name": "libgradle-plugins-java",
"binary_version": "4.4.1-23"
}
]
},
"package": {
"ecosystem": "Ubuntu:26.10",
"name": "gradle",
"purl": "pkg:deb/ubuntu/gradle@4.4.1-23?arch=source\u0026distro=stonking"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.4.1-22ubuntu1",
"4.4.1-23"
]
},
{
"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 tool with a focus on build automation and support for multi-language development. When Gradle writes a dependency into its dependency cache, it uses the dependency\u0027s coordinates to compute a file location. With specially crafted dependency coordinates, Gradle can be made to write files into an unintended location. The file may be written outside the dependency cache or over another file in the dependency cache. This vulnerability could be used to poison the dependency cache or overwrite important files elsewhere on the filesystem where the Gradle process has write permissions. Exploiting this vulnerability requires an attacker to have control over a dependency repository used by the Gradle build or have the ability to modify the build\u0027s configuration. It is unlikely that this would go unnoticed. A fix has been released in Gradle 7.6.2 and 8.2 to protect against this vulnerability. Gradle will refuse to cache dependencies that have path traversal elements in their dependency coordinates. It is recommended that users upgrade to a patched version. If you are unable to upgrade to Gradle 7.6.2 or 8.2, `dependency verification` will make this vulnerability more difficult to exploit.",
"id": "UBUNTU-CVE-2023-35946",
"modified": "2026-11-24T09:56:44Z",
"published": "2023-06-30T21:15:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2023-35946"
},
{
"type": "REPORT",
"url": "https://github.com/gradle/gradle/security/advisories/GHSA-2h6c-rv6q-494v"
},
{
"type": "REPORT",
"url": "https://github.com/gradle/gradle/commit/859eae2b2acf751ae7db3c9ffefe275aa5da0d5d"
},
{
"type": "REPORT",
"url": "https://github.com/gradle/gradle/commit/b07e528feb3a5ffa66bdcc358549edd73e4c8a12"
},
{
"type": "REPORT",
"url": "https://github.com/gradle/gradle/commit/859eae2b2acf751ae7db3c9ffefe275aa5da0d5d"
},
{
"type": "REPORT",
"url": "https://github.com/gradle/gradle/commit/b07e528feb3a5ffa66bdcc358549edd73e4c8a12"
},
{
"type": "REPORT",
"url": "https://docs.gradle.org/current/userguide/dependency_verification.html"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2023-35946"
}
],
"related": [],
"schema_version": "1.9.2",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:L",
"source": "CNA",
"type": "CVSS_V3"
},
{
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N",
"source": "NVD",
"type": "CVSS_V3"
},
{
"score": "medium",
"source": "SELF",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2023-35946"
]
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
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.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.