CVE-2025-23040
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.
Description as published by the source, in English.
Key facts
- Published
- 2025-01-15
- Last modified
- 2026-06-17
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N- Scored by
- security-advisories@github.com
- Probability of exploitation
-
0.7 %
higher than 51 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Not registered in the sources
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| desktop | desktop | < 3.4.12 | Affected |
Weakness type
-
CWE-522: Insufficiently Protected Credentials
The product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval.
Attack techniques
Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.
- T1021: Remote Services
- T1021.002: SMB/Windows Admin Shares
- T1078: Valid Accounts
- T1110.004: Credential Stuffing
- T1114.002: Remote Email Collection
- T1133: External Remote Services
- T1543: Create or Modify System Process
- T1550.002: Pass the Hash
- T1550.003: Pass the Ticket
- T1552.004: Private Keys
- T1558: Steal or Forge Kerberos Tickets
- T1558.003: Kerberoasting
References
- https://docs.github.com/en/apps/using-github-apps/reviewing-and-revoking-authorization-of…
- https://git-scm.com/docs/git-credential
- https://github.com/desktop/desktop/security/advisories/GHSA-36mm-rh9q-cpqq
Related at Berigo
Articles
-
A backdoor built from ordinary Windows tools keeps taking new documents
Same product
2026-09-26
On 21 September 2026 Securonix described a backdoor it calls TASK#STOMP, assembled from Windows Script Host, PowerShell and the Task Scheduler. It se…
-
CISA updates the Medusa advisory, more than 500 organisations hit
Same product
2026-08-24
CISA, the FBI and the US Department of Health and Human Services updated their joint advisory on Medusa ransomware on 18 August 2026. As of April 202…
-
A fake donation app steals the logged in Telegram session
Same product
2026-08-14
On 13 August 2026 Kaspersky described an espionage campaign it attributes to the Armored Likho group, in which an app posing as a donation service is…
-
Fake GitHub repositories spread the BoryptGrab infostealer
Same product
2026-07-13
Arctic Wolf Labs found at least 292 GitHub repositories impersonating known software and security brands to distribute an information stealer.
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.