CVE-2024-52308 describes a critical remote code execution vulnerability affecting GitHub CLI versions 2.6.1 and earlier. This flaw allows an attacker to execute arbitrary code on a user's workstation when they use 'gh codespace ssh' or 'gh codespace logs' commands to connect to a malicious codespace SSH server. The vulnerability stems from improper validation of remote username information, which can be manipulated to inject SSH arguments. With a CVSS score of 9.6 (CRITICAL), this vulnerability has a high severity, indicating a network-based attack with low complexity and high impact on confidentiality, integrity, and availability. The user interaction requirement (UI:R) means the user must connect to a malicious codespace. The vulnerability has been patched in GitHub CLI v2.62.0. Currently, there is no evidence of active exploitation, public exploit code (Metasploit, Nuclei, ExploitDB), or significant community discussion or media coverage. Despite the lack of current exploitation, the high severity and ease of exploitation make patching a priority for affected users.
| Vendor | Product | Version(s) | CPE |
|---|---|---|---|
< 2.62.0CPE matchmatch criteria | cpe:2.3:a:github:cli:*:*:*:*:*:*:*:* |
CVSS version used by this source: 3.1
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
The average CVE in this peer group has 0.0 Twitter, 0.1 Reddit, 0.8 Bluesky, 0.5 Mastodon, and 1.2 GitHub mentions.
No media coverage found for this CVE.
The average CVE in this peer group has 0.3 InfoSec Media, 0.0 Vendor Blog, and 0.1 Security Researcher mentions.
CVE-2024-52308
Dec 10, 2024Connecting to a malicious Codespaces via GH CLI could allow command execution on the user's computer
Nov 14, 2024Connecting to a malicious Codespaces via GH CLI could allow command execution on the user's computer
Nov 12, 2024