Skip to content
OpenAdvisories
Medium · 6.3 CVE-2025-48386 EUVD-2025-20679

Git allows a buffer overflow in 'wincred' credential helper

Published Jul 8, 2025 · Updated Nov 4, 2025 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
git git < 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, >= 2.49.0-rc0, < 2.49.1, >= 2.50.0-rc0, < 2.50.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS git 1:2.43.0-1ubuntu7.3 USN-7626-1
Ubuntu 22.04 LTS git 1:2.34.1-1ubuntu1.13 USN-7626-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS git 1:2.25.1-1ubuntu3.14+esm1 USN-7626-1
Ubuntu Pro 18.04 LTS git 1:2.17.1-1ubuntu0.18+esm2 USN-7626-1
Ubuntu Pro 16.04 LTS git 1:2.7.4-0ubuntu1.10+esm9 USN-7626-1
ReleasePackageFixed inAdvisory
SLE Micro 6.1 git 2.51.0-slfo.1.1_1.1 SUSE-SU-2025:20855-1
SLE Micro 6.0 git 2.51.0-1.1 SUSE-SU-2025:20721-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed git 2.50.1-1.1 openSUSE-SU-2025:15337-1
ReleasePackageFixed inAdvisory
Alpine v3.24 git 2.50.1-r0 —
Alpine v3.23 git 2.50.1-r0 —
Alpine v3.22 git 2.49.1-r0 —
Alpine v3.21 git 2.47.3-r0 —
Alpine v3.20 git 2.45.4-r0 —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 git 2.43.7-r0 —

Advisories 6

References