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 some cases, 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:
gpg element but no checksum element.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 7.5 patches this issue by making sure to run checksum verification if signature verification cannot be completed, whatever the reason.
gpg elements from dependency verification metadata if you disable signature validation.gpg entries for dependencies that do not have signature files.{
"cwe_ids": [
"CWE-829"
],
"severity": "MEDIUM"
}