CVE-2024-52308 — Command Injection in CLI CLI
Severity
9.6CRITICALNVD
EPSS
6.2%
top 9.16%
CISA KEV
Not in KEV
Exploit
No known exploits
Affected products
Timeline
PublishedNov 14
Latest updateNov 26
Description
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-... htt…
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:HExploitability: 2.8 | Impact: 6.0
Affected Packages9 packages
🔴Vulnerability Details
5OSV▶
Connecting to a malicious Codespaces via GH CLI could allow command execution on the user's computer in github.com/cli/cli↗2024-11-19
OSV▶
Connecting to a malicious Codespaces via GH CLI could allow command execution on the user's computer↗2024-11-14
GHSA▶
Connecting to a malicious Codespaces via GH CLI could allow command execution on the user's computer↗2024-11-14