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

- Severity: Medium 6.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.76%, higher than 56% of CVEs (2026-12-01)
- Published: 2025-01-15T17:25:00.945Z
- Modified: 2026-06-17T08:51:38.040Z
- Weaknesses: CWE-522
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- desktop desktop: < 3.4.12

## References

- <https://github.com/desktop/desktop/security/advisories/GHSA-36mm-rh9q-cpqq>
- <https://docs.github.com/en/apps/using-github-apps/reviewing-and-revoking-authorization-of-github-apps>
- <https://git-scm.com/docs/git-credential>

## Sources

- CVE List: [CVE-2025-23040](https://www.cve.org/CVERecord?id=CVE-2025-23040), CVE Terms of Use, modified 2025-01-15
- NVD: [CVE-2025-23040](https://nvd.nist.gov/vuln/detail/CVE-2025-23040), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-23040 · Whole record: https://cve.day/CVE-2025-23040.json · Rebuilt by cve.day 2026-11-25T22:58:53.346Z
