8.8
HIGH
CVE-2021-29428
"Gradle Unix Temporary Directory Privilege Escalation Vulnerability"
Description

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.

INFO

Published Date :

April 13, 2021, 8:15 p.m.

Last Modified :

Oct. 20, 2021, 2:35 p.m.

Remotely Exploitable :

No

Impact Score :

6.0

Exploitability Score :

2.0
Affected Products

The following products are affected by CVE-2021-29428 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Gradle gradle
1 Quarkus quarkus
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2021-29428.

URL Resource
https://docs.gradle.org/7.0/release-notes.html#security-advisories Release Notes Vendor Advisory
https://github.com/gradle/gradle/pull/15240 Patch Third Party Advisory
https://github.com/gradle/gradle/pull/15654 Patch Third Party Advisory
https://github.com/gradle/gradle/security/advisories/GHSA-89qm-pxvm-p336 Exploit Third Party Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2021-29428 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2021-29428 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Reanalysis by [email protected]

    Oct. 20, 2021

    Action Type Old Value New Value
    Added CPE Configuration OR *cpe:2.3:a:quarkus:quarkus:*:*:*:*:*:*:*:* versions up to (including) 2.2.3
  • Initial Analysis by [email protected]

    Apr. 22, 2021

    Action Type Old Value New Value
    Added CVSS V2 NIST (AV:L/AC:M/Au:N/C:P/I:P/A:P)
    Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://docs.gradle.org/7.0/release-notes.html#security-advisories No Types Assigned https://docs.gradle.org/7.0/release-notes.html#security-advisories Release Notes, Vendor Advisory
    Changed Reference Type https://github.com/gradle/gradle/pull/15240 No Types Assigned https://github.com/gradle/gradle/pull/15240 Patch, Third Party Advisory
    Changed Reference Type https://github.com/gradle/gradle/pull/15654 No Types Assigned https://github.com/gradle/gradle/pull/15654 Patch, Third Party Advisory
    Changed Reference Type https://github.com/gradle/gradle/security/advisories/GHSA-89qm-pxvm-p336 No Types Assigned https://github.com/gradle/gradle/security/advisories/GHSA-89qm-pxvm-p336 Exploit, Third Party Advisory
    Added CPE Configuration OR *cpe:2.3:a:gradle:gradle:*:*:*:*:*:*:*:* versions up to (excluding) 7.0
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2021-29428 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2021-29428 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.04 }} 0.00%

score

0.05635

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability