{"id":"CVE-2026-100407","published":"2026-11-04T15:07:59Z","modified":"2026-11-05T19:07:18Z","title":"Git for Windows: git-credential-wincred OAuth Store Heap Overflow","vendor":"git-for-windows","product":"git","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00117,"percentile":0.01663,"provenance":"source"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"}],"references":[{"url":"https://github.com/git-for-windows/git/security/advisories/GHSA-v3h4-vrpr-rh9x","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/git-for-windows/git/commit/52ca1113d651127f89477a8763f86ab20f645e1d","tags":["x_refsource_MISC"]},{"url":"https://github.com/git-for-windows/git/releases/tag/v2.55.0.windows.3","tags":["x_refsource_MISC"]}],"priority":{"score":3.4,"factors":[{"name":"EPSS percentile","points":0.33},{"name":"CVSS severity","points":3.08}]},"vendorSlug":"git-for-windows","affectedVersions":[{"vendor":"git-for-windows","product":"git","versions":[">= 2.44.0.windows.1, < 2.55.0.windows.3"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-04T20:41:14.929892Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-116936","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-git-for-windows-git-cve-2026-100407","children":[{"from":"CVE-2026-100407","to":"CVE-2026-100408","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["contrib/credential/wincred/git-credential-wincred.c"],"commits":["https://github.com/git-for-windows/git/commit/52ca1113d651127f89477a8763f86ab20f645e1d","https://github.com/git-for-windows/git/commit/b4d1fb62c7e2fdcab5a018e25e51acb196eb1756"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.51,"basis":"same product + CWE + description similarity"}]}]}}