Vulnerability · Published Nov 5, 2024 · Assigned by GitHub_M
CVE-2024-51746Use of incorrect Rekor entries during verification in gitsign
Low 1.8
In plain English
A low-severity security flaw in gitsign from sigstore. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 2% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Gitsign is a keyless Sigstore to signing tool for Git commits with your a GitHub / OIDC identity. gitsign may select the wrong Rekor entry to use during online verification when multiple entries are returned by the log. gitsign uses Rekor's search API to fetch entries that apply to a signature being verified. The parameters used for the search are the public key and the payload. The search API returns entries that match either condition rather than both. When gitsign's credential cache is used, there can be multiple entries that use the same ephemeral keypair / signing certificate. As gitsign assumes both conditions are matched by Rekor, there is no additional validation that the entry's hash matches the payload being verified, meaning that the wrong entry can be used to successfully pass verification. Impact is minimal as while gitsign does not match the payload against the entry, it does ensure that the certificate matches. This would need to be exploited during the certificate validity window (10 minutes) by the key holder.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/sigstore/gitsign | 0.11.0 | GHSA-8pmp-678w-c8xx |
| Go | github.com/sigstore/gitsign | 0.11.0 | GO-2024-3252 |
Affected products (as reported)
Weakness: CWE-706 · Vector: CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
References
- https://github.com/sigstore/gitsign/security/advisories/GHSA-8pmp-678w-c8xx x_refsource_CONFIRM