Public mode

No access to your tenant or devices. Every item links to its source. What this means

Sources need attention Customize Public modeDiscuss ChangeIntel on Discord

The GitHub CLI version 2.6.1 and earlier are vulnerable to remote code execution through a malicious codespace SSH server when using `gh codespace ssh` or `gh codespace logs` commands. This has been patched in the cli v2.62.0.

Historical advisory saved 29 Oct 2026 21:21:28 UTC. The publisher may have updated it since then. Latest advisory.

euvd · EUVD-2024-3287

Published

The GitHub CLI version 2.6.1 and earlier are vulnerable to remote code execution through a malicious codespace SSH server when using `gh codespace ssh` or `gh codespace logs` commands. This has been patched in the cli v2.62.0. Developers connect to remote codespaces through an SSH server running within the devcontainer, which is generally provided through the [default devcontainer image]( https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/adding-a-dev-container-... https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/adding-a-dev-container-configuration/introduction-to-dev-containers#using-the-default-dev-container-configuration) . GitHub CLI [retrieves SSH connection details]( https://github.com/cli/cli/blob/30066b0042d0c5928d959e288144300cb28196c9/internal/codespaces/rpc/inv... https://github.com/cli/cli/blob/30066b0042d0c5928d959e288144300cb28196c9/internal/codespaces/rpc/invoker.go#L230-L244 ), such as remote username, which is used in [executing `ssh` commands]( https://github.com/cli/cli/blob/e356c69a6f0125cfaac782c35acf77314f18908d/pkg/cmd/codespace/ssh.go#L2... https://github.com/cli/cli/blob/e356c69a6f0125cfaac782c35acf77314f18908d/pkg/cmd/codespace/ssh.go#L263 ) for `gh codespace ssh` or `gh codespace logs` commands. This exploit occurs when a malicious third-party devcontainer contains a modified SSH server that injects `ssh` arguments within the SSH connection details. `gh codespace ssh` and `gh codespace logs` commands could execute arbitrary code on the user's workstation if the remote username contains something like `-oProxyCommand="echo hacked" #`. The `-oProxyCommand` flag causes `ssh` to execute the provided command while `#` shell comment causes any other `ssh` arguments to be ignored. In `2.62.0`, the remote username information is being validated before being used.

Additional publisher context

EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON.

Original publisher date fields

datePublished: Nov 14, 2024, 10:55:38 PM

dateUpdated: Nov 15, 2024, 7:33:42 PM

6 related source bulletins · separate from aliases

NCSC-2024-0454: Kwetsbaarheid verholpen in GitHub CLI

CVE-2024-52308

openSUSE-SU-2024:14509-1: gh-2.62.0-1.1 on GA media

CVE-2024-52308

openSUSE-SU-2025:0021-1: Security update for gh

CVE-2024-52308

openSUSE-SU-2026:21310-1: Security update for gh

CVE-2024-52308 · CVE-2025-27144

openSUSE-SU-2024:14513-1: govulncheck-vulndb-0.0.20241119T173509-1.1 on GA media

CVE-2020-8911 · CVE-2023-0109 · CVE-2024-0793 · CVE-2024-24425 · CVE-2024-24426 · CVE-2024-44625 · CVE-2024-52010 · CVE-2024-52308 · CVE-2024-52522 · CVE-2024-9526

msrc_CVE-2024-52308: Connecting to a malicious Codespaces via GH CLI could allow command execution on the user's computer

CVE-2024-52308

Source published
Nov 14, 2024, 10:55:38 PM (timezone not stated)
Source modified
Nov 15, 2024, 7:33:42 PM (timezone not stated)
Saved here
29 Oct 2026 21:21:28 UTC
Source terms
ENISA EUVD · source terms and attribution apply

Original source record · Cite this exact observation · Complete original publisher JSON

Source: euvd · ENISA EUVD · source terms and attribution apply. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.

EUVD CVSS 3.1 · 8.0 CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H

ChangeIntel

An IT change radar: releases, security, known issues, retirements, documentation changes, and service status from public sources. Every item links to supporting evidence; dates and statuses can change after they are read.

Sources read 16 Nov 14:56 UTC · 274 of 275 readable · 250 fully read · 20 waiting for GitHub's hourly limit · documentation 469/469 current