Search covers the description text, product and vendor names and weakness types (also partial words).

CVE-2023-35947
gradle

Score8.1 High
CVSS 3.1
Exploit probability (EPSS)0.64%
within the next 30 days
CategoryAccess control & privilege
Published30 June 2023
Last modified: 2 November 2026

In short

This vulnerability can be exploited remotely over the network, without logging in, without any user interaction.

A successful attack has high impact: reading confidential data, modifying data, crashing the system or making it unavailable.

Special conditions are required for a successful attack, which makes exploitation harder.

Weakness type: Path traversal.

✨ AI commentary

After a short ad, a plain-language commentary on this vulnerability is shown. AI can make mistakes; base decisions on the official sources.

Official description

Gradle is a build tool with a focus on build automation and support for multi-language development. In affected versions when unpacking Tar archives, Gradle did not check that files could be written outside of the unpack location. This could lead to important files being overwritten anywhere the Gradle process has write permissions. For a build reading Tar entries from a Tar archive, this issue could allow Gradle to disclose information from sensitive files through an arbitrary file read. To exploit this behavior, an attacker needs to either control the source of an archive already used by the build or modify the build to interact with a malicious archive. 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. Starting from these versions, Gradle will refuse to handle Tar archives which contain path traversal elements in a Tar entry name. Users are advised to upgrade. There are no known workarounds for this vulnerability. ### Impact This is a path traversal vulnerability when Gradle deals with Tar archives, often referenced as TarSlip, a variant of ZipSlip. * When unpacking Tar archives, Gradle did not check that files could be written outside of the unpack location. This could lead to important files being overwritten anywhere the Gradle process has write permissions. * For a build reading Tar entries from a Tar archive, this issue could allow Gradle to disclose information from sensitive files through an arbitrary file read. To exploit this behavior, an attacker needs to either control the source of an archive already used by the build or modify the build to interact with a malicious archive. It is unlikely that this would go unnoticed. Gradle uses Tar archives for its [Build Cache](https://docs.gradle.org/current/userguide/build_cache.html). These archives are safe when created by Gradle. But if an attacker had control of a remote build cache server, they could inject malicious build cache entries that leverage this vulnerability. This attack vector could also be exploited if a man-in-the-middle can be performed between the remote cache and the build. ### Patches A fix has been released in Gradle 7.6.2 and 8.2 to protect against this vulnerability. Starting from these versions, Gradle will refuse to handle Tar archives which contain path traversal elements in a Tar entry name. It is recommended that users upgrade to a patched version. ### Workarounds There is no workaround. * If your build deals with Tar archives that you do not fully trust, you need to inspect them to confirm they do not attempt to leverage this vulnerability. * If you use the Gradle remote build cache, make sure only trusted parties have write access to it and that connections to the remote cache are properly secured. ### References * [CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')](https://cwe.mitre.org/data/definitions/22.html) * [Gradle Build Cache](https://docs.gradle.org/current/userguide/build_cache.html) * [ZipSlip](https://security.snyk.io/research/zip-slip-vulnerability)

CVSS: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Weakness: CWE-22 – Path traversal

Affected products

VendorProductVersions
gradlegradle<7.6.2
gradlegradle>=8.0.0 <8.2.0

Sources

Latest in the same category

  • CVE-2026-139886 Medium 4.8
    A vulnerability has been found in ApodexAI FrontierAgent up to 0.1.0. The impacted element is the function PermissionStore.load of the file apodex/permissions.py. The manipulation leads to improper authorization. An…
    Access control & privilege · 30 November 2026
  • CVE-2026-115422 Critical 9.8
    A flaw was found in 389 Directory Server. The Virtual List View (VLV) candidate-list construction evaluates LDAP search filters without enforcing attribute access controls, then publishes the resulting candidate count…
    Access control & privilege · 30 November 2026
  • CVE-2026-109159 High 8.2
    A flaw was found in FreeIPA. A directory principal holding only the right to add new entries in the directory can create a Kerberos service principal configured for unconstrained delegation that remains fully…
    Access control & privilege · 30 November 2026
  • CVE-2026-107934 Critical 9.1
    A privilege escalation from host to domain admin vulnerability was found in the FreeIPA project. The krbPrincipalMatch matching rule used to enforce Kerberos principal name uniqueness does not perform RFC 4517…
    Access control & privilege · 30 November 2026
  • CVE-2026-92440 High 7
    Incorrect route priority calculation in Kong Gateway Enterprise and Kong AI Gateway, when route_match_calculation is original (the default) with the traditional_compatible or expressions router, can select an…
    Access control & privilege · 30 November 2026
  • CVE-2026-125088 High 8.6
    Incorrect authorization in the Admins API of Kong Gateway Enterprise and Kong AI Gateway allows a workspace-scoped administrator to modify administrator accounts outside its workspace via wildcard scoping, obtaining…
    Access control & privilege · 30 November 2026