CVE-2025-48386Git allows a buffer overflow in 'wincred' credential helper
Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals. The wincred credential helper uses a static buffer (target) as a unique key for storing and comparing against internal storage. This credential helper does not properly bounds check the available space remaining in the buffer before appending to it with wcsncat(), leading to potential buffer overflows. This vulnerability is fixed in v2.43.7, v2.44.4, v2.45.4, v2.46.4, v2.47.3, v2.48.2, v2.49.1, and v2.50.1.
What to do
Fixed builds are available from Alpine, Ubuntu: see the table below for the fixed version per release.
Red Hat, Ubuntu have 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 24.04 | git | Fixed | 1:2.43.0-1ubuntu7.3 | UBUNTU-CVE-2025-48386 |
| Ubuntu 22.04 | git | Fixed | 1:2.34.1-1ubuntu1.13 | UBUNTU-CVE-2025-48386 |
| Ubuntu 20.04 | git | Fix pending | 1:2.25.1-1ubuntu3.14+esm1 (Ubuntu Pro) | UBUNTU-CVE-2025-48386 |
| Ubuntu 18.04 | git | Fix pending | 1:2.17.1-1ubuntu0.18+esm2 (Ubuntu Pro) | UBUNTU-CVE-2025-48386 |
| Ubuntu 16.04 | git | Fix pending | 1:2.7.4-0ubuntu1.10+esm9 (Ubuntu Pro) | UBUNTU-CVE-2025-48386 |
| Red Hat Enterprise Linux 10 | git | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | git-all | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | git-core | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | git-core-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | git-credential-libsecret | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | git-daemon | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | git-email | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | git-gui | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | git-instaweb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | git-subtree | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | git-svn | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | gitk | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | gitweb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | perl-Git | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | perl-Git-SVN | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | git | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | git-all | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | git-core | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | git-core-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | git-credential-libsecret | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | git-daemon | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | git-email | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | git-gui | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | git-instaweb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | git-subtree | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | git-svn | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | gitk | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | gitweb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | perl-Git | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | perl-Git-SVN | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | git | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | git-all | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | git-core | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | git-core-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | git-credential-libsecret | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | git-daemon | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | git-email | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | git-gui | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | git-instaweb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | git-subtree | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | git-svn | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | gitk | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | gitweb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | perl-Git | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | perl-Git-SVN | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | emacs-git | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | emacs-git-el | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | git | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | git-all | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | git-bzr | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | git-cvs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | git-daemon | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | git-email | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | git-gnome-keyring | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | git-gui | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | git-hg | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | git-instaweb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | git-p4 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | git-svn | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | gitk | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | gitweb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | perl-Git | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | perl-Git-SVN | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | emacs-git | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | emacs-git-el | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | git | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | git-all | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | git-cvs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | git-daemon | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | git-email | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | git-gui | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | git-svn | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | gitk | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | gitweb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | perl-Git | Fix pending Fix deferred | ||
| Alpine Linux 3.24 | git | Fixed | 2.50.1-r0 | ALPINE-CVE-2025-48386 |
| Alpine Linux 3.23 | git | Fixed | 2.50.1-r0 | ALPINE-CVE-2025-48386 |
| Alpine Linux 3.22 | git | Fixed | 2.49.1-r0 | ALPINE-CVE-2025-48386 |
| Alpine Linux 3.21 | git | Fixed | 2.47.3-r0 | ALPINE-CVE-2025-48386 |
| Alpine Linux 3.20 | git | Fixed | 2.45.4-r0 | ALPINE-CVE-2025-48386 |
| Alpine Linux 3.19 | git | Fixed | 2.43.7-r0 | ALPINE-CVE-2025-48386 |
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: affected: < 2.43.7, >= 2.44.0-rc0, < 2.44.4, >= 2.45.0-rc0, < 2.45.4, >= 2.46.0-rc0, < 2.46.4, >= 2.47.0-rc0, < 2.47.3, >= 2.48.0-rc0, < 2.48.2
References
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.