CVE-2026-77306: go-witness: File attestor follows symlinks outside the base path and records out-of-tree files

Published Dec 3, 2026
·
Updated

go-witness and witness are Go modules for generating attestations. Prior to version 0.12.0, RecordArtifacts resolves a symbolic link with filepath.EvalSymlinks and then recurses into the resolved path with no check that the target stays within the base path being attested. A symlink in the attested directory tree that points outside it causes the file attestor to open, hash, and record the out-of-tree target. Running witness run over an attacker-influenced directory (a checked-out repository, a pull-request build, an unpacked archive) therefore reads files outside the intended workspace (secrets, system files) and records their digests and paths into the attestation. This issue has been patched in version 0.12.0.

Affected Software

2 affected components
go/go-witness<0.12.0
go/witness<0.12.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release 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 environments are realistically exposed?

Environments that run witness run over attacker-influenced directories are exposed, including checked-out repositories, pull-request builds, and unpacked archives. A symlink within the attested tree can cause the attestor to read targets outside the intended workspace.

2

What does an attacker need to exploit this issue?

An attacker needs to place or control a symbolic link in the directory tree being attested, with that link pointing to a path outside the base directory. When RecordArtifacts processes the link, it resolves and recursively records the external target without verifying that it remains under the base path.

3

What is the impact if exploitation succeeds?

The file attestor can open and hash files outside the intended workspace, such as secrets or system files. Their digests and paths can then be recorded in the generated attestation.

4

What should be done if upgrading is not immediately possible?

Do not run witness run against directories influenced by untrusted repositories, pull requests, or archives. Restrict the attested tree to content that cannot contain attacker-controlled symlinks pointing outside the workspace.

5

How can I determine whether my deployment is affected?

Deployments using go-witness or witness versions earlier than 0.12.0 are affected when RecordArtifacts attests a tree containing symlinks. Version 0.12.0 contains the patch.

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