Vulnerability · Published Jul 8, 2025 · Assigned by GitHub_M

CVE-2025-48386Git allows a buffer overflow in 'wincred' credential helper

Medium 6.3

In plain English

A medium-severity buffer overflow in git from git. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 38% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.3Medium
Exploit odds (30 days)0.4%top 62.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20git2.45.4-r0ALPINE-CVE-2025-48386
Alpine:v3.21git2.47.3-r0ALPINE-CVE-2025-48386
Alpine:v3.22git2.49.1-r0ALPINE-CVE-2025-48386
Alpine:v3.23git2.50.1-r0ALPINE-CVE-2025-48386
Alpine:v3.24git2.50.1-r0ALPINE-CVE-2025-48386
Ubuntu:22.04:LTSgit1:2.34.1-1ubuntu1.13USN-7626-1
Ubuntu:22.04:LTSgit1:2.34.1-1ubuntu1.13UBUNTU-CVE-2025-48386
Ubuntu:24.04:LTSgit1:2.43.0-1ubuntu7.3UBUNTU-CVE-2025-48386
Ubuntu:24.04:LTSgit1:2.43.0-1ubuntu7.3USN-7626-1

Affected products (as reported)

VendorProductVersions
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

Weakness: CWE-120 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N

References