{"schemaVersion":3,"id":"CVE-2024-53859","aliases":["UBUNTU-CVE-2024-53859","USN-7362-1","DEBIAN-CVE-2024-53859","CGA-97m2-hgv3-5crv","CGA-mj2w-92gw-qrhw","CGA-q5rr-8wmw-ff35","CGA-x9qf-w35x-phqx","GHSA-55v3-xh23-96gh","GO-2024-3295"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2024-11-27T21:25:12.391Z","modified":"2024-12-03T16:15:49.930Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L","exploitability":2.6,"impact":9.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L","exploitability":2.6,"impact":9.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L","exploitability":2.6,"impact":9.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00531,"percentile":0.43806,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00531},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00531,"percentile":0.43806}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00531,"percentile":0.43806}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor","description":"The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/200.html"}],"affected":[{"vendor":"chainguard","product":"gh","name":"gh","label":"gh","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/gh","purlType":"apk","versions":[{"text":"< 2.63.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.63.0-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"wolfictl","name":"wolfictl","label":"wolfictl","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/wolfictl","purlType":"apk","versions":[{"text":"< 0.26.0-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.26.0-r1","eol":null,"hubHref":null},{"vendor":"wolfi","product":"gh","name":"gh","label":"gh","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/gh","purlType":"apk","versions":[{"text":"< 2.63.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.63.0-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"wolfictl","name":"wolfictl","label":"wolfictl","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/wolfictl","purlType":"apk","versions":[{"text":"< 0.26.0-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.26.0-r1","eol":null,"hubHref":null},{"vendor":"cli","product":"go-gh","name":"go-gh","label":"go-gh","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.11.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.11.1","eol":null,"hubHref":"/vendor/cli/go-gh"},{"vendor":"debian","product":"golang-github-cli-go-gh-v2","name":"golang-github-cli-go-gh-v2","label":"golang-github-cli-go-gh-v2","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/golang-github-cli-go-gh-v2","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"golang-github-cli-go-gh-v2","name":"golang-github-cli-go-gh-v2","label":"golang-github-cli-go-gh-v2","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/golang-github-cli-go-gh-v2","purlType":"deb","versions":[{"text":"< 2.6.0-1ubuntu0.24.04.1~esm1","noFixRecorded":false,"fixedIn":null},{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"< 2.6.0-1ubuntu0.24.04.1~esm1 | All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"github.com/cli","product":"go-gh","name":"github.com/cli/go-gh","label":"go-gh","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/cli/go-gh","purlType":"golang","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"github.com/cli/go-gh","product":"v2","name":"github.com/cli/go-gh/v2","label":"v2","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/cli/go-gh/v2","purlType":"golang","versions":[{"text":"< 2.11.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.11.1","eol":null,"hubHref":null}],"affectedCount":9,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/cli/go-gh/security/advisories/GHSA-55v3-xh23-96gh","label":"github.com/cli/go-gh/security/advisories/GHSA-55v3-xh23-96gh","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","Advisory","WEB","Mitigation","Vendor Advisory"]},{"url":"https://docs.github.com/en/apps/using-github-apps/reviewing-and-revoking-authorization-of-github-apps#reviewing-your-authorized-github-apps","label":"docs.github.com/en/apps/using-github-apps/reviewing-and-revoking-authorization-of-github-apps","hostname":"docs.github.com","tags":["X Refsource MISC","REPORT","WEB","Technical Description"]},{"url":"https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/reviewing-your-security-log","label":"docs.github.com/en/authentication/keeping-your-account-and-data-secure/reviewing-your-security-log","hostname":"docs.github.com","tags":["X Refsource MISC","REPORT","WEB","Technical Description"]},{"url":"https://docs.github.com/en/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/identifying-audit-log-events-performed-by-an-access-token","label":"docs.github.com/en/…","hostname":"docs.github.com","tags":["X Refsource MISC","REPORT","WEB","Technical Description"]},{"url":"https://docs.github.com/en/enterprise-cloud@latest/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens","label":"docs.github.com/en/…","hostname":"docs.github.com","tags":["X Refsource MISC","REPORT","WEB","Technical Description"]},{"url":"https://github.com/cli/go-gh/blob/71770357e0cb12867d3e3e288854c0aa09d440b7/pkg/auth/auth.go#L73-L77","label":"github.com/cli/go-gh/blob/71770357e0cb12867d3e3e288854c0aa09d440b7/pkg/auth/auth.go","hostname":"github.com","tags":["X Refsource MISC","REPORT","WEB","Product"]},{"url":"https://ubuntu.com/security/CVE-2024-53859","label":"ubuntu.com/security/CVE-2024-53859","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-53859","label":"www.cve.org/CVERecord?id=CVE-2024-53859","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-7362-1","label":"ubuntu.com/security/notices/USN-7362-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-53859","label":"security-tracker.debian.org/tracker/CVE-2024-53859","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53859.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53859.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-53859","label":"nvd.nist.gov/vuln/detail/CVE-2024-53859","hostname":"nvd.nist.gov","tags":["Advisory","Oval"]},{"url":"https://github.com/cli/go-gh","label":"github.com/cli/go-gh","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://pkg.go.dev/vuln/GO-2024-3295","label":"pkg.go.dev/vuln/GO-2024-3295","hostname":"pkg.go.dev","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2024:14599-1"],"duplicates":[],"related":["CGA-7V44-739C-WQ94","OPENSUSE-SU-2024:14599-1"]},"timeline":[{"kind":"published","date":"2024-11-27T21:25:12.391Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-12-03T16:15:49.930Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T21:51:35.688Z","stale":false,"partial":false}}