Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2024-52308: The GitHub CLI version 2.6.1 and earlier are vulnerable to remote code execution through a malicious codespace

43
This month
HIGH 8.0UPGRADE

CVE-2024-52308 is a high-severity flaw (CVSS 8.0) affecting cli. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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-pro

Why this priority

  • High severity

A fixed release or distro patch exists.

Risk facts

CVSS score8.0 (High)
Attack vectorNetwork (remote)
Attack complexityHigh
Privileges neededLow
User interactionRequired
EPSS exploit chance0.9% (top 40%)
CISA exploited listNo
WeaknessCWE-77
Published2024-11-14
Last modified2026-06-17
Publisher (CNA): GitHub, Inc. · Vendor: github

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

github cli UPGRADE
Affected: < 2.62.0
Fixed in: 2.62.0
Safe to downgrade to: no unaffected older release
1. Check installed version
apt-cache policy cli || rpm -q cli || cli --version
2. UPGRADE to 2.62.0 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade cli
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade cli
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2024-52308?

cli: upgrade to 2.62.0. Exact commands for each OS are on this page.

Is CVE-2024-52308 being exploited?

CVE-2024-52308 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2024-52308 affect?

CVE-2024-52308 affects cli. Severity is high (CVSS 8.0). 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 c

How urgent is CVE-2024-52308?

Priority 43/100. High severity

Software pages

GitHub vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.