PT-2020-2069 · Git+5 · Git+5

Felix Wilhelm

·

Published

2020-04-14

·

Updated

2025-07-22

·

CVE-2020-5260

CVSS v3.1

9.3

Critical

VectorAV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
Name of the Vulnerable Software and Affected Versions Git versions prior to 2.17.4 Git versions prior to 2.18.3 Git versions prior to 2.19.4 Git versions prior to 2.20.3 Git versions prior to 2.21.2 Git versions prior to 2.22.3 Git versions prior to 2.23.2 Git versions prior to 2.24.2 Git versions prior to 2.25.3 Git versions prior to 2.26.1
Description The issue arises from insufficient input validation in Git's "credential helper" component, allowing an attacker to trick Git into sending private credentials to a host controlled by the attacker. This can be achieved by crafting a specially formatted URL containing an encoded newline, which injects unintended values into the credential helper protocol stream. As a result, the credential helper may retrieve the password for one server and send it to another server, potentially leading to unauthorized access to protected information. The vulnerability can be triggered by feeding a malicious URL to git clone, and the likely vector would be through systems that automatically clone URLs not visible to the user, such as Git submodules or package systems built around Git.
Recommendations For versions prior to 2.17.4, update to version 2.17.4 or later. For versions prior to 2.18.3, update to version 2.18.3 or later. For versions prior to 2.19.4, update to version 2.19.4 or later. For versions prior to 2.20.3, update to version 2.20.3 or later. For versions prior to 2.21.2, update to version 2.21.2 or later. For versions prior to 2.22.3, update to version 2.22.3 or later. For versions prior to 2.23.2, update to version 2.23.2 or later. For versions prior to 2.24.2, update to version 2.24.2 or later. For versions prior to 2.25.3, update to version 2.25.3 or later. For versions prior to 2.26.1, update to version 2.26.1 or later. As a temporary workaround, consider disabling the credential.helper function until a patch is available. Restrict access to the vulnerable credential.helper module to minimize the risk of exploitation. Avoid using the credential.helper protocol with suspicious URLs until the issue is resolved.

Exploit

Fix

Insufficiently Protected Credentials

RCE

Weakness Enumeration

Related Identifiers

ALSA-2025_11462
ALSA-2025_11534
ALT-PU-2020-1754
ALT-PU-2020-1759
BDU:2020-01903
BIT-GIT-2020-5260
CESA-2020_1511
CESA-2020_1513
CVE-2020-5260
DLA-2177-1
DLA-4031-1
DSA-4657-1
ELSA-2020-1511
ELSA-2020-1513
GHSA-HJC9-X69F-JQJ7
GHSA-QM7J-C969-7J4Q
MGASA-2020-0175
OPENSUSE-SU-2020:0524-1
OPENSUSE-SU-2020:0598-1
OPENSUSE-SU-2020_0524-1
OPENSUSE-SU-2020_0598-1
OPENSUSE-SU-2024:10786-1
RHSA-2020:1503
RHSA-2020:1511
RHSA-2020:1513
RHSA-2020:1518
RHSA-2020:3581
RHSA-2020_1511
RHSA-2020_1513
SUSE-SU-2020:0991-1
SUSE-SU-2020:0992-1
SUSE-SU-2020:1121-1
SUSE-SU-2020:1295-1
SUSE-SU-2020_0991-1
SUSE-SU-2020_1295-1
USN-4329-1

Affected Products

Alt Linux
Centos
Git
Red Hat
Suse
Ubuntu