CWE
522
EPSS
0.045%
Advisory Published
Updated

CVE-2025-23040: Maliciously crafted remote URLs could lead to credential leak in GitHub Desktop

First published: Wed Jan 15 2025(Updated: )

GitHub Desktop is an open-source Electron-based GitHub app designed for git development. An attacker convincing a user to clone a repository directly or through a submodule can allow the attacker access to the user's credentials through the use of maliciously crafted remote URL. GitHub Desktop relies on Git to perform all network related operations (such as cloning, fetching, and pushing). When a user attempts to clone a repository GitHub Desktop will invoke `git clone` and when Git encounters a remote which requires authentication it will request the credentials for that remote host from GitHub Desktop using the git-credential protocol. Using a maliciously crafted URL it's possible to cause the credential request coming from Git to be misinterpreted by Github Desktop such that it will send credentials for a different host than the host that Git is currently communicating with thereby allowing for secret exfiltration. GitHub username and OAuth token, or credentials for other Git remote hosts stored in GitHub Desktop could be improperly transmitted to an unrelated host. Users should update to GitHub Desktop 3.4.12 or greater which fixes this vulnerability. Users who suspect they may be affected should revoke any relevant credentials.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
GitHub Desktop<3.4.12

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2025-23040?

    CVE-2025-23040 has been classified as a high severity vulnerability due to the potential for credential exposure.

  • How do I fix CVE-2025-23040?

    To mitigate CVE-2025-23040, ensure you update GitHub Desktop to version 3.4.12 or later.

  • What type of vulnerability is CVE-2025-23040?

    CVE-2025-23040 is a security vulnerability that allows an attacker to access user credentials via malicious repository URLs.

  • Which versions of GitHub Desktop are affected by CVE-2025-23040?

    CVE-2025-23040 affects all versions of GitHub Desktop prior to version 3.4.12.

  • How can attackers exploit CVE-2025-23040?

    Attackers can exploit CVE-2025-23040 by convincing users to clone a repository with a maliciously crafted remote URL.

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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203