CVE-2021-29427
A public proof of concept exists; no exploitation attested.
- Published2021-04-13
- Fixed in7.0
- WeaknessCWE-829
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
In Gradle from version 5.1 and before version 7.0 there is a vulnerability which can lead to information disclosure and/or dependency poisoning. Repository content filtering is a security control Gradle introduced to help users specify what repositories are used to resolve specific dependencies. This feature was introduced in the wake of the "A Confusing Dependency" blog post. In some cases, Gradle may ignore content filters and search all repositories for dependencies. This only occurs when repository content filtering is used from within a `pluginManagement` block in a settings file. This may change how dependencies are resolved for Gradle plugins and build scripts. For builds that are vulnerable, there are two risks: 1) Information disclosure: Gradle could make dependency requests to repositories outside your organization and leak internal package identifiers. 2) Dependency poisoning/Dependency confusion: Gradle could download a malicious binary from a repository outside your organization due to name squatting. For a full example and more details refer to the referenced GitHub Security Advisory. The problem has been patched and released with Gradle 7.0. Users relying on this feature should upgrade their build as soon as possible. As a workaround, users may use a company repository which has the right rules for fetching packages from public repositories, or use project level repository content filtering, inside `buildscript.repositories`. This option is available since Gradle 5.1 when the feature was introduced.
Timeline
dates in UTC- 2021-04-1320:15CVE publishedNVD
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 7.0 | ≥ 5.1, < 7.0 | 7.0 | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 7.0 | ≥ 5.1.0, < 7.0.0 | 7.0.0 | OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 2.2 | ≤ 2.2.3 | no fix published | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- eco-java-gradle-5.1Chainguardall versions · no fixed version listedand 79 other packages
Vendor advisories
gradle: repository content filters do not work in Settings pluginManagement
gradle as a component of Red Hat build of Quarkus · gradle as a component of Red Hat Integration Camel K 1
Red Hat Security Advisory: Red Hat build of Quarkus 2.7.5 release and security update
Fix
- Update Gradle to 7.0
- Vendor fix Red Hat Product Security RHSA-2022:4623 · 1 productBefore applying the update, back up your existing installation, including all applications, configuration files, databases and database settings, and so on. The References section of this erratum contains a download link for the update. You must be logged in to download the update.
- No fix available, says the vendor Red Hat Product Security CVE-2021-29427 · 1 productFix deferred
- No fix available, says the vendor Red Hat Product Security CVE-2021-29427 · 1 productAffected
Advisories and patches
- docs.gradle.orgRelease Notes · Vendor Advisory
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHub1 repository, unverifiedknown since 2026-11-01arsalanraja987/gradle-cve-2021-29427-demo
- Metasploit modules
- none listed Metasploit Framework
Sources
- CNACVSS 3.18known since 2026-10-23
- NVDCVSS 3.17.2read 2026-10-23
- NVDCVSS 2.06read 2026-10-23
- CNAweakness (CWE)CWE-829known since 2026-10-23
- FIRST EPSSEPSS score1.3 %2026-11-08
- PoC-in-GitHubproof of concept1known since 2026-11-01
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- BIT-gradle-2021-29427same flawBitnami · Apache-2.0
- CGA-22v2-6496-6665same flawChainguard · CC-BY-NC-ND-4.0
- CGA-2736-q65j-7gr8same flawChainguard · CC-BY-NC-ND-4.0
- CGA-2c67-8qf6-v3w2same flawChainguard · CC-BY-NC-ND-4.0
- CGA-2cfh-ww7m-5w3hsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2fm7-cpw6-4v78same flawChainguard · CC-BY-NC-ND-4.0
- CGA-2p2v-gg5q-485xsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2rpm-cw7f-p7h3same flawChainguard · CC-BY-NC-ND-4.0
- CGA-35vr-4cvj-mfqfsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-39q3-gxm4-xwf5same flawChainguard · CC-BY-NC-ND-4.0
- CGA-3pq3-3475-vvqcsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-3q27-5qgw-9pmhsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-3wjq-hj95-hjm6same flawChainguard · CC-BY-NC-ND-4.0
- CGA-454p-5m4x-g2wxsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-45mp-qf6q-52g3same flawChainguard · CC-BY-NC-ND-4.0
- CGA-46p2-jg77-8j25same flawChainguard · CC-BY-NC-ND-4.0
- CGA-499h-ghg7-mhfxsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-4cf5-wrmw-2w3fsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-4j5p-43xq-h58vsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-4j6r-v6v2-487fsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-4mwm-c8qp-9m88same flawChainguard · CC-BY-NC-ND-4.0
- CGA-4p4f-c2vp-c24fsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-4pfh-mhwv-phvwsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-4v7x-mp5g-qvg9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-4wv5-qpp9-gjpgsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-56wj-7f79-wmh8same flawChainguard · CC-BY-NC-ND-4.0
- CGA-58qf-3w6j-jh4vsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-59vr-c5p4-wffmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-5g8q-84x6-gj72same flawChainguard · CC-BY-NC-ND-4.0
- CGA-5j4w-69hf-2fhqsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-5j89-5g6g-wq93same flawChainguard · CC-BY-NC-ND-4.0
- CGA-5pqq-w8rc-w2pvsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-5rwg-35jq-m4qrsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-5x2x-gqq8-cphgsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-6jvc-7vv9-793hsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-6v72-73j7-527msame flawChainguard · CC-BY-NC-ND-4.0
- CGA-6x66-p9cv-jqm9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-7342-672v-4pj6same flawChainguard · CC-BY-NC-ND-4.0
- CGA-7384-pgg2-c2m5same flawChainguard · CC-BY-NC-ND-4.0
- CGA-747q-jm55-pc83same flawChainguard · CC-BY-NC-ND-4.0
- CGA-7ffp-9j83-fpfgsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-7h6w-95f2-77rjsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-7hcq-8pwf-rhf9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-7jc4-wmpx-m5cgsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-83jc-q5gq-w5wxsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-85vr-48qc-x63qsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-89rx-xxw9-5xh9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-8g5q-76qj-wj96same flawChainguard · CC-BY-NC-ND-4.0
- CGA-8m98-9jj9-rj96same flawChainguard · CC-BY-NC-ND-4.0
- CGA-8r2w-j3xh-3c57same flawChainguard · CC-BY-NC-ND-4.0
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- Published
- 2021-04-13
- Last Modified
- 2026-06-17
- NVD status
- Modified
- GitHub Advisory
- GHSA-jvmj-rh6q-x395
Frequently asked questions
What is CVE-2021-29427?
Is CVE-2021-29427 actively exploited?
What is the CVSS score for CVE-2021-29427?
Running gradle? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-jvmj-rh6q-x395
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0