CVE-2021-29428
published high CVSS 3.1 · 8.8Local privilege escalation through system temporary directory
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| gradle | — | gradle< 7.0 | Affected | Not stated | GitHub_M |
| SUSE / openSUSE | SLE-15-SP2 | gradleaarch64 | Advisory build | 4.4.1-150200.3.7.1 | SUSE-SU-2023:1867-1 |
| SUSE / openSUSE | SLE-15-SP2 | gradleppc64le | Advisory build | 4.4.1-150200.3.7.1 | SUSE-SU-2023:1867-1 |
| SUSE / openSUSE | SLE-15-SP2 | gradles390x | Advisory build | 4.4.1-150200.3.7.1 | SUSE-SU-2023:1867-1 |
| SUSE / openSUSE | SLE-15-SP2 | gradlex86_64 | Advisory build | 4.4.1-150200.3.7.1 | SUSE-SU-2023:1867-1 |
| SUSE / openSUSE | SLE-15-SP3 | gradleaarch64 | Advisory build | 4.4.1-150200.3.7.1 | SUSE-SU-2023:1867-1 |
| SUSE / openSUSE | SLE-15-SP3 | gradleppc64le | Advisory build | 4.4.1-150200.3.7.1 | SUSE-SU-2023:1867-1 |
| SUSE / openSUSE | SLE-15-SP3 | gradles390x | Advisory build | 4.4.1-150200.3.7.1 | SUSE-SU-2023:1867-1 |
Show 9 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP3 | gradlex86_64 | Advisory build | 4.4.1-150200.3.7.1 | SUSE-SU-2023:1867-1 |
| SUSE / openSUSE | SLE-15-SP4 | gradleaarch64 | Advisory build | 4.4.1-150200.3.7.1 | SUSE-SU-2023:1867-1 |
| SUSE / openSUSE | SLE-15-SP4 | gradleppc64le | Advisory build | 4.4.1-150200.3.7.1 | SUSE-SU-2023:1867-1 |
| SUSE / openSUSE | SLE-15-SP4 | gradles390x | Advisory build | 4.4.1-150200.3.7.1 | SUSE-SU-2023:1867-1 |
| SUSE / openSUSE | SLE-15-SP4 | gradlex86_64 | Advisory build | 4.4.1-150200.3.7.1 | SUSE-SU-2023:1867-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | gradleaarch64 | Advisory build | 4.4.1-150200.3.7.1 | SUSE-SU-2023:1867-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | gradleppc64le | Advisory build | 4.4.1-150200.3.7.1 | SUSE-SU-2023:1867-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | gradles390x | Advisory build | 4.4.1-150200.3.7.1 | SUSE-SU-2023:1867-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | gradlex86_64 | Advisory build | 4.4.1-150200.3.7.1 | SUSE-SU-2023:1867-1 |
Description
In Gradle before version 7.0, on Unix-like systems, the system temporary directory can be created with open permissions that allow multiple users to create and delete files within it. Gradle builds could be vulnerable to a local privilege escalation from an attacker quickly deleting and recreating files in the system temporary directory. This vulnerability impacted builds using precompiled script plugins written in Kotlin DSL and tests for Gradle plugins written using ProjectBuilder or TestKit. If you are on Windows or modern versions of macOS, you are not vulnerable. If you are on a Unix-like operating system with the "sticky" bit set on your system temporary directory, you are not vulnerable. The problem has been patched and released with Gradle 7.0. As a workaround, on Unix-like operating systems, ensure that the "sticky" bit is set. This only allows the original user (or root) to delete a file. If you are unable to change the permissions of the system temporary directory, you can move the Java temporary directory by setting the System Property `java.io.tmpdir`. The new path needs to limit permissions to the build user only. For additional details refer to the referenced GitHub Security Advisory.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| gradle | gradle | < 7.0 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-379 CWE-379 Creation of Temporary File in Directory with Incorrect Permissions
- CWE-378 CWE-378: Creation of Temporary File With Insecure Permissions
References
4Provider assertions
3GitHub_M · cna
Local privilege escalation through system temporary directory
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 7bf0ee2dc30d5efcbc59e4e330b3dd8a558bc4ab252b46280d8e9d668edacc1b
- Ingested
- 09 Oct 2026, 16:22:05 UTC
- Source record
- Official CVE record