p PatchFirst

CVE-2024-53858

CVE-2024-53858 · Recursive repository cloning can leak authentication tokens to non-GitHub submodule hosts in the gh cli

CVSS 6.5 · Mittel · EPSS 0,3% · Korrektur verfügbar

Vergleichen Sie mit Ihrer installierten Version

Betroffene Produkte und bekannte korrigierte Versionen sind öffentlich. Vergleichen Sie diese mit Ihrer installierten Version.

  • cliKeine Korrektur veröffentlicht
  • gh Debian 12Keine Korrektur veröffentlicht
  • gh Debian 13Auf 2.46.0-3 aktualisieren
  • gh Ubuntu Pro 24.04 LTSAuf 2.45.0-1ubuntu0.3+esm2 aktualisieren

Installierte Version prüfen:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="gh"'

Bewerten Sie die Risiken Ihres Servers

Die kostenlose Prüfung liefert ohne Registrierung eine Bewertung und eine Risikoübersicht nach Technologie-Stacks. Sie beantwortet nicht, ob diese einzelne Schwachstelle Sie betrifft.

Die Überwachung gleicht öffentliche Informationen mit der Software Ihrer Server ab. Sie erhalten detaillierte Funde und eine Reihenfolge für Updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Server kostenlos prüfen →

Kanäle bieten allgemeine Nachrichten zu Technologien; neue Funde auf Ihren Servern meldet die Überwachung im Dashboard, per Browser-Benachrichtigung, in Telegram oder über einen Webhook.

Diese Seite enthält Fakten aus öffentlichen Sicherheitsquellen. Lesen Sie vor dem Aktualisieren die Originalmeldung.

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

Veröffentlicht
Aktualisiert

Korrekturen in Distributionen

Technologie-Stack: system

Betroffene Produkte und Versionen

  • cli

    Softwareversionen
    • < 2.63.0: Betroffen

    Keine Korrektur veröffentlicht

  • gh Debian 12

    Softwareversionen
    • 2.23.0+dfsg1-1
    • 2.24.3+dfsg1-1
    • 2.27.0+dfsg1-1
    • 2.30.0-1
    • 2.30.0-2
    • 2.35.0-1
    Alle Versionen (16)
    • 2.40.1+dfsg1-1
    • 2.42.1-1
    • 2.43.1-1
    • 2.44.1-1
    • 2.44.1-2
    • 2.45.0-1
    • 2.46.0-1
    • 2.46.0-2
    • 2.46.0-3
    • 2.46.0-4
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

  • gh Debian 13

    Betroffene Versionsbereiche
    • ECOSYSTEM: < 2.46.0-3

    Auf 2.46.0-3 aktualisieren

  • gh Ubuntu Pro 24.04 LTS

    Softwareversionen
    • 2.27.0+dfsg1-1build1
    • 2.30.0-2
    • 2.35.0-1
    • 2.40.1+dfsg1-1
    • 2.42.1-1
    • 2.43.1-1
    Alle Versionen (16)
    • 2.44.1-1
    • 2.44.1-2
    • 2.45.0-1
    • 2.45.0-1build1
    • 2.45.0-1ubuntu0.1
    • 2.45.0-1ubuntu0.2
    • 2.45.0-1ubuntu0.2+esm1
    • 2.45.0-1ubuntu0.2+esm2
    • 2.45.0-1ubuntu0.3
    • 2.45.0-1ubuntu0.3+esm1
    Betroffene Versionsbereiche
    • ECOSYSTEM: < 2.45.0-1ubuntu0.3+esm2

    Auf 2.45.0-1ubuntu0.3+esm2 aktualisieren

Originalquellen

Prüfen Sie Ihren Server →