CVE-2024-53859: cli go-gh
Vulnerability summary
CVE-2024-53859 is a high (CVSS 7.5) vulnerability in cli go-gh. EPSS estimates a 0.53% chance of exploitation in the next 30 days, higher than 43.8% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 1 · Related 2Timeline
- 27-11-2024PublishedVulnerability first disclosed.
- 03-12-2024Last modifiedVulnerability information updated.
Description
go-gh is a Go module for interacting with the `gh` utility and the GitHub API from the command line. A security vulnerability has been identified in `go-gh` that could leak authentication tokens intended for GitHub hosts to non-GitHub hosts when within a codespace. `go-gh` sources authentication tokens from different environment variables depending on the host involved: 1. `GITHUB_TOKEN`, `GH_TOKEN` for GitHub.com and ghe.com and 2. `GITHUB_ENTERPRISE_TOKEN`, `GH_ENTERPRISE_TOKEN` for GitHub Enterprise Server. Prior to version `2.11.1`, `auth.TokenForHost` could source a token from the `GITHUB_TOKEN` environment variable for a host other than GitHub.com or ghe.com when within a codespace. In version `2.11.1`, `auth.TokenForHost` will only source a token from the `GITHUB_TOKEN` environment variable for GitHub.com or ghe.com hosts. Successful exploitation could send authentication token to an unintended host. This issue has been addressed in version 2.11.1 and all users are advised to upgrade. Users are also advised to regenerate authentication tokens and to review their personal security log and any relevant audit logs for actions associated with their account or enterprise.
CVSS metrics
7 scores · 7 sources · 1 version- CVE.orgCNA6.5MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:LDiffers
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · WolfiEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:LDiffers
- OSV · GoEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:LDiffers
- OSV · ChainguardEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:LDiffers
EPSS trend
Probability
0.53%
Chance of exploitation in the next 30 days
Percentile
44%
Versus all other CVEs
30-day change
0.00 pp
From 0.53% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard2 products
- gh< 2.63.0-r0
- wolfictl< 0.26.0-r1
Wolfi2 products
- gh< 2.63.0-r0
- wolfictl< 0.26.0-r1
Cli1 product
- go-gh< 2.11.1
Debian1 product
- golang-github-cli-go-gh-v2All versions (No fix recorded)
Github.com/cli1 product
- go-ghAll versions (No fix recorded)
Github.com/cli/go-gh1 product
- v2< 2.11.1
Ubuntu1 product
- golang-github-cli-go-gh-v2< 2.6.0-1ubuntu0.24.04.1~esm1 | All versions (No fix recorded)
7 vendors · 9 products
References
14 links- github.com/cli/go-gh/security/advisories/GHSA-55v3-xh23-96ghX Refsource CONFIRMREPORTAdvisoryWEBMitigationVendor Advisory
- docs.github.com/en/apps/using-github-apps/reviewing-and-revoking-authorization-of-github-appsX Refsource MISCREPORTWEBTechnical Description
- docs.github.com/en/authentication/keeping-your-account-and-data-secure/reviewing-your-security-logX Refsource MISCREPORTWEBTechnical Description
- github.com/cli/go-gh/blob/71770357e0cb12867d3e3e288854c0aa09d440b7/pkg/auth/auth.goX Refsource MISCREPORTWEBProduct
Show all 14 references
- github.com/cli/go-ghPACKAGE