CVE-2021-29427

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-29427
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-29427.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-29427
Aliases
Related
  • GHSA-jvmj-rh6q-x395
Published
2021-04-13T20:15:21.703Z
Modified
2025-11-20T12:23:18.378996Z
Severity
  • 7.2 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/gradle/gradle

Affected ranges

Type
GIT
Repo
https://github.com/gradle/gradle
Events

Affected versions

v5.*

v5.1.0
v5.1.1
v5.2.0
v5.2.0-RC1
v5.2.1
v5.3.0
v5.3.0-RC1
v5.3.0-RC2
v5.3.0-RC3
v5.3.1
v5.4.0
v5.4.0-RC1
v5.4.1
v5.5.0
v5.5.0-RC1
v5.5.0-RC2
v5.5.0-RC3
v5.5.0-RC4
v5.5.1
v5.6.0
v5.6.0-RC1
v5.6.0-RC2
v5.6.1
v5.6.2
v5.6.3
v5.6.4

v6.*

v6.0.0
v6.0.0-RC1
v6.0.0-RC2
v6.0.0-RC3
v6.0.1
v6.1.0
v6.1.0-M1
v6.1.0-M2
v6.1.0-M3
v6.1.0-RC1
v6.1.0-RC2
v6.1.0-RC3
v6.1.1
v6.2.0
v6.2.0-RC1
v6.2.0-RC2
v6.2.0-RC3
v6.2.1
v6.2.2
v6.3.0
v6.3.0-RC1
v6.3.0-RC2
v6.3.0-RC3
v6.3.0-RC4
v6.4.0
v6.4.0-RC1
v6.4.0-RC2
v6.4.0-RC3
v6.4.0-RC4
v6.4.1
v6.5.0
v6.5.0-M1
v6.5.0-M2
v6.5.0-RC1
v6.5.1
v6.6.0
v6.6.0-M1
v6.6.0-M2
v6.6.0-M3
v6.6.0-RC1
v6.6.0-RC2
v6.6.0-RC3
v6.6.0-RC4
v6.6.0-RC5
v6.6.0-RC6
v6.6.1
v6.7.0
v6.7.0-RC1
v6.7.0-RC2
v6.7.0-RC3
v6.7.0-RC4
v6.7.0-RC5
v6.7.1
v6.8.0
v6.8.0-M1
v6.8.0-M2
v6.8.0-M3
v6.8.0-RC1
v6.8.0-RC2
v6.8.0-RC3
v6.8.0-RC4
v6.8.0-RC5
v6.8.1
v6.8.2
v6.8.3

v7.*

v7.0.0-M1
v7.0.0-M2
v7.0.0-M3
v7.0.0-RC1
v7.0.0-RC2