# Git Credential Manager carriage-return character in remote URL allows malicious repository to leak credentials

Advisory record · `GHSA-86c2-4x57-wc8g`

- **Identifiers:** `GHSA-86c2-4x57-wc8g` · `CVE-2024-50338`
- **State:** Confirmed
- **Severity:** CVSS 7.4 High
- **Critical:** No
- **Weakness (CWE):** [CWE-200](https://cwe.mitre.org/data/definitions/200.html) · [CWE-436](https://cwe.mitre.org/data/definitions/436.html)
- **Tags:** [Information disclosure](https://agentprime.io/advisories/tag/info-disclosure.md) · [CWE-436](https://agentprime.io/advisories/tag/cwe-436.md)
- **Published:** 14 Jan 2025
- **Updated:** 4 Feb 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 14 Jan 2025, 19:40 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `git-credential-manager` (NuGet): affected `<2.6.1`; fixed in `2.6.1`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.4 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.032, the 88th percentile, on 7 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 15:22 UTC: First seen by agentprime
- 31 Oct 2026, 15:22 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-86c2-4x57-wc8g)

## Sources

- [GitHub Advisory Database: GHSA-86c2-4x57-wc8g](https://github.com/advisories/GHSA-86c2-4x57-wc8g)
- [OSV: GHSA-86c2-4x57-wc8g](https://osv.dev/vulnerability/GHSA-86c2-4x57-wc8g)
- <https://github.com/git-ecosystem/git-credential-manager/security/advisories/GHSA-86c2-4x57-wc8g>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-50338>
- <https://git-scm.com/docs/git-credential#IOFMT>
- <https://github.com/dotnet/runtime/blob/e476b43b5cb42eb44ce23b1c7b793aa361624cf6/src/libraries/System.Private.CoreLib/src/System/IO/StreamReader.cs#L926>
- <https://github.com/git-ecosystem/git-credential-manager>
- <https://github.com/git-ecosystem/git-credential-manager/blob/ae009e11a0fbef804ad9f78816d84a0bc7e052fe/src/shared/Core/StreamExtensions.cs#L138-L141>
- <https://github.com/git-ecosystem/git-credential-manager/compare/749e287571c78a2b61f926ccce6a707050871ab8...99e2f7f60e7364fe807e7925f361a81f3c47bd1b>
- <https://github.com/git-ecosystem/git-credential-manager/releases/tag/v2.6.1>
- <https://github.com/git/git/blob/6a11438f43469f3815f2f0fc997bd45792ff04c0/credential.c#L311>
- <https://learn.microsoft.com/en-us/dotnet/api/system.io.streamreader?view=net-8.0>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-86c2-4x57-wc8g>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-86c2-4x57-wc8g/>. Everything for agents: <https://agentprime.io/llms.txt>.
