GHSA-2h46-9x5w-4wf7: Entire CLI Path Traversal Vulnerability

MODERATE
CWE-73 CWE-22
Published
Advisory Summary

GHSA-2h46-9x5w-4wf7 is a MODERATE path traversal vulnerability (CWE-73: External Control of File Name or Path) affecting Entire CLI libraries in the Go ecosystem. The issue involves path traversal in checkpoint session metadata allows arbitrary file write during resume/rewind. Remediation is available by upgrading affected packages to version 0.7.7.

GHSA-2h46-9x5w-4wf7 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-2h46-9x5w-4wf7
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-73: External Control of File Name or Path
Affected Product Entire CLI
Package Ecosystem Go
Published Date
Last Updated

How to Fix GHSA-2h46-9x5w-4wf7

To remediate this vulnerability, upgrade all affected Entire CLI dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/entireio/cli fixed: 0.7.7
Upgrade github.com/entireio/cli to 0.7.7
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/entireio/cli

How to Check if You Are Affected

To determine whether your application is affected by GHSA-2h46-9x5w-4wf7, inspect your project dependencies for Entire CLI:

inspect dependencies for github.com/entireio/cli

Analyze the terminal output to locate any version of Entire CLI in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.7.7), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-73: External Control of File Name or Path, where the product allows user input to control or influence paths or file names that are used in filesystem operations. In Entire CLI, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact A 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. The 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. ### Patches The 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. ### Workarounds If upgrading immediately is not possible: - Do not run `entire session resume` or `entire checkpoint rewind` on repositories where untrusted users can push to `entire/checkpoints/v1`. - Restrict push access to shared repositories until all collaborators have upgraded. - Inspect the `entire/checkpoints/v1` branch for suspicious checkpoint metadata before resuming or rewinding. - Remove or protect shell initialization files and other sensitive user-writable files where feasible. These mitigations reduce exposure but do not fully address the vulnerability. Upgrading is recommended. ### Credits Thanks Navtej Kathuria for privately reporting this issue to the Entire Security team.

GHSA-2h46-9x5w-4wf7 Affected Entire CLI Versions

1 component(s)
Fixed Versions:
0.7.7
Product / Package Ecosystem Affected Versions Fixed Version
github.com/entireio/cli
Go
< 0.7.7
0.7.7

References

Frequently Asked Questions

What is GHSA-2h46-9x5w-4wf7?
GHSA-2h46-9x5w-4wf7 is a security vulnerability in Entire CLI involving Path traversal in checkpoint session metadata allows arbitrary file write during resume/rewind under CWE-73: External Control of File Name or Path.
Which Entire CLI versions are affected?
Affected versions include releases prior to 0.7.7 across affected packages: github.com/entireio/cli.
What version fixes GHSA-2h46-9x5w-4wf7?
Upgrading to 0.7.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/entireio/cli affected?
Yes, github.com/entireio/cli is affected in releases prior to 0.7.7. Upgrade your dependency to 0.7.7 or later.
What CWE is associated with GHSA-2h46-9x5w-4wf7?
GHSA-2h46-9x5w-4wf7 is classified under CWE-73: External Control of File Name or Path (The product allows user input to control or influence paths or file names that are used in filesystem operations.).
How can I check Go dependencies for GHSA-2h46-9x5w-4wf7?
Run the dependency tree command: 'inspect dependencies for github.com/entireio/cli'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-2h46-9x5w-4wf7",
  "modified" : "2026-06-19T15:00:01Z",
  "published" : "2026-06-19T15:00:01Z",
  "aliases" : [ ],
  "summary" : "Entire CLI: Path traversal in checkpoint session metadata allows arbitrary file write during resume/rewind",
  "details" : "### 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.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:L/VA:N/SC:N/SI:H/SA:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/entireio/cli"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.7.7"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.7.6"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/entireio/cli/security/advisories/GHSA-2h46-9x5w-4wf7"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/entireio/cli/pull/1365"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/entireio/cli/pull/1449"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/entireio/cli"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22", "CWE-73" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-06-19T15:00:01Z",
    "nvd_published_at" : null
  }
}