{"id":"GHSA-2h46-9x5w-4wf7","title":"Entire CLI: Path traversal in checkpoint session metadata allows arbitrary file write during resume/rewind","summary":"Entire CLI: Path traversal in checkpoint session metadata allows arbitrary file write during resume/rewind","severity":"medium","cwe":["CWE-22","CWE-73"],"vendor":"entireio","product":"github.com/entireio/cli","affected":["github.com/entireio/cli <= 0.7.6"],"patched":["github.com/entireio/cli 0.7.7"],"published":"2026-06-19","updated":"2026-06-19","source":"GHSA","sourceUrl":"https://github.com/advisories/GHSA-2h46-9x5w-4wf7","references":[{"url":"https://github.com/entireio/cli/security/advisories/GHSA-2h46-9x5w-4wf7"},{"url":"https://github.com/entireio/cli/pull/1365"},{"url":"https://github.com/entireio/cli/pull/1449"},{"url":"https://github.com/advisories/GHSA-2h46-9x5w-4wf7"}],"tags":["ghsa","go"],"ingestedAt":"2026-06-22T15:59:08.178Z","ecosystem":"go","slug":"GHSA-2h46-9x5w-4wf7","body":"## Overview\n\n### Impact\n\nA path traversal vulnerability in Entire CLI allows an attacker with push access to the checkpoints repository to craft malicious checkpoint metadata that causes `entire session resume` or `entire checkpoint rewind` to write attacker-controlled transcript data outside of the expected session directory.\n\nThe issue occurs because checkpoint metadata is fetched from the remote `entire/checkpoints/v1` branch and the `SessionID` field was used to construct filesystem paths without validation in the restore path. A malicious `SessionID` containing absolute paths or path traversal sequences could cause arbitrary files on the victim’s machine to be overwritten.\n\n### Patches\n\nThe patched versions (`v0.7.7` or `v0.7.8-nightly.*`) observe stronger input validation and enforce traversal-resistant primitives to ensure that only descending directories can be accessed by the affected commands. \n\n### Workarounds\nIf upgrading immediately is not possible:\n\n- Do not run `entire session resume` or `entire checkpoint rewind` on repositories where untrusted users can push to `entire/checkpoints/v1`.\n- Restrict push access to shared repositories until all collaborators have upgraded.\n- Inspect the `entire/checkpoints/v1` branch for suspicious checkpoint metadata before resuming or rewinding.\n- Remove or protect shell initialization files and other sensitive user-writable files where feasible.\n\nThese mitigations reduce exposure but do not fully address the vulnerability. Upgrading is recommended.\n\n### Credits\nThanks Navtej Kathuria for privately reporting this issue to the Entire Security team.\n\n## Affected packages\n\n- `github.com/entireio/cli <= 0.7.6`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `github.com/entireio/cli 0.7.7`","depth":"sunlit","depthScore":28,"depthScoreParts":{"impact":27.5,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}