cve.bz

CVE-2026-53586 libgit2 libgit2: Insufficiently Protected Credentials

6.5 mediumEPSS 0.3%

Medium (6.5) in libgit2 libgit2. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 20th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-08-21. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
CWE-522 Insufficiently Protected Credentials
CWE-601 URL Redirection to Untrusted Site (Open Redirect)
OWASP Top 10
A01:2025 Broken Access Control, A06:2025 Insecure Design
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-53586 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-53586?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-53586?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-53586 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
libgit2< 1.8.6
libgit2>= 1.9.0, < 1.9.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12libgit21.5.1+ds-1+deb12u2DEBIAN-CVE-2026-53586
Debian13libgit21.9.0+ds-2+deb13u1DEBIAN-CVE-2026-53586
Debian14libgit21.9.6+ds-1DEBIAN-CVE-2026-53586
Ubuntu24.04:LTSlibgit21.7.2+ds-1ubuntu3.1UBUNTU-CVE-2026-53586
Ubuntu26.04:LTSlibgit21.9.1+ds-1ubuntu1.1UBUNTU-CVE-2026-53586
UbuntuPro:20.04:LTSlibgit20.28.4+dfsg.1-2ubuntu0.1+esm1UBUNTU-CVE-2026-53586
UbuntuPro:22.04:LTSlibgit21.1.0+dfsg.1-4.1ubuntu0.1+esm1UBUNTU-CVE-2026-53586
Red Hathummingbird:1libgit2, libgit2-devel0:1.9.7-1.hum1RHSA-2026:59361
openSUSETumbleweedlibgit21.9.6-1.1openSUSE-SU-2026:11315-1
Alpinev3.23, v3.24libgit21.9.6-r0ALPINE-CVE-2026-53586
Azure Linux3libgit21.7.2-3AZL-96962
Alpaquita25, streamlibgit21.9.6-r0BELL-CVE-2026-53586

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Hardened Imageslibgit2-main-1.9.7-1.hum1Fixed 2026-08-25RHSA-2026:59361
Red Hat Enterprise Linux 10rustFix deferred
Red Hat Enterprise Linux 8libgit2Fix deferred
Red Hat Enterprise Linux 9rustFix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3libgit2Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rustFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-53586.

Attack patterns (CAPEC)

  • CAPEC-178 Cross-Site Flashing Likelihood: Medium · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-522 (13), CWE-200 (59).

References

Check your stackJSON