Buffer Overflow Affecting git/git package, versions [,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)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-GITGIT-10664668
  • published9 Jul 2025
  • disclosed8 Jul 2025
  • creditDavid Leadbeater

Introduced: 8 Jul 2025

NewCVE-2025-48386  (opens in a new tab)
CWE-120  (opens in a new tab)

How to fix?

Upgrade git/git to version 2.43.7, 2.44.4, 2.45.4, 2.46.4, 2.47.3, 2.48.2, 2.49.1, 2.50.1 or higher.

Overview

Affected versions of this package are vulnerable to Buffer Overflow via improper bounds checking in the wincred credential helper. An attacker can cause a buffer overflow by supplying crafted input that exceeds the static buffer's capacity when appended using the wcsncat function.

Workaround

For users that are unable to upgrade to the fixed version it is recommended to avoid using the wincred helper in the meantime if upgrading is not possible.

References

CVSS Base Scores

version 4.0
version 3.1