CVE-2024-53859
CVE-2024-53859 · go-gh `auth.TokenForHost` violates GitHub host security boundary within a codespace
CVSS 6.5 · Moyenne · EPSS 0,5% · Correctif disponible
Comparez avec votre version installée
Les produits concernés et les versions corrigées connues sont des informations publiques. Comparez-les avec votre version installée.
- go-ghAucun correctif publié
- golang-github-cli-go-gh-v2 Debian 13Aucun correctif publié
- golang-github-cli-go-gh-v2 Debian 14Aucun correctif publié
- golang-github-cli-go-gh-v2 Ubuntu Pro 24.04 LTSMettez à jour vers 2.6.0-1ubuntu0.24.04.1~esm1
- et 3 de plus
Vérifiez la version installée :
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="golang-github-cli-go-gh-v2"'Évaluez les risques de votre serveur
La vérification gratuite donne une note et un résumé des risques par pile technologique, sans inscription. Elle ne précise pas si cette vulnérabilité particulière vous concerne.
La surveillance compare les informations publiques aux logiciels de vos serveurs. Elle fournit les résultats détaillés et l’ordre des mises à jour.
curl -fsSL https://patchfirst.dev/check.sh | shLes canaux diffusent des actualités générales sur les technologies ; la surveillance signale les nouveaux résultats sur vos serveurs dans votre tableau de bord, par notification du navigateur, dans Telegram ou par webhook.
Cette page présente des faits issus de sources publiques. Consultez l’avis original avant toute mise à jour.
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.
- Publication
- Mise à jour
Correctifs dans les distributions
- USN-7362-1 · Ubuntu Pro 24.04 LTS ·
- openSUSE-SU-2024:14599-1 · openSUSE Tumbleweed ·
Pile logicielle: system
Produits et versions concernés
go-gh
- Versions du logiciel
- < 2.11.1: Concernée
Aucun correctif publié
golang-github-cli-go-gh-v2 Debian 13
- Versions du logiciel
- 2.17.0-1
- 2.17.0-1~exp1
- 2.6.0-2
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
golang-github-cli-go-gh-v2 Debian 14
- Versions du logiciel
- 2.17.0-1
- 2.17.0-1~exp1
- 2.6.0-2
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
golang-github-cli-go-gh-v2 Ubuntu Pro 24.04 LTS
- Versions du logiciel
- 2.0.0-2
- 2.3.0-1
- 2.4.0+git20231120.d32c104-1
- 2.5.0-1
- 2.6.0-1
- Plages de versions concernées
- ECOSYSTEM: < 2.6.0-1ubuntu0.24.04.1~esm1
Mettez à jour vers 2.6.0-1ubuntu0.24.04.1~esm1
golang-github-cli-go-gh-v2 Ubuntu 25.10
- Versions du logiciel
- 2.6.0-2
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
golang-github-cli-go-gh-v2 Ubuntu 26.10
- Versions du logiciel
- 2.6.0-2
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
golang-github-cli-go-gh-v2 Ubuntu 26.04 LTS
- Versions du logiciel
- 2.6.0-2
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
Sources originales
- https://github.com/cli/go-gh/security/advisories/GHSA-55v3-xh23-96gh
- https://docs.github.com/en/apps/using-github-apps/reviewing-and-revoking-authorization-of-github-apps#reviewing-your-authorized-github-apps
- https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/reviewing-your-security-log
- 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
- https://docs.github.com/en/enterprise-cloud@latest/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens
- https://github.com/cli/go-gh/blob/71770357e0cb12867d3e3e288854c0aa09d440b7/pkg/auth/auth.go#L73-L77
- https://nvd.nist.gov/vuln/detail/CVE-2024-53859