go-witness: Cross-step artifact comparison downgrades to the weakest shared hash, allowing SHA-1-collision artifact substitution
- CVE-2026-77305
- EUVD-2026-143767
Summary
CVE-2026-77305 affects go-witness and witness, Go modules for generating attestations, in versions prior to 0.12.0. When comparing artifacts across steps, equality silently falls back to the weakest hash function both digest sets share. An attacker who supplies an artifact described only by a SHA-1 digest can have it judged equal to a fully described trusted artifact whenever the SHA-1 values match, even if the SHA-256 digests differ or are missing. This enables artifact substitution through SHA-1 collisions. The CVSS score is 5.6. It is not listed in the CISA known exploited vulnerabilities catalog. The issue is fixed in version 0.12.0.
AI summary · verify against the vendor advisory
Description
go-witness and witness are Go modules for generating attestations. Prior to version 0.12.0, artifact equality silently downgrades to the weakest hash function the two digest sets have in common. An attacker who presents an artifact described only by a weak digest (SHA-1) is deemed equal to a fully-described trusted artifact when the SHA-1 values match, even though the strong (SHA-256) digests differ or are absent. This issue has been patched in version 0.12.0.
Text from the CVE.org record.
Recommendation
No source states a fixed version. Check the vendor advisory.
Affected
in-toto go-witness
Affected versions Fixed in < 0.12.0 none stated
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.