
CVE catalog
CVE-2024-53858
GitHub CLI vulnerabilities
- Severity
- Medium
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.28% · Oct 25, 2026
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
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | gh | sid | 2.46.0-4 | fixed |
| Debian | gh | trixie | 2.46.0-3 | fixed |
| Debian | gh | bookworm | 2.23.0+dfsg1-1 | vulnerable |
| Ubuntu | gh | noble | Not reported | vulnerable |
| Ubuntu | gh | noble | 2.45.0-1ubuntu0.3+esm2 | fixed |
| Ubuntu | gh | pro | 2.27.0+dfsg1-1build1 | vulnerable |
| Ubuntu | gh | pro | 2.30.0-2 | vulnerable |
| Ubuntu | gh | pro | 2.35.0-1 | vulnerable |
| Ubuntu | gh | pro | 2.40.1+dfsg1-1 | vulnerable |
| Ubuntu | gh | pro | 2.42.1-1 | vulnerable |
| Ubuntu | gh | pro | 2.43.1-1 | vulnerable |
| Ubuntu | gh | pro | 2.44.1-1 | vulnerable |
| Ubuntu | gh | pro | 2.44.1-2 | vulnerable |
| Ubuntu | gh | pro | 2.45.0-1 | vulnerable |
| Ubuntu | gh | pro | 2.45.0-1build1 | vulnerable |
| Ubuntu | gh | pro | 2.45.0-1ubuntu0.1 | vulnerable |
| Ubuntu | gh | pro | 2.45.0-1ubuntu0.2 | vulnerable |
| Ubuntu | gh | pro | 2.45.0-1ubuntu0.2+esm1 | vulnerable |
| Ubuntu | gh | pro | 2.45.0-1ubuntu0.2+esm2 | vulnerable |
| Ubuntu | gh | pro | 2.45.0-1ubuntu0.3 | vulnerable |
| Ubuntu | gh | pro | 2.45.0-1ubuntu0.3+esm1 | vulnerable |
| Ubuntu | gh | pro | 2.45.0-1ubuntu0.3+esm2 | fixed |
| Ubuntu | gh | pro | 2.27.0+dfsg1-1build1 | vulnerable |
| Ubuntu | gh | pro | 2.30.0-2 | vulnerable |
| Ubuntu | gh | pro | 2.35.0-1 | vulnerable |
| Ubuntu | gh | pro | 2.40.1+dfsg1-1 | vulnerable |
| Ubuntu | gh | pro | 2.42.1-1 | vulnerable |
| Ubuntu | gh | pro | 2.43.1-1 | vulnerable |
| Ubuntu | gh | pro | 2.44.1-1 | vulnerable |
| Ubuntu | gh | pro | 2.44.1-2 | vulnerable |
| Ubuntu | gh | pro | 2.45.0-1 | vulnerable |
| Ubuntu | gh | pro | 2.45.0-1build1 | vulnerable |
| Ubuntu | gh | pro | 2.45.0-1ubuntu0.1 | vulnerable |
| Ubuntu | gh | pro | 2.45.0-1ubuntu0.2 | vulnerable |
| Ubuntu | gh | pro | 2.45.0-1ubuntu0.2+esm1 | vulnerable |
| Ubuntu | gh | pro | 2.45.0-1ubuntu0.2+esm2 | vulnerable |
| Ubuntu | gh | pro | 2.45.0-1ubuntu0.3 | vulnerable |
| Ubuntu | gh | pro | 2.45.0-1ubuntu0.3+esm1 | vulnerable |
| Ubuntu | gh | pro | 2.45.0-1ubuntu0.3+esm2 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | gh | source | sid | 2.46.0-3 | not yet assigned | Not reported | [1088808] |
| Debian | gh | source | trixie | 2.46.0-3 | not yet assigned | Not reported | [1088808] |
| Debian | gh | source | bookworm | (unfixed) | not yet assigned | Not reported | [1088808] |
| Ubuntu | gh | deb | noble | 2.45.0-1ubuntu0.3+esm2 | Not reported | Not reported | Not reported |
| Ubuntu | gh | deb | pro | 2.45.0-1ubuntu0.3+esm2 | Not reported | USN-8012-1 | Not reported |
| Ubuntu | gh | deb | pro | 2.45.0-1ubuntu0.3+esm2 | Not reported | UBUNTU-CVE-2024-53858 | Not reported |
Notes
[bookworm] gh: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [gh]Affected
Details (2)
2.23.0+dfsg1-1· amd64 · bookwormAffected
usn · gh · debian · bookworm; usn · gh · debian · 12
2.23.0+dfsg1-1· arm64 · bookwormAffected
usn · gh · debian · bookworm; usn · gh · debian · 12
[Debian 13 (Trixie)]
- [gh]Fixed
Details (2)
2.46.0-3· amd64 · trixieFixed · Fixed:
2.46.0-3usn · gh · debian · 13
2.46.0-3· arm64 · trixieFixed · Fixed:
2.46.0-3usn · gh · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2024_14567-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2024-53858]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2024-53858]
- [https://osv.dev/vulnerability/USN-8012-1]
- [https://security-tracker.debian.org/tracker/CVE-2024-53858]
- [https://ubuntu.com/security/notices/USN-8012-1]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [SUSE security advisories and VEX] · [Ubuntu Security Notices (USN)]