CVE-2024-50338 — Vulnerability in git-credential-manager — CVE Details
Git Credential Manager carriage-return character in remote URL allows malicious repository to leak credentials
Summary
Advisory Timeline
- First published January 14, 2025 (636 days ago).
- Last revised February 4, 2026 — 385 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
dotnet add package git-credential-manager --version 2.6.1
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: nuget (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| git-credential-manager | nuget | 0.1.0, 2.0.798-gd247513b19, 2.0.866, 2.0.877 (+14 more) | 2.6.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-200Information ExposureMITRE
- CWE-436
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.4 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
References
- https://github.com/git-ecosystem/git-credential-manager/security/advisories/GHSA-86c2-4x57-wc8gWEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-50338ADVISORY
- https://git-scm.com/docs/git-credential#IOFMTWEB
- https://github.com/dotnet/runtime/blob/e476b43b5cb42eb44ce23b1c7b793aa361624cf6/src/libraries/System.Private.CoreLib/src/System/IO/StreamReader.cs#L926WEB
- https://github.com/git-ecosystem/git-credential-managerPACKAGE
- https://github.com/git-ecosystem/git-credential-manager/blob/ae009e11a0fbef804ad9f78816d84a0bc7e052fe/src/shared/Core/StreamExtensions.cs#L138-L141WEB
- https://github.com/git-ecosystem/git-credential-manager/compare/749e287571c78a2b61f926ccce6a707050871ab8...99e2f7f60e7364fe807e7925f361a81f3c47bd1bWEB
- https://github.com/git-ecosystem/git-credential-manager/releases/tag/v2.6.1WEB
- https://github.com/git/git/blob/6a11438f43469f3815f2f0fc997bd45792ff04c0/credential.c#L311WEB
- https://learn.microsoft.com/en-us/dotnet/api/system.io.streamreader?view=net-8.0WEB
Frequently Asked Questions
- What is CVE-2024-50338?
- Git Credential Manager carriage-return character in remote URL allows malicious repository to leak credentials This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.4/10).
- How do I check if my project is affected by CVE-2024-50338?
- CVE-2024-50338 affects git-credential-manager. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-50338 and 200,000+ other known vulnerabilities.
Severity & Exploitability
High exploitability or significant impact. Prioritize remediation within days.
Also Known As
Related CVEs
- CVE-2026-106112HIGH
ImageSharp: ICC LUT16 output channel count can write beyond Vector4
- CVE-2026-106115HIGH
ImageSharp: TIFF CCITT T6 encoder writes beyond an undersized output buffer
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies