8.0
HIGH
CVE-2021-29427
Gradle Repository Filtering Vulnerability
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.

INFO

Published Date :

April 13, 2021, 8:15 p.m.

Last Modified :

Oct. 20, 2021, 2:32 p.m.

Remotely Exploitable :

Yes !

Impact Score :

6.0

Exploitability Score :

1.3
Affected Products

The following products are affected by CVE-2021-29427 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Gradle gradle
1 Quarkus quarkus
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2021-29427.

URL Resource
https://docs.gradle.org/7.0/release-notes.html#security-advisories Release Notes Vendor Advisory
https://github.com/gradle/gradle/security/advisories/GHSA-jvmj-rh6q-x395 Exploit Third Party Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2021-29427 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2021-29427 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Reanalysis by [email protected]

    Oct. 20, 2021

    Action Type Old Value New Value
    Changed Reference Type https://github.com/gradle/gradle/security/advisories/GHSA-jvmj-rh6q-x395 Exploit, Vendor Advisory https://github.com/gradle/gradle/security/advisories/GHSA-jvmj-rh6q-x395 Exploit, Third Party Advisory
    Added CPE Configuration OR *cpe:2.3:a:quarkus:quarkus:*:*:*:*:*:*:*:* versions up to (including) 2.2.3
  • Initial Analysis by [email protected]

    May. 05, 2021

    Action Type Old Value New Value
    Added CVSS V2 NIST (AV:N/AC:M/Au:S/C:P/I:P/A:P)
    Added CVSS V3.1 NIST AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://docs.gradle.org/7.0/release-notes.html#security-advisories No Types Assigned https://docs.gradle.org/7.0/release-notes.html#security-advisories Release Notes, Vendor Advisory
    Changed Reference Type https://github.com/gradle/gradle/security/advisories/GHSA-jvmj-rh6q-x395 No Types Assigned https://github.com/gradle/gradle/security/advisories/GHSA-jvmj-rh6q-x395 Exploit, Vendor Advisory
    Added CPE Configuration OR *cpe:2.3:a:gradle:gradle:*:*:*:*:*:*:*:* versions from (including) 5.1 up to (excluding) 7.0
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.07 }} -0.00%

score

0.29481

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability