CVE-2026-100408

Git for Windows: git-credential-wincred Erase Path Heap Overflow

Published Nov 4, 2026 CVSS 3.1 · 4.4 Medium EPSS < 1% KEV · Not listed
Description
Git for Windows is the Windows port of Git. From 2.43.0.windows.1 until 2.55.0.windows.3, when a matching git:* credential exists in Windows Credential Manager and a git-credential-wincred erase input includes a password field, the operation in contrib/credential/wincred/git-credential-wincred.c allocates a buffer of exactly CredentialBlobSize bytes in match_cred_password() and then uses wcsncpy_s() to copy the corresponding number of wide characters plus a terminating NUL. The destination capacity is also supplied in bytes instead of WCHAR elements, allowing a fixed two-byte NUL write past the allocation before the password comparison determines whether CredDeleteW() should remove the credential; erase without a password field does not enter this comparison path. The helper can terminate with Windows heap-corruption status, and git credential reject can appear successful while the rejected credential remains stored. This issue is fixed in version 2.55.0.windows.3.

Analysis

AI-generated

Technical impact

The flaw in Git for Windows’ wincred helper is a heap buffer overflow that occurs when an erase command is issued for a git:* credential that contains a password field. Inside the erase routine a buffer is allocated to match the CredentialBlobSize, and then wcsncpy_s copies the password plus an extra terminating NUL using the size in bytes rather than wide character count. This off‑by‑one write corrupts the heap after the buffer, potentially allowing the credential to remain stored while the process corrupts memory. The vulnerability is a classic CWE‑787 boundary-misuse overflow and does not directly grant code execution but can lead to crashes or indirect behavior changes.

Affected Systems

Affected systems are Git for Windows releases from 2.43.0.windows.1 up to, but not including, 2.55.0.windows.3.

Risk and Exploitability

The CVSS score of 4.4 indicates a moderate impact. EPSS is not available, and the flaw is not listed in the CISA KEV catalog. Based on the description, it is inferred that local user access is required to trigger the overflow, as the vulnerable code runs during a local erase operation on a stored credential. The overflow may lead to increased application instability but no confirmed privilege escalation or data exfiltration is documented. Users on affected versions therefore face a low‑to‑moderate risk that is mitigated entirely by updating to the patched release.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Git for Windows 2.55.0.windows.3 or later
  • Remove all stored git:* credentials from Windows Credential Manager to avoid the overflow condition
  • Configure Git to use an alternative credential helper, such as store or cache, by setting credential.helper appropriately

Generated by OpenCVE AI on November 4, 2026 at 17:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Gitforwindows
Gitforwindows git
Vendors & Products Gitforwindows
Gitforwindows git
Type Values Removed Values Added
Description Git for Windows is the Windows port of Git. From 2.43.0.windows.1 until 2.55.0.windows.3, when a matching git:* credential exists in Windows Credential Manager and a git-credential-wincred erase input includes a password field, the operation in contrib/credential/wincred/git-credential-wincred.c allocates a buffer of exactly CredentialBlobSize bytes in match_cred_password() and then uses wcsncpy_s() to copy the corresponding number of wide characters plus a terminating NUL. The destination capacity is also supplied in bytes instead of WCHAR elements, allowing a fixed two-byte NUL write past the allocation before the password comparison determines whether CredDeleteW() should remove the credential; erase without a password field does not enter this comparison path. The helper can terminate with Windows heap-corruption status, and git credential reject can appear successful while the rejected credential remains stored. This issue is fixed in version 2.55.0.windows.3.
Title Git for Windows: git-credential-wincred Erase Path Heap Overflow
Weaknesses CWE-787
References
Metrics cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 9, 2026, 4:21 PM
Reserved
Sep 25, 2026, 8:08 PM
Status
Awaiting Analysis
Published
Nov 4, 2026, 3:17 PM
Modified
Nov 12, 2026, 8:04 PM
Severity
Moderate
Public date
Nov 4, 2026, 3:12 PM