CVE-2020-5260 | malicious URLs may cause Git to present stored credentials to the wrong server

Affected versions of Git have a vulnerability whereby Git can be tricked into sending private credentials to a host controlled by an attacker. Git uses external "credential helper" programs to store and retrieve passwords or other credentials from secure storage provided by the operating system. Specially-crafted URLs that contain an encoded newline can inject unintended values into the credential helper protocol stream, causing the credential helper to retrieve the password for one server (e.g., good.example.com) for an HTTP request being made to another server (e.g., evil.example.com), resulting in credentials for the former being sent to the latter. There are no restrictions on the relationship between the two, meaning that an attacker can craft a URL that will present stored credentials for any host to a host of their choosing. The vulnerability can be triggered by feeding a malicious URL to git clone. However, the affected URLs look rather suspicious; the likely vector would be through systems which automatically clone URLs not visible to the user, such as Git submodules, or package systems built around Git. The problem has been patched in the versions published on April 14th, 2020, going back to v2.17.x. Anyone wishing to backport the change further can do so by applying commit 9a6bbee (the full release includes extra checks for git fsck, but that commit is sufficient to protect clients against the vulnerability). The patched versions are: 2.17.4, 2.18.3, 2.19.4, 2.20.3, 2.21.2, 2.22.3, 2.23.2, 2.24.2, 2.25.3, 2.26.1.

公開: 2020-04-14 最終更新: 2026-06-16 Assigner: [email protected] ソース: [email protected]

総合評価: CVE-2020-5260 は高リスク(65.4/100)。CVSS 深刻度は重大。悪用される可能性が高い(EPSS 9.97%、95 パーセンタイル) 根拠: EPSS 上、短期間での悪用可能性は高い水準です。 推奨対応: 悪用可能性が高いため、影響範囲の確認と修補の優先付けを推奨します。

リスクは変動します。再評価に基づき、本ページの表示内容を更新しています。

CVE-2020-5260 の EPSS(Exploit Prediction Scoring System)スコア

EPSS は日次で悪用されやすさの相対度合いを推定します。パーセンタイルは採点済み CVE の中での相対位置(高いほど相対的に深刻)を示します。

# 日付 旧 EPSS スコア 新 EPSS スコア Δ(新 − 旧)
1 2026-06-15 35.58% 9.97% -25.61%
2 2026-06-13 37.30% 35.58% -1.72%
3 2026-06-04 37.30%

EPSS の全履歴 (全 47 件)

CVE-2020-5260 の CVSS(Common Vulnerability Scoring System)指標

この CVE の CVSS 指標。

ベーススコア バージョン 深刻度 ベクトル 悪用しやすさ 影響 スコアの出典
9.3 3.1 CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N クリックして展開
攻撃ベクター (AV:N)
インターネットなど、ルーティングされたネットワーク越しに遠隔から悪用しうる。端末の前にいる必要はない。
攻撃の複雑さ (AC:L)
攻撃者が条件を満たせば、レース条件や珍しい構成に依存せずに再現しやすい。
必要な権限 (PR:N)
事前のログインや昇格は不要で、匿名アクセスのまま踏み台にしうる。
ユーザーの関与 (UI:R)
インストールの許可、設定変更、悪意あるファイルの実行など、人の一度の判断がトリガーになる。
スコープ (S:C)
脆弱箇所を足がかりに、別コンポーネントや別権限域まで影響が広がりうる。
機密性への影響 (C:H)
広範な機微データの読み取りや持ち出しが現実的。
完全性への影響 (I:H)
権限の奪取や広範なログ改竄など、システムの信頼根拠を揺るがす改ざんが現実的。
可用性への影響 (A:N)
業務継続に支障が出るレベルの停止や劣化は想定されない。
2.8 5.8 [email protected]
7.5 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N クリックして展開
攻撃ベクター (AV:N)
インターネットなど、ルーティングされたネットワーク越しに遠隔から悪用しうる。端末の前にいる必要はない。
攻撃の複雑さ (AC:L)
攻撃者が条件を満たせば、レース条件や珍しい構成に依存せずに再現しやすい。
必要な権限 (PR:N)
事前のログインや昇格は不要で、匿名アクセスのまま踏み台にしうる。
ユーザーの関与 (UI:N)
メールのリンクを開く、マクロを有効にするなど、被害者の協力がなくても成立しうる。
スコープ (S:U)
影響は脆弱コンポーネントと同一のセキュリティ権限・信頼境界の内側に収まる。
機密性への影響 (C:H)
広範な機微データの読み取りや持ち出しが現実的。
完全性への影響 (I:N)
改ざん・なりすましによる信頼毀損は軽微か、想定されない。
可用性への影響 (A:N)
業務継続に支障が出るレベルの停止や劣化は想定されない。
3.9 3.6 [email protected]
5.0 2.0 MEDIUM
AV:N/AC:L/Au:N/C:P/I:N/A:N クリックして展開
アクセス経路 (AV:N)
ルーティング可能なネットワーク越しに、遠隔から到達・悪用しうる。
アクセスの複雑さ (AC:L)
手順が短く、再現性が高い。
認証 (AU:N)
認証を経ずに攻撃を完結できる。
機密性への影響 (C:P)
機密性は部分的に損なわれる。
完全性への影響 (I:N)
完全性は損なわれない。
可用性への影響 (A:N)
可用性は損なわれない。
10.0 2.9 [email protected]

