CVE-2021-29429
published medium CVSS 3.1 · 4.0Information disclosure through temporary directory permissions
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.15.1 | SUSE-SU-2024:1119-1 |
| SUSE / openSUSE | SLE-15-SP2 | gradleppc64le | Advisory build | 4.4.1-150200.3.15.1 | SUSE-SU-2024:1119-1 |
| SUSE / openSUSE | SLE-15-SP2 | gradles390x | Advisory build | 4.4.1-150200.3.15.1 | SUSE-SU-2024:1119-1 |
| SUSE / openSUSE | SLE-15-SP2 | gradlex86_64 | Advisory build | 4.4.1-150200.3.15.1 | SUSE-SU-2024:1119-1 |
| SUSE / openSUSE | SLE-15-SP3 | gradleaarch64 | Advisory build | 4.4.1-150200.3.15.1 | SUSE-SU-2024:1119-1 |
| SUSE / openSUSE | SLE-15-SP3 | gradleppc64le | Advisory build | 4.4.1-150200.3.15.1 | SUSE-SU-2024:1119-1 |
| SUSE / openSUSE | SLE-15-SP3 | gradles390x | Advisory build | 4.4.1-150200.3.15.1 | SUSE-SU-2024:1119-1 |
Show 19 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.15.1 | SUSE-SU-2024:1119-1 |
| SUSE / openSUSE | SLE-15-SP4 | gradleaarch64 | Advisory build | 4.4.1-150200.3.15.1 | SUSE-SU-2024:1119-1 |
| SUSE / openSUSE | SLE-15-SP4 | gradleppc64le | Advisory build | 4.4.1-150200.3.15.1 | SUSE-SU-2024:1119-1 |
| SUSE / openSUSE | SLE-15-SP4 | gradles390x | Advisory build | 4.4.1-150200.3.15.1 | SUSE-SU-2024:1119-1 |
| SUSE / openSUSE | SLE-15-SP4 | gradlex86_64 | Advisory build | 4.4.1-150200.3.15.1 | SUSE-SU-2024:1119-1 |
| SUSE / openSUSE | SLE-15-SP5 | gradleaarch64 | Advisory build | 4.4.1-150200.3.15.1 | SUSE-SU-2024:1119-1 |
| SUSE / openSUSE | SLE-15-SP5 | gradleppc64le | Advisory build | 4.4.1-150200.3.15.1 | SUSE-SU-2024:1119-1 |
| SUSE / openSUSE | SLE-15-SP5 | gradles390x | Advisory build | 4.4.1-150200.3.15.1 | SUSE-SU-2024:1119-1 |
| SUSE / openSUSE | SLE-15-SP5 | gradlex86_64 | Advisory build | 4.4.1-150200.3.15.1 | SUSE-SU-2024:1119-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | gradleaarch64 | Advisory build | 4.4.1-150200.3.15.1 | SUSE-SU-2024:1119-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | gradleppc64le | Advisory build | 4.4.1-150200.3.15.1 | SUSE-SU-2024:1119-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | gradles390x | Advisory build | 4.4.1-150200.3.15.1 | SUSE-SU-2024:1119-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | gradlex86_64 | Advisory build | 4.4.1-150200.3.15.1 | SUSE-SU-2024:1119-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | gpars-bootstrapnoarch | Advisory build | 1.2.1-150200.3.9.1 | SUSE-SU-2024:1119-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | gradle-bootstrapaarch64 | Advisory build | 4.4.1-150200.3.9.1 | SUSE-SU-2024:1119-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | gradle-bootstrapppc64le | Advisory build | 4.4.1-150200.3.9.1 | SUSE-SU-2024:1119-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | gradle-bootstraps390x | Advisory build | 4.4.1-150200.3.9.1 | SUSE-SU-2024:1119-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | gradle-bootstrapx86_64 | Advisory build | 4.4.1-150200.3.9.1 | SUSE-SU-2024:1119-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | groovy-bootstrapnoarch | Advisory build | 2.4.21-150200.3.9.1 | SUSE-SU-2024:1119-1 |
Description
In Gradle before version 7.0, files created with open permissions in the system temporary directory can allow an attacker to access information downloaded by Gradle. Some builds could be vulnerable to a local information disclosure. Remote files accessed through TextResourceFactory are downloaded into the system temporary directory first. Sensitive information contained in these files can be exposed to other local users on the same system. If you do not use the `TextResourceFactory` API, you are not vulnerable. As of Gradle 7.0, uses of the system temporary directory have been moved to the Gradle User Home directory. By default, this directory is restricted to the user running the build. As a workaround, set a more restrictive umask that removes read access to other users. When files are created in the system temporary directory, they will not be accessible to other users. If you are unable to change your system's umask, 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.
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
- 4.0 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
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
1- CWE-377 CWE-377 Insecure Temporary File
References
2Provider assertions
3GitHub_M · cna
Information disclosure through temporary directory permissions
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c0f6527becf42f15e1f106bceffc5bf1a365a4b3ddd5a1f51b3b3fcc300a1385
- Ingested
- 09 Oct 2026, 16:22:05 UTC
- Source record
- Official CVE record