Skip to content

CVE-2022-31156 Gradle's dependency verification can ignore checksum verification when signature verification cannot be performed

MediumCVSS 4.4 EPSS 0.57%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
UbuntuDebian

Description

Gradle is a build tool. Dependency verification is a security feature in Gradle Build Tool that was introduced to allow validation of external dependencies either through their checksum or cryptographic signatures. In versions 6.2 through 7.4.2, there are some cases in which Gradle may skip that verification and accept a dependency that would otherwise fail the build as an untrusted external artifact. This can occur in two ways. When signature verification is disabled but the verification metadata contains entries for dependencies that only have a gpg element but no checksum element. When signature verification is enabled, the verification metadata contains entries for dependencies with a gpg element but there is no signature file on the remote repository. In both cases, the verification will accept the dependency, skipping signature verification and not complaining that the dependency has no checksum entry. For builds that are vulnerable, there are two risks. Gradle could download a malicious binary from a repository outside your organization due to name squatting. For those still using HTTP only and not HTTPS for downloading dependencies, the build could download a malicious library instead of the expected one. Gradle 7.5 patches this issue by making sure to run checksum verification if signature verification cannot be completed, whatever the reason. Two workarounds are available: Remove all gpg elements from dependency verification metadata if you disable signature validation and/or avoid adding gpg entries for dependencies that do not have signature files.

Upgrade path

9 packages: 1 fixed, 8 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/gradle(Ubuntu 16.04) = 2.5-3; = 2.7-1; = 2.7-2; = 2.7-3 +2 more No fix listed No fix yet
ubuntu/gradle(Ubuntu 20.04) = 4.4.1-8; = 4.4.1-9; = 4.4.1-10; All versions No fix listed No fix yet
ubuntu/gradle(Ubuntu 22.04) = 4.4.1-13; All versions No fix listed No fix yet
ubuntu/gradle(Ubuntu 24.04) = 4.4.1-18; = 4.4.1-20; All versions No fix listed No fix yet
ubuntu/gradle(Ubuntu 25.10) = 4.4.1-22; All versions No fix listed No fix yet
ubuntu/gradle(Ubuntu 26.04) = 4.4.1-22; = 4.4.1-22build1; = 4.4.1-22ubuntu1; All versions No fix listed No fix yet
ubuntu/gradle(Ubuntu 26.10) = 4.4.1-22ubuntu1; = 4.4.1-23; All versions No fix listed No fix yet
ubuntu/gradle(Ubuntu Pro 18.04) = 3.2.1-3build2; = 3.2.1-4; = 3.2.1-5; = 3.4.1-4 +5 more No fix listed No fix yet
gradle = >= 6.2, <= 7.4.2; >= 6.2.0, < 7.5.0 7.5.0 Fixed

Affected products

ProductAffected versionsFixed in
gradle = >= 6.2, <= 7.4.2 No fix listed
ubuntu/gradle(Ubuntu:22.04) All versions No fix listed
gradle >= 6.2.0, < 7.5.0 7.5.0
ubuntu/gradle(Ubuntu:24.04) All versions No fix listed
ubuntu/gradle(Ubuntu:26.04) All versions No fix listed
ubuntu/gradle(Ubuntu:26.10) All versions No fix listed
ubuntu/gradle(Ubuntu:16.04) All versions No fix listed
ubuntu/gradle(Ubuntu:16.04) = 2.5-3 No fix listed
ubuntu/gradle(Ubuntu:16.04) = 2.7-1 No fix listed
ubuntu/gradle(Ubuntu:16.04) = 2.7-2 No fix listed
ubuntu/gradle(Ubuntu:16.04) = 2.7-3 No fix listed
ubuntu/gradle(Ubuntu:16.04) = 2.10-1 No fix listed
ubuntu/gradle(Ubuntu:Pro:18.04) All versions No fix listed
ubuntu/gradle(Ubuntu:Pro:18.04) = 3.2.1-3build2 No fix listed
ubuntu/gradle(Ubuntu:Pro:18.04) = 3.2.1-4 No fix listed
ubuntu/gradle(Ubuntu:Pro:18.04) = 3.2.1-5 No fix listed
ubuntu/gradle(Ubuntu:Pro:18.04) = 3.4.1-4 No fix listed
ubuntu/gradle(Ubuntu:Pro:18.04) = 3.4.1-6 No fix listed
ubuntu/gradle(Ubuntu:Pro:18.04) = 3.4.1-7ubuntu1 No fix listed
ubuntu/gradle(Ubuntu:Pro:18.04) = 4.4.1-5ubuntu2~18.04 No fix listed
ubuntu/gradle(Ubuntu:Pro:18.04) = 4.4.1-5ubuntu2~18.04+esm1 No fix listed
ubuntu/gradle(Ubuntu:20.04) All versions No fix listed
ubuntu/gradle(Ubuntu:20.04) = 4.4.1-8 No fix listed
ubuntu/gradle(Ubuntu:20.04) = 4.4.1-9 No fix listed
ubuntu/gradle(Ubuntu:20.04) = 4.4.1-10 No fix listed
Show 10 more
ProductAffected versionsFixed in
ubuntu/gradle(Ubuntu:22.04) = 4.4.1-13 No fix listed
ubuntu/gradle(Ubuntu:24.04) = 4.4.1-18 No fix listed
ubuntu/gradle(Ubuntu:24.04) = 4.4.1-20 No fix listed
ubuntu/gradle(Ubuntu:25.10) All versions No fix listed
ubuntu/gradle(Ubuntu:25.10) = 4.4.1-22 No fix listed
ubuntu/gradle(Ubuntu:26.10) = 4.4.1-22ubuntu1 No fix listed
ubuntu/gradle(Ubuntu:26.10) = 4.4.1-23 No fix listed
ubuntu/gradle(Ubuntu:26.04) = 4.4.1-22 No fix listed
ubuntu/gradle(Ubuntu:26.04) = 4.4.1-22build1 No fix listed
ubuntu/gradle(Ubuntu:26.04) = 4.4.1-22ubuntu1 No fix listed

References