Remote code execution in GitHub CLI



Risk High
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2024-52308
CWE-ID CWE-20
Exploitation vector Network
Public exploit N/A
Vulnerable software
GitHub CLI
Universal components / Libraries / Software for developers

Vendor GitHub CLI

Security Bulletin

This security bulletin contains one high risk vulnerability.

1) Input validation error

EUVDB-ID: #VU100996

Risk: High

CVSSv3.1: 7.7 [CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2024-52308

CWE-ID: CWE-20 - Improper input validation

Exploit availability: No

Description

The vulnerability allows a remote user to compromise the affected system.

The vulnerability exists due to the way GitHub CLI handles SSH connection details when executing commands. A remote user can supply a specially crafted devcontainer that can inject and execute arbitrary commands on the system with elevated privileges.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

GitHub CLI: 0.4.0 - 2.61.0

CPE2.3 External links

http://github.com/cli/cli/security/advisories/GHSA-p2h2-3vg9-4p87


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated user via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###