CVE-2026-53586
CVE-2026-53586 — libgit2: HTTP transport can leak credentials to an offsite redirect target
libgit2 is a portable C implementation of the Git core methods provided as a linkable library with a solid API, allowing to build Git functionality into your application. Prior to 1.8.6 and 1.9.5, the built-in HTTP transport in src/libgit2/transports/http.c follows an offsite initial redirect, and handle_remote_auth and handle_auth pass transport->owner->url instead of transport->server.url to the credential callback when the redirected host returns 401 Unauthorized. A callback that scopes credentials to the original trusted URL can therefore return GIT_CREDENTIAL_USERPASS_PLAINTEXT credentials that libgit2 stores in transport->server.cred and sends as an Authorization header to the redirected host. An attacker who controls a trusted Git host or an open redirect on that host can disclose HTTP Basic credentials, personal access tokens, or equivalent credentials. This issue is fixed in…
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
6.5
MEDIUM
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
None
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Partial
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 6.5 | CVSS 3.1 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-200
- CWE-522
- CWE-601
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
- T1562.003Impair Defenses: Impair Command History Logging
- T1574.006Hijack Execution Flow: Dynamic Linker Hijacking
- T1574.007Hijack Execution Flow: Path Interception by PATH Environment Variable
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Search application, proxy, and WAF logs for requests touching /libgit2/transports/http.c.
References
6 on the record
- github.com/libgit2/libgit2/security/advisories/GHSA-2889-x8f6-mc4x
x_refsource_CONFIRM
- github.com/libgit2/libgit2/commit/07de6a7e438f95ac9a6efd3222a82117e871ed27
x_refsource_MISC
- github.com/libgit2/libgit2/commit/af2b29ad0a74d5bac9751376879ddaf848136d3b
x_refsource_MISC
- github.com/libgit2/libgit2/commit/c1507abc44647b3acd832a33a5b1c8c9f5ba8821
x_refsource_MISC
- github.com/libgit2/libgit2/releases/tag/v1.8.6
x_refsource_MISC
- github.com/libgit2/libgit2/releases/tag/v1.9.5
x_refsource_MISC
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2015-0310 Adobe Flash Player ASLR Bypass VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2021-30116 Kaseya Virtual System/Server Administrator (VSA) Information Disclosure VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2021-22681 Rockwell Multiple Products Insufficient Protected Credentials VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2020-29583 Zyxel Multiple Products Use of Hard-Coded Credentials VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2017-9248 Progress Telerik UI for ASP.NET AJAX and Sitefinity Cryptographic Weakness VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2014-1812 Microsoft Windows Group Policy Preferences Password Privilege Escalation VulnerabilityCVSS 9.0 · CISA KEV
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.