Skip to content
Fencer Vulns
medium 4.0

CVE-2021-29429 json

Information disclosure through temporary directory permissions

published 2021-04-12 5 y ago modified 2026-10-08 31 d ago also BIT-gradle-2021-29429 , EUVD-2021-16060 , GHSA-fp8h-qmr5-j4c8

cvss
4.0
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.5%
EPSS 0.5% chance of exploitation in 30 days, percentile 41%
public exploits
0
none known

Summary

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.

Patch / fix

  • bitnami gradle 7.0.0
  • gradle gradle 7.0
  • gradle-bootstrap openSUSE Leap 15.5 4.4.1-150200.3.9.1
  • gradle SLES for SAP 15 SP4, SLES for SAP 15 SP3, SLES for SAP 15 SP2 +10 more 4.4.1-150200.3.15.1

suse advisories SUSE-SU-2024:1119-1

  • gradle-src Arch Linux 7.0-1
  • gradle Arch Linux 7.0-1

arch linux advisories AVG-1809

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2021-29429 updated cvss 4.0

gradle: information disclosure through temporary directory permissions

  • Red Hat build of Quarkus gradle gradle
    affected: no fix available
  • Red Hat Integration Camel K 1 gradle gradle Red Hat JBoss Enterprise Application Platform 7 gradle gradle Red Hat JBoss Enterprise Application Platform Expansion Pack gradle gradle
    affected: no fix available “Fix deferred”
  • Red Hat build of Quarkus 2.7.5
    fixed: vendor fix RHSA-2022:4623
  • Red Hat Integration Camel Quarkus 2
    fixed: vendor fix RHSA-2021:4767
  • Red Hat Fuse 7 gradle gradle Red Hat Integration Camel Quarkus 1 gradle gradle Red Hat streams for Apache Kafka gradle gradle
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
31 d ago

Exploit prediction

0.48% chance of exploitation in the next 30 days, higher than 41% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/gradle/gradle/security/advisories/GHSA-fp8h-qmr5-j4c8 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 4.0 CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
NVD 3.1 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD 2.0 1.9 AV:L/AC:M/Au:N/C:P/I:N/A:N
OSV 3.1 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Affected packages

ecosystem package affected fixed in
bitnami gradle
<7.0.0
7.0.0

Affected products

  • gradle gradle

Classification

Weakness
  • CWE-377 DEPRECATED: Insecure Temporary File

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.