CVE-2022-23630
Gradle vulnerability analysis and mitigation

Overview

Gradle, a build tool focused on build automation and multi-language development support, contained a vulnerability in versions 6.2 through 7.3.3 where dependency verification could be bypassed. The vulnerability (CVE-2022-23630) was discovered and disclosed in February 2022, affecting the dependency verification security feature which was designed to validate external dependencies through checksums or cryptographic signatures (GitHub Advisory).

Technical details

The vulnerability occurs when dependency verification is disabled on one or more configurations that share common dependencies with other configurations where verification is enabled. If a configuration with disabled verification is resolved first, Gradle fails to verify the common dependencies for configurations where verification should be active. This bypass happens specifically when using ResolutionStrategy.disableDependencyVerification(). The vulnerability has been assigned a CVSS v3.1 base score of 6.6 (Moderate), with the vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H (GitHub Advisory).

Impact

The vulnerability presents two primary risks: First, dependency poisoning/confusion attacks where Gradle could download malicious binaries from external repositories due to name squatting. Second, Man-in-the-Middle attacks where builds using HTTP (instead of HTTPS) could download malicious libraries instead of legitimate ones (GitHub Advisory).

Mitigation and workarounds

The vulnerability was patched in Gradle 7.4, which ensures artifacts are validated at least once if they are present in a resolved configuration with active dependency verification. For users unable to upgrade, workarounds include avoiding the use of ResolutionStrategy.disableDependencyVerification() and ensuring that configurations with disabled verification features are not resolved in builds where the feature is enabled for other configurations (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Gradle vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-27148HIGH8.8
  • GradleGradle
  • gradle-8
NoYesFeb 25, 2025
CVE-2026-22865HIGH8.6
  • GradleGradle
  • gradle
NoYesJan 16, 2026
CVE-2026-22816HIGH8.6
  • GradleGradle
  • cpe:2.3:a:gradle:gradle
NoYesJan 16, 2026
CVE-2023-44387MEDIUM6.5
  • GradleGradle
  • gradle
NoYesOct 05, 2023
CVE-2023-42445MEDIUM5.3
  • GradleGradle
  • gradle
NoYesOct 06, 2023

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management