Vulnerability · Published Jan 15, 2025 · Assigned by GitHub_M
CVE-2025-23040Maliciously crafted remote URLs could lead to credential leak in GitHub Desktop
Medium 6.6
In plain English
A medium-severity security flaw in desktop from desktop. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 55% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code.
Official description
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.
Affected products (as reported)
Weakness: CWE-522 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
References
- https://github.com/desktop/desktop/security/advisories/GHSA-36mm-rh9q-cpqq x_refsource_CONFIRM
- https://docs.github.com/en/apps/using-github-apps/reviewing-and-revoking-authorization-of-github-apps x_refsource_MISC
- https://git-scm.com/docs/git-credential x_refsource_MISC