cve.bz

CVE-2021-29429 Insecure Temporary File

5.5 mediumExploit referenceEPSS 0.5%

Medium (5.5). EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 42nd percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-377 Insecure Temporary File deprecated by MITRE
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-29429 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-29429?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-29429?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-29429 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2021-29429

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2021-29429](https://cve.bz/cve/badge/CVE-2021-29429.svg)](https://cve.bz/cve/CVE-2021-29429)

HTML:

<a href="https://cve.bz/cve/CVE-2021-29429"><img src="https://cve.bz/cve/badge/CVE-2021-29429.svg" alt="CVE-2021-29429"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gradle:gradlebefore 7.0
quarkus:quarkusthrough 2.2.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14gradleno fix listedDEBIAN-CVE-2021-29429
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 9 moregradle4.4.1-150200.3.15.1SUSE-SU-2024:1119-1
openSUSELeap 15.5gradle4.4.1-150200.3.15.1SUSE-SU-2024:1119-1
openSUSELeap 15.5gradle-bootstrap4.4.1-150200.3.9.1SUSE-SU-2024:1119-1

From the distributions' data via OSV.dev: the Debian Security Tracker; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · SUSE · openSUSE.

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
Red Hat build of Quarkus 2.7.5gradleFixed 2022-05-18RHSA-2022:4623
Red Hat Integration Camel Quarkus 2Fixed 2021-11-23RHSA-2021:4767
Red Hat build of QuarkusgradleAffected
Red Hat Fuse 7gradleNot affected
Red Hat Integration Camel K 1gradleFix deferred
Red Hat Integration Camel Quarkus 1gradleNot affected
Red Hat JBoss Enterprise Application Platform 7gradleFix deferred
Red Hat JBoss Enterprise Application Platform Expansion PackgradleFix deferred
streams for Apache KafkagradleNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-29429.

Attack patterns (CAPEC)

  • CAPEC-149 Explore for Predictable Temporary File Names Severity: Medium
  • CAPEC-155 Screen Temporary Files for Sensitive Information Likelihood: Medium · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON