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.
Published: 2026-11-04
Score: 4.4 Medium
EPSS: n/a
KEV: No
Impact: Heap Corruption and Credential Mis‑reporting
Action: Apply Patch
AI Analysis

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.

Generated by OpenCVE AI on November 4, 2026 at 16:21 UTC.

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 yet.

History

Wed, 04 Nov 2026 15:15:00 +0000

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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-11-04T15:07:59.401Z

Reserved: 2026-09-25T20:08:33.084Z

Link: CVE-2026-100407

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-04T15:17:21.797

Modified: 2026-11-04T15:17:21.797

Link: CVE-2026-100407

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-04T16:30:13Z

Weaknesses