Description
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.
Severity (CVSS)
| Base score | 4.8 |
|---|---|
| Severity | Medium |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-22 — CWE-22: Improper Limitation of a Pathname to a Restricted Directory
- CWE-59 — CWE-59: Improper Link Resolution Before File Access
Affected products
| Vendor | Product | Versions |
|---|---|---|
| in-toto | go-witness | < 0.12.0 [affected] |
References
- https://github.com/in-toto/go-witness/security/advisories/GHSA-v6px-jqx8-8xwj (x_refsource_CONFIRM)
- https://github.com/in-toto/go-witness/pull/784 (x_refsource_MISC)
- https://github.com/in-toto/go-witness/commit/2f6295cb342a893a460fe85bacb8f5ee0e41eb699 (x_refsource_MISC)
- https://github.com/in-toto/go-witness/releases/tag/v0.12.0 (x_refsource_MISC)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 04 Dec 2026 08:01 UTC.