Read the docs

Symlink traversal in go-witness file attestor records outside files

Priority LOW 22CWE-22Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
—
Confidentiality · integrity · availability
Low · Low · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA.

Summary

The go-witness Go module, used to generate attestations, is affected before version 0.12.0. Its file attestor resolves symbolic links with no check that the target stays within the attested base path, so a symlink in the directory tree pointing outside it causes the out-of-tree file to be opened, hashed and recorded (CWE-59). An attacker who can influence a directory run with witness run, such as a checked-out repository, a pull-request build or an unpacked archive, can make the attestation read files outside the workspace, such as secrets or system files, and record their digests and paths.

Written with Claude Haiku 5.5 from the sources below · 2026-12-03

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00288 22nd percentileScored 2026-12-04
Fix Fixed go-witness (in-toto): 0.12.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
in-totogo-witnessbefore 0.12.00.12.0Patch availableCNA
  • go-witness Vendorin-toto Affected before 0.12.0 Fixed in 0.12.0 Patch available CNA

Remediation

The in-toto go-witness module is fixed in version 0.12.0, so update to that version or later. The sources list no fixed version for the witness module.

Written with Claude Haiku 5.5 from the sources below · 2026-12-03

  • Fix · CNA go-witness (in-toto) Fixed in 0.12.0

Timeline

  1. 2026-12-03 Threatist record created from CVE-2026-77306
  2. 2026-12-04 CISA SSVC decision points changed

References

  • TI-2026-103910 Witness: secret exfiltration via .witness.yaml auto-load in CI/CD pipelines CVSS 4.0CRITICAL 9.3
  • TI-2026-103906 Signature bypass in go-witness lets attackers forge trusted policies CVSS 4.0HIGH 7.0
  • TI-2026-103908 Weak hash downgrade in go-witness artifact comparison CVSS 4.0MEDIUM 5.6
  • TI-2025-38643 go-witness Improper Verification of AWS EC2 Identity Documents CVSS 4.0MEDIUM 6.9
  • TI-2021-17929 Improperly Implemented path matching for in-toto-golang CVSS 3.1MEDIUM 6.5
  • TI-2026-103907 Weak artifact comparison in go-witness lets artifactsFrom edges pass CVSS 4.0MEDIUM 5.6
See all 7 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences