gradle — security advisory
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 thro
- Products
- gradle
- Affected versions
- 4.4.1-18, 4.4.1-19, 4.4.1-20, 4.4.1-21, 4.4.1-22, 4.4.1-23, 4.5.1-1, 4.6-1, 4.6-2, 4.6-3, 4.6-4, 4.6-5, 4.7-1
- Fixed versions
- Not specified
- CVEs
- CVE-2023-35947
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 15:53 UTC · Revision 1
Source evidence
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 thro
osv:DEBIAN-CVE-2023-35947
gradle
Fixed versions: Not specified
gradle
Fixed versions: Not specified
gradle
Fixed versions: Not specified
Complete source record
{
"id": "6218b5d3e649412fe1b4236a2e792480268e07655925a831680d849b6bc8f9e9",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2023-35947",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2023-35947",
"summary": "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 thro",
"evidence": "osv:DEBIAN-CVE-2023-35947",
"products": [
{
"name": {
"value": "gradle",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.4.1-18",
"evidence": "/affected/0/versions"
},
{
"value": "4.4.1-19",
"evidence": "/affected/0/versions"
},
{
"value": "4.4.1-20",
"evidence": "/affected/0/versions"
},
{
"value": "4.4.1-21",
"evidence": "/affected/0/versions"
},
{
"value": "4.4.1-22",
"evidence": "/affected/0/versions"
},
{
"value": "4.4.1-23",
"evidence": "/affected/0/versions"
},
{
"value": "4.5.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "4.6-1",
"evidence": "/affected/0/versions"
},
{
"value": "4.6-2",
"evidence": "/affected/0/versions"
},
{
"value": "4.6-3",
"evidence": "/affected/0/versions"
},
{
"value": "4.6-4",
"evidence": "/affected/0/versions"
},
{
"value": "4.6-5",
"evidence": "/affected/0/versions"
},
{
"value": "4.7-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "gradle",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.4.1-22",
"evidence": "/affected/1/versions"
},
{
"value": "4.4.1-23",
"evidence": "/affected/1/versions"
},
{
"value": "4.5.1-1",
"evidence": "/affected/1/versions"
},
{
"value": "4.6-1",
"evidence": "/affected/1/versions"
},
{
"value": "4.6-2",
"evidence": "/affected/1/versions"
},
{
"value": "4.6-3",
"evidence": "/affected/1/versions"
},
{
"value": "4.6-4",
"evidence": "/affected/1/versions"
},
{
"value": "4.6-5",
"evidence": "/affected/1/versions"
},
{
"value": "4.7-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "gradle",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.4.1-22",
"evidence": "/affected/2/versions"
},
{
"value": "4.4.1-23",
"evidence": "/affected/2/versions"
},
{
"value": "4.5.1-1",
"evidence": "/affected/2/versions"
},
{
"value": "4.6-1",
"evidence": "/affected/2/versions"
},
{
"value": "4.6-2",
"evidence": "/affected/2/versions"
},
{
"value": "4.6-3",
"evidence": "/affected/2/versions"
},
{
"value": "4.6-4",
"evidence": "/affected/2/versions"
},
{
"value": "4.6-5",
"evidence": "/affected/2/versions"
},
{
"value": "4.7-1",
"evidence": "/affected/2/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2023-35947",
"aliases": [
"DEBIAN-CVE-2023-35947"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gradle",
"purl": "pkg:deb/debian/gradle?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"4.4.1-18",
"4.4.1-19",
"4.4.1-20",
"4.4.1-21",
"4.4.1-22",
"4.4.1-23",
"4.5.1-1",
"4.6-1",
"4.6-2",
"4.6-3",
"4.6-4",
"4.6-5",
"4.7-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-35947.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gradle",
"purl": "pkg:deb/debian/gradle?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"4.4.1-22",
"4.4.1-23",
"4.5.1-1",
"4.6-1",
"4.6-2",
"4.6-3",
"4.6-4",
"4.6-5",
"4.7-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-35947.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gradle",
"purl": "pkg:deb/debian/gradle?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"4.4.1-22",
"4.4.1-23",
"4.5.1-1",
"4.6-1",
"4.6-2",
"4.6-3",
"4.6-4",
"4.6-5",
"4.7-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-35947.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-26T18:02:19.223433366Z",
"provider": "osv",
"upstream": [
"CVE-2023-35947"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2023-35947"
]
},
"related_cves": [
{
"value": "CVE-2023-35947",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 455959,
"published_at": "2023-06-30T21:15:09.147+00:00"
}