CVE-2026-53586
published medium CVSS 3.1 · 6.5libgit2: HTTP transport can leak credentials to an offsite redirect target
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| libgit2 | — | libgit2< 1.8.6 · >= 1.9.0, < 1.9.5 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2-2026-3865 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-2065 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-2083 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | libgit2 | Fixed | 1.9.6-r0 | Package fix record |
| Debian | bookworm | libgit2 | Advisory build | 1.5.1+ds-1+deb12u2 | DLA-4831-1 |
Show 37 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | focal | libgit2 | Advisory build | 0.28.4+dfsg.1-2ubuntu0.1+esm1 | USN-8628-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgit2-1_9aarch64 | Advisory build | 1.9.6-1.1 | OPENSUSE-SU-2026:11315-1 |
| Amazon Linux | AL2023 | libgit2aarch64 | Listed in advisory | Not stated | ALAS2023-2026-2083 |
| Alpine Linux | v3.23 | libgit2 | Fixed | 1.9.6-r0 | Package fix record |
| Alpine Linux | v3.24 | libgit2 | Fixed | 1.9.6-r0 | Package fix record |
| Debian | trixie | libgit2 | Advisory build | 1.9.0+ds-2+deb13u1 | DSA-6453-1 |
| Ubuntu | jammy | libgit2 | Advisory build | 1.1.0+dfsg.1-4.1ubuntu0.1+esm1 | USN-8628-1 |
| Ubuntu | noble | libgit2 | Advisory build | 1.7.2+ds-1ubuntu3.1 | USN-8628-1 |
| Ubuntu | resolute | libgit2 | Advisory build | 1.9.1+ds-1ubuntu1.1 | USN-8628-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgit2-1_9ppc64le | Advisory build | 1.9.6-1.1 | OPENSUSE-SU-2026:11315-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgit2-1_9s390x | Advisory build | 1.9.6-1.1 | OPENSUSE-SU-2026:11315-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgit2-1_9x86_64 | Advisory build | 1.9.6-1.1 | OPENSUSE-SU-2026:11315-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgit2-develaarch64 | Advisory build | 1.9.6-1.1 | OPENSUSE-SU-2026:11315-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgit2-develppc64le | Advisory build | 1.9.6-1.1 | OPENSUSE-SU-2026:11315-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgit2-devels390x | Advisory build | 1.9.6-1.1 | OPENSUSE-SU-2026:11315-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgit2-develx86_64 | Advisory build | 1.9.6-1.1 | OPENSUSE-SU-2026:11315-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgit2-toolsaarch64 | Advisory build | 1.9.6-1.1 | OPENSUSE-SU-2026:11315-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgit2-toolsppc64le | Advisory build | 1.9.6-1.1 | OPENSUSE-SU-2026:11315-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgit2-toolss390x | Advisory build | 1.9.6-1.1 | OPENSUSE-SU-2026:11315-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgit2-toolsx86_64 | Advisory build | 1.9.6-1.1 | OPENSUSE-SU-2026:11315-1 |
| Ubuntu | focal | libgit2-28 | Advisory build | 0.28.4+dfsg.1-2ubuntu0.1+esm1 | USN-8628-1 |
| Ubuntu | jammy | libgit2-1.1 | Advisory build | 1.1.0+dfsg.1-4.1ubuntu0.1+esm1 | USN-8628-1 |
| Ubuntu | jammy | libgit2-fixtures | Advisory build | 1.1.0+dfsg.1-4.1ubuntu0.1+esm1 | USN-8628-1 |
| Ubuntu | noble | libgit2-1.7 | Advisory build | 1.7.2+ds-1ubuntu3.1 | USN-8628-1 |
| Ubuntu | noble | libgit2-fixtures | Advisory build | 1.7.2+ds-1ubuntu3.1 | USN-8628-1 |
| Ubuntu | resolute | libgit2-1.9 | Advisory build | 1.9.1+ds-1ubuntu1.1 | USN-8628-1 |
| Ubuntu | resolute | libgit2-fixtures | Advisory build | 1.9.1+ds-1ubuntu1.1 | USN-8628-1 |
| Amazon Linux | AL2023 | libgit2src | Listed in advisory | Not stated | ALAS2023-2026-2083 |
| Amazon Linux | AL2023 | libgit2x86_64 | Listed in advisory | Not stated | ALAS2023-2026-2083 |
| Amazon Linux | AL2 | rustaarch64 | Listed in advisory | Not stated | ALAS2-2026-3865 |
| Amazon Linux | AL2 | rustnoarch | Listed in advisory | Not stated | ALAS2-2026-3865 |
| Amazon Linux | AL2 | rustsrc | Listed in advisory | Not stated | ALAS2-2026-3865 |
| Amazon Linux | AL2 | rustx86_64 | Listed in advisory | Not stated | ALAS2-2026-3865 |
| Amazon Linux | AL2023 | rustaarch64 | Listed in advisory | Not stated | ALAS2023-2026-2065 |
| Amazon Linux | AL2023 | rustnoarch | Listed in advisory | Not stated | ALAS2023-2026-2065 |
| Amazon Linux | AL2023 | rustsrc | Listed in advisory | Not stated | ALAS2023-2026-2065 |
| Amazon Linux | AL2023 | rustx86_64 | Listed in advisory | Not stated | ALAS2023-2026-2065 |
Description
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 versions 1.8.6 and 1.9.5.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| libgit2 | libgit2 | < 1.8.6 (affected)>= 1.9.0, < 1.9.5 (affected) | GitHub_M · cna |
Weaknesses
3- CWE-200 CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
- CWE-522 CWE-522: Insufficiently Protected Credentials
- CWE-601 CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
References
6- https://github.com/libgit2/libgit2/commit/07de6a7e438f95ac9a6efd3222a82117e871ed27
- https://github.com/libgit2/libgit2/commit/af2b29ad0a74d5bac9751376879ddaf848136d3b
- https://github.com/libgit2/libgit2/commit/c1507abc44647b3acd832a33a5b1c8c9f5ba8821
- https://github.com/libgit2/libgit2/releases/tag/v1.8.6
- https://github.com/libgit2/libgit2/releases/tag/v1.9.5
- https://github.com/libgit2/libgit2/security/advisories/GHSA-2889-x8f6-mc4x
Provider assertions
2GitHub_M · cna
libgit2: HTTP transport can leak credentials to an offsite redirect target
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 828bd3425ff88c0a97fed17ed145926b074c6583e0cf6d14a51c2a40ef8f83ad
- Ingested
- 23 Sep 2026, 09:19:58 UTC
- Source record
- Official CVE record