CVE-2026-77305: go-witness: Cross-step artifact comparison downgrades to the weakest shared hash, allowing SHA-1-collision artifact substitution

Published Dec 3, 2026
·
Updated

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

2 affected components
go/github.com/testifysec/go-witness<0.12.0
go/github.com/testifysec/witness<0.12.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go-witness to a version that resolves this vulnerability.

    Fixed in 0.12.0
  2. Upgrade

    Upgrade witness to a version that resolves this vulnerability.

    Fixed in 0.12.0

Event History

Dec 3, 2026
CVE Published
via MITRE·10:39 PM
Data Sourced
via MITRE·10:39 PM
DescriptionWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203