
CVE catalog
CVE-2023-35946
gradle: CVE-2023-35946
- Severity
- Medium · CVSS 6.9
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:L - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.28% · Oct 25, 2026
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'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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | gradle | sid | 4.7-1 | vulnerable |
| Debian | gradle | forky | 4.6-3 | vulnerable |
| Debian | gradle | trixie | 4.4.1-22 | vulnerable |
| Debian | gradle | bookworm | 4.4.1-18 | vulnerable |
| Cpe | gradle | Not reported | 8.2.0 | fixed |
| Suse | gradle | linux enterprise module for development tools 15 sp5 | 4.4.1-150200.3.24.1 | fixed |
| Suse | gradle | linux enterprise module for development tools 15 sp6 | 4.4.1-150200.3.24.1 | fixed |
| Opensuse | gradle | leap 15.5 | 4.4.1-150200.3.24.1 | fixed |
| Opensuse | gradle | leap 15.6 | 4.4.1-150200.3.24.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | gradle | source | sid | (unfixed) | not yet assigned | Not reported | [1041424] |
| Debian | gradle | source | forky | (unfixed) | not yet assigned | Not reported | [1041424] |
| Debian | gradle | source | trixie | (unfixed) | not yet assigned | Not reported | [1041424] |
| Debian | gradle | source | bookworm | (unfixed) | not yet assigned | Not reported | [1041424] |
| Cpe | gradle | cpe | Not reported | 8.2.0 | Not reported | NVD-CVE-2023-35946 | Not reported |
| Suse | gradle | rpm | linux enterprise module for development tools 15 sp5 | 4.4.1-150200.3.24.1 | Not reported | SUSE-SU-2024:3163-1 | Not reported |
| Suse | gradle | rpm | linux enterprise module for development tools 15 sp6 | 4.4.1-150200.3.24.1 | Not reported | SUSE-SU-2024:3163-1 | Not reported |
| Opensuse | gradle | rpm | leap 15.5 | 4.4.1-150200.3.24.1 | Not reported | SUSE-SU-2024:3163-1 | Not reported |
| Opensuse | gradle | rpm | leap 15.6 | 4.4.1-150200.3.24.1 | Not reported | SUSE-SU-2024:3163-1 | Not reported |
Notes
[trixie] gradle: Minor issue [bookworm] gradle: Minor issue
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2024_3163-1.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2023-35946]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2023-35946]
- [https://osv.dev/vulnerability/SUSE-SU-2024:3163-1]
- [https://security-tracker.debian.org/tracker/CVE-2023-35946]
- [https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-35946.json]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]