4.4
CVSSv2

CVE-2021-29428

Published: 13/04/2021 Updated: 20/10/2021
CVSS v2 Base Score: 4.4 | Impact Score: 6.4 | Exploitability Score: 3.4
CVSS v3 Base Score: 7.8 | Impact Score: 5.9 | Exploitability Score: 1.8
VMScore: 392
Vector: AV:L/AC:M/Au:N/C:P/I:P/A:P

Vulnerability Summary

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.

Vulnerability Trend

Vulnerable Product Search on Vulmon Subscribe to Product

gradle gradle

quarkus quarkus

Vendor Advisories

Synopsis Moderate: Red Hat build of Quarkus 275 release and security update Type/Severity Security Advisory: Moderate Topic An update is now available for Red Hat build of QuarkusRed Hat Product Security has rated this update as having a security impact of Moderate A Common Vulnerability Scoring System (CVSS) base score, which gives a det ...
Debian Bug report logs - #987284 CVE-2021-29428 CVE-2021-29429 Package: gradle; Maintainer for gradle is Debian Java Maintainers <pkg-java-maintainers@listsaliothdebianorg>; Source for gradle is src:gradle (PTS, buildd, popcon) Reported by: Moritz Muehlenhoff <jmm@debianorg> Date: Tue, 20 Apr 2021 19:09:01 UTC S ...
A security issue has been found in Gradle before version 70 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 ...