Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/cli/cli
  4. ›
  5. CVE-2024-52308

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

November 14, 2024 (updated November 19, 2024)

A security vulnerability has been identified in GitHub CLI that could allow remote code execution (RCE) when users connect to a malicious Codespace SSH server and use the gh codespace ssh or gh codespace logs commands.

References

  • github.com/advisories/GHSA-p2h2-3vg9-4p87
  • github.com/cli/cli
  • github.com/cli/cli/security/advisories/GHSA-p2h2-3vg9-4p87
  • nvd.nist.gov/vuln/detail/CVE-2024-52308
  • pkg.go.dev/vuln/GO-2024-3269

Code Behaviors & Features

Detect and mitigate CVE-2024-52308 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.62.0

Fixed versions

  • 2.62.0

Solution

Upgrade to version 2.62.0 or above.

Impact 8 HIGH

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

Learn more about CVSS

Weakness

  • CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')

Source file

go/github.com/cli/cli/CVE-2024-52308.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:33 +0000.