BreachSpiderVerified, not vibes

CVE-2021-29428 in Gradle and 1 more product

High 7.8

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 syste...

Affects 2 products from 2 vendors. Facts below cite their sources.

CVSS 3.17.8
EPSS0.5%
EPSS percentile39th
FixSee advisory

Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Gradle Gradle < 7.0
Quarkus Quarkus ≤ 2.2.3

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2021-29428
BreachSpider IDBS-2021-GLOBAL-264211-H
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published2021-04-13
Last modified2026-10-08
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-378: CWE-378

CWE-379: CWE-379

Analysis AI-written, not human-reviewed

CVE-2021-29428 affects Gradle versions before 7.0 on Unix-like systems, where the system temporary directory is created with open permissions, allowing local privilege escalation through file manipulation.

An attacker with local access can exploit this vulnerability by deleting and recreating files in the system temporary directory, potentially leading to privilege escalation during Gradle builds.

Questions

What is CVE-2021-29428?

CVE-2021-29428 affects Gradle versions before 7.0 on Unix-like systems, where the system temporary directory is created with open permissions, allowing local privilege escalation through file manipulation.

What is the CVSS score for CVE-2021-29428?

CVE-2021-29428 has CVSS 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 0.5%.

Is CVE-2021-29428 actively exploited?

No confirmed active exploitation of CVE-2021-29428 as of 2026-10-10.

How do I remediate CVE-2021-29428?

Priority: HIGH. Advisory: https://docs.gradle.org/7.0/release-notes.html#security-advisories PSIRT: [email protected]

What systems are affected by CVE-2021-29428?

CVE-2021-29428 affects Gradle Gradle; Quarkus Quarkus.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Gradle","product":"Gradle","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-08.