Vulnerability · Published Feb 10, 2022 · Assigned by GitHub_M

CVE-2022-23630Dependency verification bypass in Gradle

High 7.5

In plain English

A high-severity security flaw in gradle from gradle. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 71% of all known vulnerabilities).

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.3%top 29.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Gradle is a build tool with a focus on build automation and support for multi-language development. In some cases, Gradle may skip that verification and accept a dependency that would otherwise fail the build as an untrusted external artifact. This occurs when dependency verification is disabled on one or more configurations and those configurations have common dependencies with other configurations that have dependency verification enabled. If the configuration that has dependency verification disabled is resolved first, Gradle does not verify the common dependencies for the configuration that has dependency verification enabled. Gradle 7.4 fixes that issue by validating artifacts at least once if they are present in a resolved configuration that has dependency verification active. For users who cannot update either do not use `ResolutionStrategy.disableDependencyVerification()` and do not use plugins that use that method to disable dependency verification for a single configuration or make sure resolution of configuration that disable that feature do not happen in builds that resolve configuration where the feature is enabled.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Ubuntu:22.04:LTSgradleno fix listedUBUNTU-CVE-2022-23630
Ubuntu:24.04:LTSgradleno fix listedUBUNTU-CVE-2022-23630
Ubuntu:25.10gradleno fix listedUBUNTU-CVE-2022-23630
Ubuntu:26.04:LTSgradleno fix listedUBUNTU-CVE-2022-23630
Ubuntu:26.10gradleno fix listedUBUNTU-CVE-2022-23630

Affected products (as reported)

VendorProductVersions
gradle gradle >= 6.2, < 7.4

Weakness: CWE-829 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

References