PT-2023-25397 · Gradle+2 · Gradle+2
Ljacomet
·
Published
2023-06-30
·
Updated
2024-09-06
·
CVE-2023-35946
CVSS v3.1
6.9
Medium
| Vector | AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:L |
Name of the Vulnerable Software and Affected Versions
Gradle versions prior to 7.6.2
Gradle versions prior to 8.2
Description
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 issue 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 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.
Recommendations
For Gradle versions prior to 7.6.2, upgrade to Gradle 7.6.2 or later.
For Gradle versions prior to 8.2, upgrade to Gradle 8.2 or later.
If you are unable to upgrade to Gradle 7.6.2 or 8.2, using
dependency verification will make this issue more difficult to exploit.Exploit
Fix
Path traversal
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Debian
Gradle
Suse