CVE-2026-77306
MEDIUM 4.8CVSS 4.0go-witness: File attestor follows symlinks outside the base path and records out-of-tree files
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.
- Published
- 4 Dec 2026
- Last modified
- 4 Dec 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Received
- Weakness
- CWE-22CWE-59
- Sources
- NVDJSONCVE ListJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 4.8 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| CVE List | GitHub_M | CVSS 4.0 | MEDIUM 4.8 | 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 |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: no; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | in-toto | go-witness | = < 0.12.0 |
References
- https://github.com/in-toto/go-witness/commit/2f6295cb342a893a460fe85bacb8f5ee0e41eb699 · x_refsource_MISC
- https://github.com/in-toto/go-witness/pull/784 · x_refsource_MISC
- https://github.com/in-toto/go-witness/releases/tag/v0.12.0 · x_refsource_MISC
- https://github.com/in-toto/go-witness/security/advisories/GHSA-v6px-jqx8-8xwj · x_refsource_CONFIRM
History
- 4 Dec 2026 17:09 UTC · NVD: updated (other details)
- 4 Dec 2026 15:09 UTC · CVE List: updated (other details)
- 4 Dec 2026 01:56 UTC · NVD: first stored (published 4 Dec 2026)
- 3 Dec 2026 22:56 UTC · CVE List: first stored (published 3 Dec 2026)