{"id":"CVE-2026-100408","state":"PUBLISHED","title":"Git for Windows: git-credential-wincred Erase Path Heap Overflow","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.","publishedAt":"2026-11-04T15:12:10.794Z","updatedAt":"2026-11-09T16:21:10.425Z","severity":{"score":4.4,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["git-for-windows git"],"affected":[{"vendor":"git-for-windows","product":"git","versions":[{"version":">= 2.43.0.windows.1, < 2.55.0.windows.3","status":"affected"}]}],"references":["https://github.com/git-for-windows/git/security/advisories/GHSA-5j7x-r6vf-jhq2","https://github.com/git-for-windows/git/commit/b4d1fb62c7e2fdcab5a018e25e51acb196eb1756","https://github.com/git-for-windows/git/releases/tag/v2.55.0.windows.3"],"weaknesses":["CWE-787"],"ingestedAt":"2026-11-09T16:28:06.269Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/100xxx/CVE-2026-100408.json","commit":"dd11360135d46e72c85e5fa00ee759c76d9c6712","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-100408","state":"PUBLISHED","datePublished":"2026-11-04T15:12:10.794Z","dateUpdated":"2026-11-09T16:21:10.425Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-09-25T20:08:33.084Z"},"containers":{"cna":{"title":"Git for Windows: git-credential-wincred Erase Path Heap Overflow","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"git-for-windows","product":"git","versions":[{"version":">= 2.43.0.windows.1, < 2.55.0.windows.3","status":"affected"}]}],"references":[{"url":"https://github.com/git-for-windows/git/security/advisories/GHSA-5j7x-r6vf-jhq2","name":"https://github.com/git-for-windows/git/security/advisories/GHSA-5j7x-r6vf-jhq2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/git-for-windows/git/commit/b4d1fb62c7e2fdcab5a018e25e51acb196eb1756","name":"https://github.com/git-for-windows/git/commit/b4d1fb62c7e2fdcab5a018e25e51acb196eb1756","tags":["x_refsource_MISC"]},{"url":"https://github.com/git-for-windows/git/releases/tag/v2.55.0.windows.3","name":"https://github.com/git-for-windows/git/releases/tag/v2.55.0.windows.3","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"LOW","baseScore":4.4,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-787","lang":"en","description":"CWE-787: Out-of-bounds Write","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-11-04T15:12:10.794Z"},"source":{"advisory":"GHSA-5j7x-r6vf-jhq2","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/git-for-windows/git/security/advisories/GHSA-5j7x-r6vf-jhq2","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-09T16:20:25.703182Z","id":"CVE-2026-100408","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-09T16:21:10.425Z"}}]}}}