CVE-2021-29429 Information disclosure through temporary directory permissions
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Debian
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.
Upgrade path
5 packages: 2 fixed, 3 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/gradle(Debian 12) | = 4.4.1-18; = 4.4.1-19; = 4.4.1-20; = 4.4.1-21 +7 more | No fix listed | No fix yet |
| debian/gradle(Debian 13) | = 4.4.1-22; = 4.4.1-23; = 4.5.1-1; = 4.6-1 +3 more | No fix listed | No fix yet |
| debian/gradle(Debian 14) | = 4.4.1-22; = 4.4.1-23; = 4.5.1-1; = 4.6-1 +3 more | No fix listed | No fix yet |
| gradle | < 7.0; = < 7.0 | 7.0 | Fixed |
| quarkus | <= 2.2.3 | after 2.2.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/gradle(Debian:12) | All versions | No fix listed |
| debian/gradle(Debian:12) | = 4.4.1-18 | No fix listed |
| debian/gradle(Debian:12) | = 4.4.1-19 | No fix listed |
| debian/gradle(Debian:12) | = 4.4.1-20 | No fix listed |
| debian/gradle(Debian:12) | = 4.4.1-21 | No fix listed |
| debian/gradle(Debian:12) | = 4.4.1-22 | No fix listed |
| debian/gradle(Debian:12) | = 4.4.1-23 | No fix listed |
| debian/gradle(Debian:12) | = 4.5.1-1 | No fix listed |
| debian/gradle(Debian:12) | = 4.6-1 | No fix listed |
| debian/gradle(Debian:12) | = 4.6-2 | No fix listed |
| debian/gradle(Debian:12) | = 4.6-3 | No fix listed |
| debian/gradle(Debian:13) | All versions | No fix listed |
| debian/gradle(Debian:13) | = 4.4.1-22 | No fix listed |
| debian/gradle(Debian:13) | = 4.4.1-23 | No fix listed |
| debian/gradle(Debian:13) | = 4.5.1-1 | No fix listed |
| debian/gradle(Debian:13) | = 4.6-1 | No fix listed |
| debian/gradle(Debian:13) | = 4.6-2 | No fix listed |
| debian/gradle(Debian:13) | = 4.6-3 | No fix listed |
| debian/gradle(Debian:14) | All versions | No fix listed |
| debian/gradle(Debian:14) | = 4.4.1-22 | No fix listed |
| debian/gradle(Debian:14) | = 4.4.1-23 | No fix listed |
| debian/gradle(Debian:14) | = 4.5.1-1 | No fix listed |
| debian/gradle(Debian:14) | = 4.6-1 | No fix listed |
| debian/gradle(Debian:14) | = 4.6-2 | No fix listed |
| debian/gradle(Debian:14) | = 4.6-3 | No fix listed |
Show 3 more
| Product | Affected versions | Fixed in |
|---|---|---|
| gradle | = < 7.0 | No fix listed |
| gradle | < 7.0 | 7.0 |
| quarkus | <= 2.2.3 | No fix listed |
References
- Debian Security Tracker CVE-2021-29429 vendor-advisory
- github.com exploit mitigation third-party-advisory
- docs.gradle.org release-notes vendor-advisory
- bugs.debian.org issue-tracking
- ENISA EUVD EUVD-2021-16060 third-party-advisory