CONTENTS
Intro
I went looking at Git's bundle-uri feature with one question.
When a remote server hands the client a URL, who decides whether Git should open it?
In Git for Windows, a server could send a network share path where Git expected a bundle URL. Git tried to copy it as a file. Windows opened an SMB connection to the host in that path and, in my lab, sent a NetNTLMv2 response before it even checked whether the share existed. Git printed a bundle warning and carried on with the clone.
I call it Clone2Creds. It was published as CVE-2026-62960, rated High (7.4). The clone needs an affected Git for Windows build with transfer.bundleuri=true. The feature is off by default. The SMB host also has to be reachable, and Windows needs a credential it can use under the client's NTLM policy. My capture used a saved dummy network credential. Git for Windows advisory
I reported Clone2Creds privately on 21 May 2026 as a zero-day in the then-current Git for Windows release. The maintainers shipped the first patched builds and published the advisory on 11 August 2026. Microsoft also shipped the fix for the Git components bundled with Visual Studio.
As of 6 November 2026, the assets for v2.55.0.windows.3 alone had more than 6.28 million GitHub downloads. The fix shipped on three maintenance lines, listed in Fix Analysis. GitHub release data
Why I Looked at Bundle URIs
A Git bundle is a prebuilt file containing Git objects and refs. A server can point clients at one on a CDN so they download the bulk of a large repository there and fetch the remaining objects from the origin. That saves the server from building the same pack for every clone.
With protocol v2, the server advertises the bundle-uri capability and the client can ask for the list. A typical response looks like this.
This is where I started looking. One field in a remote response decides what the client opens next. Git's design document expects HTTP(S) URLs fetched with a GET request and mentions file:// as a possible future extension. I wanted to see what the client did with a value outside that contract. Bundle URI design
Root Cause
The interesting line in copy_uri_to_file() is the last one. Source in v2.53.0.windows.3
HTTP(S) goes to the downloader. A bare //host/share/x.bundle goes straight to copy_file(). The file:////host/share/x.bundle spelling ends up at the same call because stripping file:// leaves two leading slashes. On Windows, both become a UNC path to a network share.
The fallback also handles local bundles a user chose explicitly. By the time the URI reached this function, the caller had supplied a string and no indication of who chose it. The clone path passed a server's value into the same fallback.
The comment that gave it away
Git already had a guard for UNC paths in its Windows symlink handling. The comment above it names the risk. Windows symlink handling
That comment told me where to look. The symlink guard stops one route to a network share. Bundle downloads reach the Windows file APIs directly, without resolving a symlink.
Where the NTLM Response Leaves Windows
Opening the UNC path makes Windows try SMB. If the client uses NTLM, the listener sends a challenge during SMB2 SESSION_SETUP and Windows can answer with NTLMSSP_AUTHENTICATE. The NetNTLMv2 response is in that message. TREE_CONNECT comes later.
That order is the reason a made-up share name works. The listener can receive the response before Windows learns whether the share exists. The SMB host also comes from bundle.one.uri, independently of the hostname the user cloned from. Advisory impact
The captured response can be used for offline password guesses. Live relay is a separate outcome and depends on the destination and its protections, such as SMB signing. Microsoft's SMB signing overview
PoC
I used an affected Windows client, a Git server, and a custom SMB listener that recorded the NTLM exchange. The addresses below are placeholders. Substitute reachable addresses in the lab, including in the saved credential. An empty bare repository is enough to reproduce the bundle request.
On the Git server, advertise a bundle that points to the listener.
With the SMB listener running on TCP/445, save a dummy network credential for that host on Windows and run the clone. The password below is an example. Use the password you actually set when verifying your capture.
Git reports a bundle warning and continues. Here's the relevant part of the client output.
On the listener, the packet I wanted was NTLMSSP_AUTHENTICATE. The host addresses and workstation name in this excerpt are placeholders.
I repeated the test with file:////198.51.100.5/dev-cache/update.bundle and got the same result. Four slashes matter here. The first two are part of file:// and the other two survive as the UNC prefix. When the lab run is done, remove the saved entry with cmdkey /delete:198.51.100.5. Advisory reproduction
Verifying the Capture
Traffic on port 445 proves the client tried to connect. To prove it sent a genuine credential response, I recomputed NTProofStr using the known lab password, the username and domain, the listener's challenge, and the blob from the captured response.
The first 16 bytes of the NTLMv2 challenge response are the captured proof. The remaining bytes are the blob. Here's the result from my original capture.
That match ties the bytes on the wire to the dummy credential and the challenge my listener sent.
Two lab details that mattered
- In my passwordless local account setup, I saw
NTLMSSP_NEGOTIATEand noNTLMSSP_AUTHENTICATEuntil I added the saved credential. Check what credentials Windows can use and what the NTLM policy permits. The sign-in method alone does not tell you that. - Repeated failures against the same SMB host sometimes stayed in the client cache. Waiting about a minute or changing the host restored the callback in my lab.
Severity
The advisory rates this High (7.4) and lists CWE-200 and CWE-610.
The scope change is the interesting part. Git accepts the remote reference, and the data exposed belongs to Windows authentication. The user action is the clone itself. In the test, Windows used the saved credential without an authentication prompt, and the bundle warning was the only clue in the clone output. Advisory severity
Fix Analysis
The fix shipped on 11 August 2026 across three maintenance lines.
| Affected range | First patched release on the line |
|---|---|
>= 2.40.0.windows.1, < 2.53.0.windows.4 | MinGit v2.53.0.windows.4 |
>= 2.54.0.windows.1, < 2.54.0.windows.3 | MinGit v2.54.0.windows.3 |
>= 2.55.0.windows.1, < 2.55.0.windows.4 | Git for Windows v2.55.0.windows.4 |
2.55.0-rc2.windows.1 | Use v2.55.0.windows.4 or later |
The patch puts sanitize_bundle_list() in fetch_bundle_list(), where Git consumes the list it got directly from the server. bundle_uri_protocol() classifies bare, relative, and UNC paths as file. The call to is_transport_allowed(proto.buf, 0) then checks protocol.*.allow. The 0 tells Git the user did not supply the URI, so the default policy rejects those file paths. Fix commit
With the default policy on a patched client, the same clone skips the UNC path before Windows tries to open it.
What I like about the fix is where it makes the decision. At fetch_bundle_list(), Git knows who supplied these URIs. A bundle chosen through --bundle-uri or fetch.bundleURI still uses its own path. An explicit protocol.file.allow=always permits directly advertised file paths again. A later ordinary git fetch does not request the server's bundle list again. Advisory fix notes
Downstream Impact in Visual Studio and VS Code
Visual Studio ships its own Git components. That matters if you already updated Git from the terminal. git --version in PowerShell checks the copy your shell runs. For the copy bundled with the IDE, check the Visual Studio servicing release.
Microsoft Learn names CVE-2026-62960 in the August 11 servicing notes for Visual Studio 2019, 2022, and 2026. Each entry records an update to Git for Windows and MinGit.
- Visual Studio 2019 16.11.59 release notes
- Visual Studio 2022 17.14.38 release notes
- Visual Studio 2026 18.8.3 release notes
VS Code uses a Git installation on the machine. Run Git: Show Git Output from the Command Palette to see the executable path and version. Update that Git installation separately. The clone still needs an affected build with transfer.bundleuri enabled for this path to be reachable. VS Code Git prerequisites · Finding the Git executable in VS Code
Remediation
Upgrade the copy of Git that actually performs the clone.
If you have to stay on an affected build, disable server-advertised bundles in the affected clone workflow. This sets the user-level default.
Audit the effective value under the same user and environment as the clone. Use --get for the effective value and --get-all to find every definition.
An unset value defaults to false. Check pipeline definitions and wrappers for -c transfer.bundleuri=true or GIT_CONFIG_COUNT overrides, since the clone can see settings your audit command did not inherit. Blocking TCP/445 to untrusted destinations prevents the SMB exchange shown here. An edge block only covers traffic crossing that edge. Git configuration reference
For detection, I would start with outbound SMB to an unexpected destination around the time of a clone. The bundle warning helps with correlation. It cannot tell you whether the client sent a response.
Clone2Creds in a CTF
I'd put this halfway through a build-farm machine. The player has a foothold in the build network. Two Windows runners built from the same image clone from the same internal mirror. Only one runs under a service account the release pipeline trusts. The player still has to figure out which runner matters and what that account can reach.
I'd leave one line in the runner image changelog. Cold clones are fast again after the rebuild.
Disclosure
- On 21 May 2026, I reported the issue privately to the Git for Windows maintainers.
- On 26 June 2026, Johannes Schindelin authored the fix commit. Commit
- On 11 August 2026, patched releases shipped and the GitHub advisory went public. Git for Windows advisory
- On 21 August 2026, the public CVE record was published. CVE record
Final Words
The payload was one string. Git already guarded symlinks against attacker-chosen UNC paths. bundle-uri gave the server another way to make Windows open one.
Clone a repository, lose your credentials. CVE-2026-62960.