cve.bz

CVE-2024-53858 (Clone2Leak) cli cli

6.5 mediumEPSS 0.3%Fix available

Known as Clone2Leak

Medium (6.5) in cli cli. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/cli/cli/v2 2.63.0.

On this page
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

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 21st percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2024-12-03. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-53858 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-53858?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-53858?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-53858 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
cli< 2.63.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-jwcm-9g39-pmcwGogithub.com/cli/cli/v2<2.63.02.63.0
GO-2024-3296Gogithub.com/cli/cliall versionsno fix published
GO-2024-3296Gogithub.com/cli/cli/v2<2.63.02.63.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12ghno fix listedDEBIAN-CVE-2024-53858
Debian13gh2.46.0-3DEBIAN-CVE-2024-53858
UbuntuPro:24.04:LTSgh2.45.0-1ubuntu0.3+esm2UBUNTU-CVE-2024-53858 USN-8012-1
openSUSETumbleweedgovulncheck-vulndb0.0.20241209T183251-1.1openSUSE-SU-2024:14567-1
Azure Linux2gh2.13.0-24AZL-53759
Azure Linux3gh2.62.0-5AZL-53477

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-200 (59).

References

Check your stackJSON