Description
Gradle is a build tool with a focus on build automation and support for multi-language development. This is a collision attack on long IDs (64bits) for PGP keys. Users of dependency verification in Gradle are vulnerable if they use long IDs for PGP keys in a `trusted-key` or `pgp` element in their dependency verification metadata file. The fix is to fail dependency verification if anything but a fingerprint is used in a trust element in dependency verification metadata. The problem is fixed in Gradle 8.0 and above. The problem is also patched in Gradle 6.9.4 and 7.6.1. As a workaround, use only full fingerprint IDs for `trusted-key` or `pgp` element in the metadata is a protection against this issue.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| gradle | gradle | >= 6.2, < 6.9.4, >= 7.0.0, < 7.6.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | gradle | No fix yet | — |
| Ubuntu 26.04 LTS | gradle | No fix yet | — |
| Ubuntu 25.10 | gradle | No fix yet | — |
| Ubuntu 24.04 LTS | gradle | No fix yet | — |
| Ubuntu 22.04 LTS | gradle | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | gradle | No fix yet | — |
| Ubuntu 16.04 LTS | gradle | No fix yet | — |
| Ubuntu Pro 18.04 LTS | gradle | No fix yet | — |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | gradle | 7.6.1-r0 | — |
| Alpine v3.23 | gradle | 7.6.1-r0 | — |
| Alpine v3.22 | gradle | 7.6.1-r0 | — |
| Alpine v3.21 | gradle | 7.6.1-r0 | — |
| Alpine v3.20 | gradle | 7.6.1-r0 | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | gradle | 7.6.1-r0 | — |
| Alpine v3.18 | gradle | 7.6.1-r0 | — |
| Alpine v3.17 | gradle | 7.6.1-r0 | — |