CVE-2026-100407

Git for Windows: git-credential-wincred OAuth Store 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.44.0.windows.1 until 2.55.0.windows.3, the git-credential-wincred store operation in contrib/credential/wincred/git-credential-wincred.c uses _scwprintf() to size a formatted wide-character credential buffer without space for the terminating NUL when both password and oauth_refresh_token are present. The operation also passes a byte count to _snwprintf_s() where a wide-character count is required, allowing the terminator to be written one WCHAR past the heap allocation before CredWriteW() persists the credential. The resulting fixed two-byte NUL overwrite can terminate the helper with Windows heap-corruption status and can cause git credential approve to report success even though the OAuth credential was not stored. This issue is fixed in version 2.55.0.windows.3.

Analysis

AI-generated

Technical impact

The vulnerability is a heap overflow in the git‑credential‑wincred store operation in Git for Windows. When a user stores a credential that includes both a password and an OAuth refresh token, the helper incorrectly calculates the size of a wide‑character buffer and writes the terminating NUL character one wide character past the allocated heap edge. This overrun can corrupt the heap, causing git credential approve to report success even though the OAuth credential was never written. The impact is local heap corruption and a logical error that may allow credentials to be mis‑reported as stored.

Affected Systems

The problem exists in Git for Windows build numbers 2.44.0.windows.1 through the latest pre‑fix release. It is fixed in build 2.55.0.windows.3. All users deploying Git for Windows in that range who use the git‑credential‑wincred helper to persist OAuth credentials are impacted.

Risk and Exploitability

The CVSS score of 4.4 indicates moderate severity. Exploitation requires local execution of the Git credential helper with a payload that contains both credential fields. No network attack vector is documented, and the EPSS score is not available. The vulnerability is not listed in CISA’s KEV catalog. Nonetheless, a local attacker can trigger heap corruption or cause a denial of service on the user’s machine by manipulating stored credentials.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Git for Windows to 2.55.0.windows.3 or later to receive the heap‑overflow fix.
  • If an upgrade is not possible, avoid using git‑credential‑wincred with credentials that simultaneously contain a password and an OAuth refresh token, or switch to a different credential helper such as git‑credential‑manager‑core.
  • If immediate upgrade or change is infeasible, monitor for crashes or credential‑write failures and consider temporarily disabling the wincred helper until a patch can be applied.

Generated by OpenCVE AI on November 4, 2026 at 16:21 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.44.0.windows.1 until 2.55.0.windows.3, the git-credential-wincred store operation in contrib/credential/wincred/git-credential-wincred.c uses _scwprintf() to size a formatted wide-character credential buffer without space for the terminating NUL when both password and oauth_refresh_token are present. The operation also passes a byte count to _snwprintf_s() where a wide-character count is required, allowing the terminator to be written one WCHAR past the heap allocation before CredWriteW() persists the credential. The resulting fixed two-byte NUL overwrite can terminate the helper with Windows heap-corruption status and can cause git credential approve to report success even though the OAuth credential was not stored. This issue is fixed in version 2.55.0.windows.3.
Title Git for Windows: git-credential-wincred OAuth Store 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 5, 2026, 7:07 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:07 PM