Cloudanix VulnDB

CVE-2025-48386

Medium · 6.3

CVSS

6.3

EPSS

0.4%

Published

Jul 8, 2025

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in Git on Windows could let attackers with local access steal credentials or run harmful code by overflowing a memory buffer during credential handling.

Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Low
Impact
Data Exposure
Component
Application
Class
Buffer Overflow
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The wincred credential helper in Git fails to bounds-check the static buffer used as a key for credential storage before calling wcsncat, resulting in a buffer overflow on Windows.

Why it matters to the business

Attackers could potentially steal stored credentials or execute arbitrary code on developer workstations running vulnerable Git versions on Windows, leading to supply chain risks or data breaches.

How an attack unfolds

An attacker with local access crafts a malicious credential or triggers the helper in a way that overflows the buffer during credential operations, potentially overwriting memory to achieve code execution.

How to fix it

Update Git to one of the fixed versions: v2.43.7, v2.44.4, v2.45.4, v2.46.4, v2.47.3, v2.48.2, v2.49.1, or v2.50.1.

How to confirm the fix worked

Verify Git version is updated and test credential operations with the wincred helper.

Typical attack path

  1. Gain local access to a Windows system with vulnerable Git
  2. Trigger credential helper operations with oversized input
  3. Exploit buffer overflow for memory corruption or code execution

How to detect it

Review system logs for unexpected crashes or memory errors during Git credential operations; look for unusual processes spawned from Git.

What your security team should do

  • Prioritize updating Git on all Windows developer machines
  • Monitor for any unusual credential access attempts
  • Consider disabling wincred helper if not needed

The record

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

Ecosystem Package Introduced Fixed
Alpine:v3.19 git 0 2.43.7-r0
Alpine:v3.20 git 0 2.45.4-r0
Alpine:v3.21 git 0 2.47.3-r0
Alpine:v3.22 git 0 2.49.1-r0
Bitnami git 0 2.50.1
Debian:11 git 0 No fix
Debian:12 git 0 No fix
Debian:13 git 0 No fix
openSUSE:Tumbleweed git 0 2.50.1-1.1

Related vulnerabilities