CVE-2025-23040
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedGitHub 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceGitHub Desktop invokes `git clone` for repository operations and uses the git-credential protocol to handle authentication requests from Git. A vulnerability allows maliciously crafted remote URLs to cause GitHub Desktop to misinterpret credential requests, transmitting credentials (GitHub username/OAuth tokens or other stored remote host credentials) to an attacker-controlled host instead of the legitimate target host.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Local
- Complexity
- Low
- Privileges
- Low
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check installed GitHub Desktop versionOpen GitHub Desktop, go to Help > About GitHub Desktop (or on macOS GitHub Desktop > About GitHub Desktop). Note the version number displayed.Affected if Version is lower than 3.4.12 (e.g., 3.4.11, 3.4.10, or any earlier version)
-
Verify if credentials are storedCheck GitHub Desktop settings: go to File > Options (or on macOS Preferences). Look under 'Accounts' or 'Advanced' for configured authentication credentials such as GitHub accounts, personal access tokens, or stored credentials for other remote hosts.Affected if Any GitHub accounts, OAuth tokens, or remote host credentials are configured in GitHub Desktop
-
Review recent repository operationsIn GitHub Desktop, check the 'History' tab or review recently cloned repositories. Inspect the remote URL (origin) of each repository by right-clicking the repository and selecting 'Repository Settings' > 'Remote'.Affected if Any repository was cloned from a URL that is not a known, trusted GitHub domain (github.com, githubusercontent.com) or other established hosting service
You are affected if you are running GitHub Desktop version 3.4.11 or earlier, have stored credentials configured, and have interacted with or may interact with untrusted remote repository URLs.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpdate GitHub Desktop to version 3.4.12 or later to patch the vulnerability, and revoke any credentials that may have been exposed.
GitHub Desktop 3.4.12 or greater
- Check current GitHub Desktop version by navigating to GitHub Desktop > About GitHub Desktop (on Mac) or Help > About GitHub Desktop (on Windows)
- Download the latest version of GitHub Desktop from the official GitHub Desktop website or update through the application's built-in update mechanism
- Install the update, ensuring you install version 3.4.12 or later
- After updating, verify the new version by checking About GitHub Desktop again to confirm the version number is 3.4.12 or greater
- Review your stored credentials in GitHub Desktop and consider revoking any OAuth tokens or credentials that may have been exposed, as a precautionary measure
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation4.0 h
- Implementation8.0 h
- Testing3.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,880.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-23040 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-23040 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data