CVE-2024-53859
CVE-2024-53859 · go-gh `auth.TokenForHost` violates GitHub host security boundary within a codespace
CVSS 6.5 · Media · EPSS 0,5% · Corrección disponible
Compara con tu versión instalada
Los productos afectados y las versiones corregidas conocidas son datos públicos. Compáralos con tu versión instalada.
- go-ghSin corrección publicada
- golang-github-cli-go-gh-v2 Debian 13Sin corrección publicada
- golang-github-cli-go-gh-v2 Debian 14Sin corrección publicada
- golang-github-cli-go-gh-v2 Ubuntu Pro 24.04 LTSActualiza a 2.6.0-1ubuntu0.24.04.1~esm1
- y 3 más
Comprueba la versión instalada:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="golang-github-cli-go-gh-v2"'Evalúa los riesgos de tu servidor
La comprobación gratuita te da una puntuación y un resumen de riesgos por pila tecnológica, sin registro. No indica si esta vulnerabilidad concreta te afecta.
La monitorización compara los datos públicos con el software de tus servidores. Ofrece hallazgos detallados y el orden de las actualizaciones.
curl -fsSL https://patchfirst.dev/check.sh | shLos canales publican noticias generales sobre tecnologías; la monitorización te avisa de nuevos hallazgos en tus servidores en el panel, mediante notificaciones del navegador, en Telegram o por webhook.
Esta página presenta datos de fuentes públicas de vulnerabilidades. Consulta el aviso original antes de actualizar.
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.
- Publicación
- Actualización
Correcciones en distribuciones
- USN-7362-1 · Ubuntu Pro 24.04 LTS ·
- openSUSE-SU-2024:14599-1 · openSUSE Tumbleweed ·
Pila tecnológica: system
Productos y versiones afectados
go-gh
- Versiones
- < 2.11.1: Afectada
Sin corrección publicada
golang-github-cli-go-gh-v2 Debian 13
- Versiones
- 2.17.0-1
- 2.17.0-1~exp1
- 2.6.0-2
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
golang-github-cli-go-gh-v2 Debian 14
- Versiones
- 2.17.0-1
- 2.17.0-1~exp1
- 2.6.0-2
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
golang-github-cli-go-gh-v2 Ubuntu Pro 24.04 LTS
- Versiones
- 2.0.0-2
- 2.3.0-1
- 2.4.0+git20231120.d32c104-1
- 2.5.0-1
- 2.6.0-1
- Intervalos de versiones afectados
- ECOSYSTEM: < 2.6.0-1ubuntu0.24.04.1~esm1
Actualiza a 2.6.0-1ubuntu0.24.04.1~esm1
golang-github-cli-go-gh-v2 Ubuntu 25.10
- Versiones
- 2.6.0-2
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
golang-github-cli-go-gh-v2 Ubuntu 26.10
- Versiones
- 2.6.0-2
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
golang-github-cli-go-gh-v2 Ubuntu 26.04 LTS
- Versiones
- 2.6.0-2
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
Fuentes 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