CVE-2023-26053
published medium CVSS 3.1 · 6.6Gradle usage of long IDs for PGP keys opens potential for collision attacks
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| gradle | — | gradle>= 6.2, < 6.9.4 · >= 7.0.0, < 7.6.1 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | gradle | Fixed | 7.6.1-r0 | Package fix record |
| Alpine Linux | v3.17 | gradle | Fixed | 7.6.1-r0 | Package fix record |
| Alpine Linux | v3.18 | gradle | Fixed | 7.6.1-r0 | Package fix record |
| Alpine Linux | v3.19 | gradle | Fixed | 7.6.1-r0 | Package fix record |
| Alpine Linux | v3.20 | gradle | Fixed | 7.6.1-r0 | Package fix record |
| Alpine Linux | v3.21 | gradle | Fixed | 7.6.1-r0 | Package fix record |
| Alpine Linux | v3.22 | gradle | Fixed | 7.6.1-r0 | Package fix record |
Show 2 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.23 | gradle | Fixed | 7.6.1-r0 | Package fix record |
| Alpine Linux | v3.24 | gradle | Fixed | 7.6.1-r0 | Package fix record |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.6 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| gradle | gradle | >= 6.2, < 6.9.4 (affected)>= 7.0.0, < 7.6.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-829 CWE-829: Inclusion of Functionality from Untrusted Control Sphere
References
3Provider assertions
3GitHub_M · cna
Gradle usage of long IDs for PGP keys opens potential for collision attacks
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- a8e44839daa424ebbe8f83cbe8bfd0afbbeabe70bf9d67f48ac2042679d3d37b
- Ingested
- 23 Sep 2026, 08:07:05 UTC
- Source record
- Official CVE record