CVE-2021-29427 json
Repository content filters do not work in Settings pluginManagement
published 2021-04-13 5 y ago modified 2026-09-08 2 mo ago also BIT-gradle-2021-29427 , EUVD-2021-16058 , GHSA-jvmj-rh6q-x395
- cvss
- 8.0
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.3%
- EPSS 1.3% chance of exploitation in 30 days, percentile 70%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami gradle 7.0.0
- gradle gradle 7.0
- gradle-src Arch Linux 7.0-1
- gradle Arch Linux 7.0-1
arch linux advisories AVG-1809
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-29427 updated cvss 8.0
gradle: repository content filters do not work in Settings pluginManagement
-
Red Hat build of Quarkus gradle gradleaffected: no fix available
-
Red Hat Integration Camel K 1 gradle gradleaffected: no fix available “Fix deferred”
-
Red Hat build of Quarkus 2.7.5fixed: vendor fix RHSA-2022:4623
-
Red Hat Fuse 7 gradle gradle Red Hat Integration Camel Quarkus 1 gradle gradle Red Hat JBoss Enterprise Application Platform 7 gradle gradle Red Hat JBoss Enterprise Application Platform Expansion Pack gradle gradle Red Hat streams for Apache Kafka gradle gradlenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.31% chance of exploitation in the next 30 days, higher than 70% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/gradle/gradle/security/advisories/GHSA-jvmj-rh6q-x395 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.0 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H |
| NVD | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.0 | AV:N/AC:M/Au:S/C:P/I:P/A:P |
| OSV | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | gradle | >=5.1.0, <7.0.0 |
7.0.0 |
Affected products
- gradle gradle
Classification
- Weakness
-
- CWE-829 Inclusion of Functionality from Untrusted Control Sphere
References
-
github.com
/gradle/gradle/security/advisories/GHSA-jvmj-rh6q-x395
exploit, third-party-advisory, advisory
-
docs.gradle.org
/7.0/release-notes.html#security-advisories
release-notes, vendor-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-29427
web
Sources
- CVE List CVE-2021-29427
- NVD CVE-2021-29427
- OSV BIT-gradle-2021-29427
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.