ADVISORIES

Vulnerability

CVE-2024-53858

The gh cli is GitHub’s official command line tool. A security vulnerability has been identified in the GitHub CLI that could leak authentication tokens when cloning repositories containing `git` submodules hosted outside of GitHub.com and ghe.com. This vulnerability stems from several `gh` commands used to clone a repository with submodules from a non-GitHub host including `gh repo clone`, `gh repo fork`, and `gh pr checkout`. These GitHub CLI commands invoke git with instructions to retrieve authentication tokens using the `credential.helper` configuration variable for any host encountered. Prior to version `2.63.0`, hosts other than GitHub.com and ghe.com are treated as GitHub Enterprise Server hosts and have tokens sourced from the following environment variables before falling back to host-specific tokens stored within system-specific secured storage: 1. `GITHUB_ENTERPRISE_TOKEN`, 2. `GH_ENTERPRISE_TOKEN` and 3. `GITHUB_TOKEN` when the `CODESPACES` environment variable is set. The result being `git` sending authentication tokens when cloning submodules. In version `2.63.0`, these GitHub CLI commands will limit the hosts for which `gh` acts as a credential helper to source authentication tokens. Additionally, `GITHUB_TOKEN` will only be used for GitHub.com and ghe.com. Users are advised to upgrade. Additionally users are advised to revoke authentication tokens used with the GitHub CLI and to review their personal security log and any relevant audit logs for actions associated with their account or enterprise

10 advisories report this vulnerability, across 7 ecosystems.

Advisories

  • AZL-53477

    CVE-2024-53858 affecting package gh for versions less than 2.62.0-5

    CVE-2024-53858 Azure Linux Updated 8 September 2026
  • AZL-53759

    CVE-2024-53858 affecting package gh for versions less than 2.13.0-24

    CVE-2024-53858 Azure Linux Updated 21 April 2026
  • CGA-r3j3-f5mf-4c2g
    CVE-2024-53858 ChainguardWolfi Updated 5 November 2026
  • CGA-x5vr-94xp-8wc5
    CVE-2024-53858 ChainguardWolfi Updated 5 November 2026
  • DEBIAN-CVE-2024-53858

    The gh cli is GitHub’s official command line tool. A security vulnerability has been identified in the GitHub CLI that could leak authentication tokens when cloning repositories containing `git` submodules hosted…

    CVE-2024-53858 Debian Updated 2 November 2026
  • GHSA-jwcm-9g39-pmcw

    Recursive repository cloning can leak authentication tokens to non-GitHub submodule hosts

    Moderate CVE-2024-53858 Go Updated 10 September 2026
  • GO-2024-3296

    Recursive repository cloning can leak authentication tokens to non-GitHub submodule hosts in github.com/cli/cli

    CVE-2024-53858 Go Updated 4 February 2026
  • UBUNTU-CVE-2024-53858

    The gh cli is GitHub’s official command line tool. A security vulnerability has been identified in the GitHub CLI that could leak authentication tokens when cloning repositories containing `git` submodules hosted…

    CVE-2024-53858 Ubuntu Updated 5 February 2026
  • USN-8012-1

    gh vulnerabilities

    CVE-2024-53858CVE-2024-54132 Ubuntu Updated 27 April 2026
  • openSUSE-SU-2024:14567-1

    govulncheck-vulndb-0.0.20241209T183251-1.1 on GA media

    CVE-2024-10220CVE-2024-36620CVE-2024-36621CVE-2024-36623 openSUSE Updated 4 February 2026

References