BreachSpiderVerified, not vibes

CVE-2021-29429 in Gradle and 1 more product

Medium 5.5

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

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

CVSS 3.15.5
EPSS0.5%
EPSS percentile34th
FixSee advisory

Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, no 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, 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.

Source: NIST NVD / MITRE CVE.

Record details

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

Weakness definitions

CWE-377: CWE-377

Related attack patterns (CAPEC)

CAPEC-149 Explore for Predictable Temporary File Names via CWE-377

CAPEC-155 Screen Temporary Files for Sensitive Information via CWE-377

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

This vulnerability was disclosed in 2021. A medium severity vulnerability affects Gradle systems (CVE-2021-29429). No public exploit code is currently available. Isolate affected systems if patching is not feasible.

Vulnerability details: 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 CVSS vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.

Questions

What is CVE-2021-29429?

This vulnerability was disclosed in 2021. A medium severity vulnerability affects Gradle systems (CVE-2021-29429). No public exploit code is currently available. Isolate affected systems if patching is not feasible.

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

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

Is CVE-2021-29429 actively exploited?

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

How do I remediate CVE-2021-29429?

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

What systems are affected by CVE-2021-29429?

CVE-2021-29429 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.