cve.bz

CVE-2021-29428

7.8 highExploit referenceEPSS 0.5%Fix available

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

On this page
In Gradle before version 7.0, on Unix-like systems, the system temporary directory can be created with open permissions that allow multiple users to create and delete files within it. Gradle builds could be vulnerable to a local privilege escalation from an attacker quickly deleting and recreating files in the system temporary directory. This vulnerability impacted builds using precompiled script plugins written in Kotlin DSL and tests for Gradle plugins written using ProjectBuilder or TestKit. If you are on Windows or modern versions of macOS, you are not vulnerable. If you are on a Unix-like operating system with the "sticky" bit set on your system temporary directory, you are not vulnerable. The problem has been patched and released with Gradle 7.0. As a workaround, on Unix-like operating systems, ensure that the "sticky" bit is set. This only allows the original user (or root) to delete a file. If you are unable to change the permissions of the system temporary directory, 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. For additional details refer to the referenced GitHub Security Advisory.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
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; 46th 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: total, 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.
CWEs
CWE-378 Creation of Temporary File With Insecure Permissions
CWE-379 Creation of Temporary File in Directory with Insecure Permissions
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-29428 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-29428?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-29428?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-29428 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-29428

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-29428](https://cve.bz/cve/badge/CVE-2021-29428.svg)](https://cve.bz/cve/CVE-2021-29428)

HTML:

<a href="https://cve.bz/cve/CVE-2021-29428"><img src="https://cve.bz/cve/badge/CVE-2021-29428.svg" alt="CVE-2021-29428"></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-29428
Ubuntu16.04:LTS, 20.04:LTS, 22.04:LTS and 5 moregradleno fix listedUBUNTU-CVE-2021-29428
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS and 8 moregradle4.4.1-150200.3.7.1SUSE-SU-2023:1867-1
openSUSELeap 15.4gradle4.4.1-150200.3.7.1SUSE-SU-2023:1867-1

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

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat CodeReady Studio 12 is not affected by this vulnerability because it does not ship the vulnerable code.

ProductPackageStateAdvisory
Red Hat build of Quarkus 2.7.5gradleFixed 2022-05-18RHSA-2022:4623
Red Hat build of QuarkusgradleAffected
Red Hat Fuse 7gradleNot affected
Red Hat Integration Camel K 1gradleFix deferred
Red Hat Integration Camel Quarkus 1gradleAffected
Red Hat JBoss Enterprise Application Platform 7gradleNot affected
Red Hat JBoss Enterprise Application Platform Expansion PackgradleNot affected
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-29428.

References

Check your stackJSON