CVE-2020-5260 の弱点分類(列挙)

CVE-2020-5260 の OS トラッカー

vendor priority summary link
alpine high CVE-2020-5260: 1 source package rows (git); 30 state rows across 10 repos (3.10-main, 3.11-main, 3.12-main, 3.17-main, 3.18-main, 3.19-main, 3.20-main, 3.21-main, 3.22-main, edge-main); fixed 10, open 20. https://security.alpinelinux.org/vuln/CVE-2020-5260
debian not yet assigned CVE-2020-5260 not yet assigned priority: Debian including 1 source packages (git), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2020-5260
gentoo low CVE-2020-5260: 1 GLSA(s) (202004-13), 1 atom(s) (dev-vcs/git); latest impact low. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2020-5260
redhat high https://access.redhat.com/security/cve/CVE-2020-5260
suse high CVE-2020-5260 severity important: SUSE including 171 source package names (emacs-git-1.8.3.1-22.el7_8, emacs-git-el-1.8.3.1-22.el7_8, …), 379 product×package rows across 53 product lines (HPE Helion OpenStack 8, Image SLES12-SP5-SAP-Azure-LI-BYOS-Production, … (53 product lines)): Fixed 379. https://www.suse.com/security/cve/CVE-2020-5260/
ubuntu medium CVE-2020-5260 medium priority: Ubuntu including 1 source packages (git), 5 status rows across 5 suites (bionic, eoan, trusty, upstream, xenial): released 3, DNE 1, needs-triage 1. https://ubuntu.com/security/CVE-2020-5260

CVE-2020-5260 の影響を受けるソフトウェア/構成

ベンダー 製品 バージョン 生の CPE
git git < 2.17.4 cpe:2.3:a:git:git:*:*:*:*:*:*:*:*
git git >= 2.22.0, < 2.22.3 cpe:2.3:a:git:git:*:*:*:*:*:*:*:*
git-scm git >= 2.18.0, < 2.18.3 cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm git >= 2.19.0, < 2.19.4 cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm git >= 2.20.0, < 2.20.3 cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm git >= 2.21.0, < 2.21.2 cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm git >= 2.23.0, < 2.23.2 cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm git >= 2.24.0, < 2.24.2 cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm git >= 2.25.0, < 2.25.3 cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm git >= 2.26.0, < 2.26.1 cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
canonical ubuntu_linux 16.04 cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*
canonical ubuntu_linux 18.04 cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*
canonical ubuntu_linux 19.10 cpe:2.3:o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:*
debian debian_linux 8.0 cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
debian debian_linux 9.0 cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
debian debian_linux 10.0 cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
fedoraproject fedora 30 cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:*
fedoraproject fedora 31 cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:*
fedoraproject fedora 32 cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
opensuse leap 15.1 cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*

CVE-2020-5260 の参考情報

URL タグ
http://lists.opensuse.org/opensuse-security-announce/2020-04/msg00027.html Third Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00003.html Third Party Advisory
http://packetstormsecurity.com/files/157250/Git-Credential-Helper-Protocol-Newline-Injection.html Third Party Advisory VDB Entry
http://www.openwall.com/lists/oss-security/2020/04/15/5 Mailing List
http://www.openwall.com/lists/oss-security/2020/04/15/6 Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2020/04/20/1 Mailing List Third Party Advisory
https://github.com/git/git/commit/9a6bbee8006c24b46a85d29e7b38cfa79e9ab21b Patch Third Party Advisory
https://github.com/git/git/security/advisories/GHSA-qm7j-c969-7j4q Mitigation Patch Third Party Advisory
https://lists.debian.org/debian-lts-announce/2020/04/msg00010.html Mailing List Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/74Q7WVJ6FKLIN62VS2JD2XCNWK5TNKOW/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7TVS5UG6JD3MYIGSBKMIOS6AF7CR5IPI/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MOCTR2SEHCPSCOVUQJAGFPGKFMI2VE6V/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PN3FUOXKX3AXTULYV53ACABER2W2FSOU/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XPCEOIFLLEF24L6GLVJVFZX4CREDEHDF/
https://lore.kernel.org/git/xmqqy2qy7xn8.fsf%40gitster.c.googlers.com/
https://security.gentoo.org/glsa/202004-13 Third Party Advisory
https://support.apple.com/kb/HT211141 Third Party Advisory
https://usn.ubuntu.com/4329-1/ Third Party Advisory
https://www.debian.org/security/2020/dsa-4657 Third Party Advisory
cvelogic Threat Intelligence