CVE-2026-100408Git for Windows: git-credential-wincred Erase Path Heap Overflow
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.
What to do
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | git | Fix pending | UBUNTU-CVE-2026-100408 | |
| Ubuntu 26.04 | git | Under investigation | UBUNTU-CVE-2026-100408 | |
| Ubuntu 24.04 | git | Under investigation | UBUNTU-CVE-2026-100408 | |
| Ubuntu 22.04 | git | Under investigation | UBUNTU-CVE-2026-100408 | |
| Ubuntu 20.04 | git | Fix pending | UBUNTU-CVE-2026-100408 | |
| Ubuntu 18.04 | git | Fix pending | UBUNTU-CVE-2026-100408 | |
| Ubuntu 16.04 | git | Fix pending | UBUNTU-CVE-2026-100408 | |
| Red Hat Enterprise Linux 10 | git | Not affected | ||
| Red Hat Enterprise Linux 10 | git-all | Not affected | ||
| Red Hat Enterprise Linux 10 | git-core | Not affected | ||
| Red Hat Enterprise Linux 10 | git-core-doc | Not affected | ||
| Red Hat Enterprise Linux 10 | git-credential-libsecret | Not affected | ||
| Red Hat Enterprise Linux 10 | git-daemon | Not affected | ||
| Red Hat Enterprise Linux 10 | git-email | Not affected | ||
| Red Hat Enterprise Linux 10 | git-gui | Not affected | ||
| Red Hat Enterprise Linux 10 | git-instaweb | Not affected | ||
| Red Hat Enterprise Linux 10 | git-subtree | Not affected | ||
| Red Hat Enterprise Linux 10 | git-svn | Not affected | ||
| Red Hat Enterprise Linux 10 | gitk | Not affected | ||
| Red Hat Enterprise Linux 10 | gitweb | Not affected | ||
| Red Hat Enterprise Linux 10 | perl-Git | Not affected | ||
| Red Hat Enterprise Linux 10 | perl-Git-SVN | Not affected | ||
| Red Hat Enterprise Linux 9 | git | Not affected | ||
| Red Hat Enterprise Linux 9 | git-all | Not affected | ||
| Red Hat Enterprise Linux 9 | git-core | Not affected | ||
| Red Hat Enterprise Linux 9 | git-core-doc | Not affected | ||
| Red Hat Enterprise Linux 9 | git-credential-libsecret | Not affected | ||
| Red Hat Enterprise Linux 9 | git-daemon | Not affected | ||
| Red Hat Enterprise Linux 9 | git-email | Not affected | ||
| Red Hat Enterprise Linux 9 | git-gui | Not affected | ||
| Red Hat Enterprise Linux 9 | git-instaweb | Not affected | ||
| Red Hat Enterprise Linux 9 | git-subtree | Not affected | ||
| Red Hat Enterprise Linux 9 | git-svn | Not affected | ||
| Red Hat Enterprise Linux 9 | gitk | Not affected | ||
| Red Hat Enterprise Linux 9 | gitweb | Not affected | ||
| Red Hat Enterprise Linux 9 | perl-Git | Not affected | ||
| Red Hat Enterprise Linux 9 | perl-Git-SVN | Not affected | ||
| Red Hat Enterprise Linux 8 | git | Not affected | ||
| Red Hat Enterprise Linux 8 | git-all | Not affected | ||
| Red Hat Enterprise Linux 8 | git-core | Not affected | ||
| Red Hat Enterprise Linux 8 | git-core-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | git-credential-libsecret | Not affected | ||
| Red Hat Enterprise Linux 8 | git-daemon | Not affected | ||
| Red Hat Enterprise Linux 8 | git-email | Not affected | ||
| Red Hat Enterprise Linux 8 | git-gui | Not affected | ||
| Red Hat Enterprise Linux 8 | git-instaweb | Not affected | ||
| Red Hat Enterprise Linux 8 | git-subtree | Not affected | ||
| Red Hat Enterprise Linux 8 | git-svn | Not affected | ||
| Red Hat Enterprise Linux 8 | gitk | Not affected | ||
| Red Hat Enterprise Linux 8 | gitweb | Not affected | ||
| Red Hat Enterprise Linux 8 | perl-Git | Not affected | ||
| Red Hat Enterprise Linux 8 | perl-Git-SVN | Not affected | ||
| Red Hat Enterprise Linux 7 | emacs-git | Not affected | ||
| Red Hat Enterprise Linux 7 | emacs-git-el | Not affected | ||
| Red Hat Enterprise Linux 7 | git | Not affected | ||
| Red Hat Enterprise Linux 7 | git-all | Not affected | ||
| Red Hat Enterprise Linux 7 | git-bzr | Not affected | ||
| Red Hat Enterprise Linux 7 | git-cvs | Not affected | ||
| Red Hat Enterprise Linux 7 | git-daemon | Not affected | ||
| Red Hat Enterprise Linux 7 | git-email | Not affected | ||
| Red Hat Enterprise Linux 7 | git-gnome-keyring | Not affected | ||
| Red Hat Enterprise Linux 7 | git-gui | Not affected | ||
| Red Hat Enterprise Linux 7 | git-hg | Not affected | ||
| Red Hat Enterprise Linux 7 | git-instaweb | Not affected | ||
| Red Hat Enterprise Linux 7 | git-p4 | Not affected | ||
| Red Hat Enterprise Linux 7 | git-svn | Not affected | ||
| Red Hat Enterprise Linux 7 | gitk | Not affected | ||
| Red Hat Enterprise Linux 7 | gitweb | Not affected | ||
| Red Hat Enterprise Linux 7 | perl-Git | Not affected | ||
| Red Hat Enterprise Linux 7 | perl-Git-SVN | Not affected | ||
| Red Hat Enterprise Linux 6 | emacs-git | Not affected | ||
| Red Hat Enterprise Linux 6 | emacs-git-el | Not affected | ||
| Red Hat Enterprise Linux 6 | git | Not affected | ||
| Red Hat Enterprise Linux 6 | git-all | Not affected | ||
| Red Hat Enterprise Linux 6 | git-cvs | Not affected | ||
| Red Hat Enterprise Linux 6 | git-daemon | Not affected | ||
| Red Hat Enterprise Linux 6 | git-email | Not affected | ||
| Red Hat Enterprise Linux 6 | git-gui | Not affected | ||
| Red Hat Enterprise Linux 6 | git-svn | Not affected | ||
| Red Hat Enterprise Linux 6 | gitk | Not affected | ||
| Red Hat Enterprise Linux 6 | gitweb | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-Git | Not affected |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- git-for-windows git: affected: >= 2.43.0.windows.1, < 2.55.0.windows.3
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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.