# CVE-2021-29429: Information disclosure through temporary directory permissions

- Severity: Medium 4.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 34% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-04-12T21:30:12.000Z
- Modified: 2026-10-08T22:17:09.030Z
- Also known as: BIT-GRADLE-2021-29429, GHSA-fp8h-qmr5-j4c8
- Weaknesses: CWE-377
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- gradle gradle: < 7.0; before 7.0
- quarkus quarkus: up to 2.2.3
- gradle (Bitnami): before 7.0.0

## Every score

- GitHub_M: CVSS:3.1 4.0 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 1.9 Low `AV:L/AC:M/Au:N/C:P/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/gradle/gradle/security/advisories/GHSA-fp8h-qmr5-j4c8> (exploit, advisory, mitigation, third-party-advisory)
- <https://docs.gradle.org/7.0/release-notes.html#security-advisories> (advisory, release-notes, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-29429> (web)

## Sources

- CVE List: [CVE-2021-29429](https://www.cve.org/CVERecord?id=CVE-2021-29429), CVE Terms of Use, modified 2026-10-08
- NVD: [CVE-2021-29429](https://nvd.nist.gov/vuln/detail/CVE-2021-29429), Public domain, modified 2026-10-08
- Bitnami Vulnerability Database: [BIT-GRADLE-2021-29429](https://osv.dev/vulnerability/BIT-GRADLE-2021-29429), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-29429 · Whole record: https://cve.day/CVE-2021-29429.json · Rebuilt by cve.day 2026-11-25T22:58:00.724Z
