Skip to content
OpenAdvisories
Medium · 6.6 CVE-2023-26053 EUVD-2023-29930

Gradle usage of long IDs for PGP keys opens potential for collision attacks

Published Mar 2, 2023 · Updated Mar 5, 2025 · Assigned by GitHub_M

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

VendorProductAffectedFixed
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.

ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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 —
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
Alpine v3.19 gradle 7.6.1-r0 —
Alpine v3.18 gradle 7.6.1-r0 —
Alpine v3.17 gradle 7.6.1-r0 —

References