CVEfocus › CVE database › CVE-2023-26053

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

CVSS 6.6 MediumEPSS 1.3% (higher than 70% of CVEs)Published 2023-03-02Updated 2025-03-05Assigner: GitHub_M

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.

CWE-829

What to do

Fixed builds are available from Alpine: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

8Fixed
2Fix pending
3Under investigation
4Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10gradleFix pendingUBUNTU-CVE-2023-26053
Ubuntu 26.04gradleUnder investigationUBUNTU-CVE-2023-26053
Ubuntu 25.10gradleWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2023-26053
Ubuntu 24.04gradleUnder investigationUBUNTU-CVE-2023-26053
Ubuntu 22.04gradleUnder investigationUBUNTU-CVE-2023-26053
Ubuntu 20.04gradleWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2023-26053
Ubuntu 18.04gradleFix pendingUBUNTU-CVE-2023-26053
Ubuntu 16.04gradleWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2023-26053
Ubuntu 14.04gradleWill not fix
Ubuntu decided not to fix this in this release
Alpine Linux 3.24gradleFixed7.6.1-r0ALPINE-CVE-2023-26053
Alpine Linux 3.23gradleFixed7.6.1-r0ALPINE-CVE-2023-26053
Alpine Linux 3.22gradleFixed7.6.1-r0ALPINE-CVE-2023-26053
Alpine Linux 3.21gradleFixed7.6.1-r0ALPINE-CVE-2023-26053
Alpine Linux 3.20gradleFixed7.6.1-r0ALPINE-CVE-2023-26053
Alpine Linux 3.19gradleFixed7.6.1-r0ALPINE-CVE-2023-26053
Alpine Linux 3.18gradleFixed7.6.1-r0ALPINE-CVE-2023-26053
Alpine Linux 3.17gradleFixed7.6.1-r0ALPINE-CVE-2023-26053

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.