• News/
  • https://thehackernews.com/2025/01/github-desktop-vulnerability-risks.html

GitHub Desktop Vulnerability Risks Credential Leaks via Malicious Remote URLs

The Hacker News
·
Published Jan 27, 2025
·
Updated

Multiple security vulnerabilities have been disclosed in GitHub Desktop as well as other Git-related projects that, if successfully exploited, could permit an attacker to gain unauthorized access to a user's Git credentials. "Git implements a protocol called Git Credential Protocol to retrieve credentials from the credential helper," GMO Flatt Security researcher Ry0taK, who discovered the flaws, said in an analysis published Sunday. "Because of improper handling of messages, many projects were vulnerable to credential leakage in various ways." The list of identified vulnerabilities, dubbed Clone2Leak, is as follows - CVE-2025-23040 (CVSS score: 6.6) - Maliciously crafted remote URLs could lead to credential leaks in GitHub Desktop CVE-2024-50338 (CVSS score: 7.4) - Carriage-return character in remote URL allows the malicious repository to leak credentials in Git Credential Manager CVE-2024-53263 (CVSS score: 8.5) - Git LFS permits retrieval of credentials via crafted HTTP URLs CVE-2024-53858 (CVSS score: 6.5) - Recursive repository cloning in GitHub CLI can leak authentication tokens to non-GitHub submodule hosts While the credential helper is designed to return a message containing the credentials that are separated by the newline control character ("\n"), the research found that GitHub Desktop is susceptible to a case of carriage return ("\r") smuggling whereby injecting the character into a crafted URL can leak the credentials to an attacker-controlled host. "Using a mali...

Read full article

Affected Software

5 affected components
GitHub GitHub Desktop
Git Credential Manager Git Credential Manager NuGet package
Git Git LFS
GitHub GitHub CLI
Git Git<2.48.1

Frequently Asked Questions

1

Which projects are affected by the Clone2Leak vulnerabilities?

The disclosed issues affect GitHub Desktop, Git Credential Manager, Git LFS, and GitHub CLI. The vulnerabilities involve credential leakage through different handling of remote URLs, HTTP URLs, or submodule hosts.

2

What could an attacker obtain by exploiting these flaws?

Successful exploitation could allow an attacker to gain unauthorized access to a user's Git credentials. GitHub CLI's issue can leak authentication tokens to non-GitHub submodule hosts.

3

How do the vulnerabilities cause credential leakage?

Git uses the Git Credential Protocol to retrieve credentials from a credential helper. According to the researcher, improper handling of messages in this process left multiple projects vulnerable to credential leakage.

4

Which disclosed issue has the highest CVSS score?

CVE-2024-53263, affecting Git LFS, has the highest listed CVSS score of 8.5. It permits retrieval of credentials through crafted HTTP URLs.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203