Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-53586— libgit2: HTTP transport can leak credentials to an offsite redirect target

Quick assessment

Affected
libgit2 libgit2
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

libgit2是Libgit2团队开源的一款可嵌入的Git版本控制库。 libgit2 1.8.6之前版本和1.9.0至1.9.5之前版本存在安全漏洞,该漏洞源于内置HTTP传输遵循站外初始重定向,并将transport->owner->url错误地传递给凭据回调,可能导致攻击者泄露HTTP Basic凭据、个人访问令牌等。

CVSS 6.5 · Medium EPSS 0.28% · P19

Affected Version Matrix 2

VendorProduct Version RangeStatus
libgit2 libgit2 < 1.8.6 affected
>= 1.9.0, < 1.9.5 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-53586

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
libgit2: HTTP transport can leak credentials to an offsite redirect target
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
信息暴露
Source: CVE Program / CVE List V5
Vulnerability Title
libgit2 信息泄露漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
libgit2是Libgit2团队开源的一款可嵌入的Git版本控制库。 libgit2 1.8.6之前版本和1.9.0至1.9.5之前版本存在安全漏洞,该漏洞源于内置HTTP传输遵循站外初始重定向,并将transport->owner->url错误地传递给凭据回调,可能导致攻击者泄露HTTP Basic凭据、个人访问令牌等。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
libgit2 libgit2 < 1.8.6 -

II. Public POCs for CVE-2026-53586

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-53586

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-53586 (4)

Vendor Advisories for CVE-2026-53586 (1)

Vendor Pages for CVE-2026-53586 (1)

Same Patch Batch · libgit2 · 2026-08-20 · 5 CVEs total

CVE-2026-53587 7.5 HIGH libgit2 - Unauthenticated network-reachable heap out-of-bounds read in transports/smart_pk
CVE-2026-53583 6.5 MEDIUM libgit2: Inverted IP SubjectAltName Comparison in OpenSSL Backend
CVE-2026-53585 5.3 MEDIUM libgit2: Unbounded Memory Allocation via Delta Object Result-Size Header
CVE-2026-53584 4.3 MEDIUM libgit2: Submodule path traversal

IV. Related Vulnerabilities

V. Comments for CVE-2026-53586

No comments yet


Leave a comment