CVE-2026-77305: go-witness: Cross-step artifact comparison downgrades to the weakest shared hash, allowing SHA-1-collision artifact substitution
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
go-witnessto a version that resolves this vulnerability.Fixed in 0.12.0 - Upgrade
Upgrade
witnessto a version that resolves this vulnerability.Fixed in 0.12.0
Event History
Frequently Asked Questions
Which deployments are exposed?
Deployments using go-witness or witness versions earlier than 0.12.0 are affected where artifact equality is evaluated across digest sets. The issue is relevant when a trusted artifact has multiple digests and an attacker can supply an artifact described with only a matching SHA-1 digest.
What does an attacker need to exploit this?
An attacker needs to provide a substituted artifact whose SHA-1 digest matches that of a trusted artifact, while its stronger SHA-256 digest differs or is omitted. The comparison accepts the artifact because it uses the weakest hash shared by both digest sets.
How can I determine whether a comparison was vulnerable?
Review artifact comparison inputs for cases where one digest set included SHA-1 and another side supplied only SHA-1, particularly when the trusted artifact also carried SHA-256. Such comparisons could have treated artifacts as equal despite differing or missing SHA-256 values.
What is the remediation?
Upgrade go-witness or witness to version 0.12.0 or later. The issue is patched in version 0.12.0.