Description:
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....
Advisory CVE-2024-53858 references a vulnerability in the following Go modules:
Description: 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 severalgh
commands used to clone a repository with submodules from a non-GitHub host includinggh repo clone
,gh repo fork
, andgh pr checkout
. These GitHub CLI commands invoke git with instructions to retrieve authentication tokens using thecredential.helper
configuration variable for any host encountered....References:
Cross references:
See doc/quickstart.md for instructions on how to triage this report.