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

Medium 6.3 Published Updated

A buffer overflow in Git's wincred credential helper allows attackers to execute arbitrary code via improper bounds checking.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-48386?

CVE-2025-48386 is a medium-severity memory corruption vulnerability in git, published on 8 Jul 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

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.

Weakness: CWE-120

Which versions are affected by CVE-2025-48386?

1 open source package ship an affected version, including git.

PackageAffectedFixed in
git BitnamiAll versions2.50.1

How do I fix CVE-2025-48386?

Upgrade git to 2.50.1 or later.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-48386 being exploited?

There is no known exploitation of CVE-2025-48386 in the wild and no public exploit code.

Sources

Also known as ALPINE-CVE-2025-48386, BELL-CVE-2025-48386, BIT-git-2025-48386, CLSA-2025-1754939966, CLSA-2025-1755113387, ECHO-5b87-846d-45a5 and 3 more.

Is CVE-2025-48386 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free