Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals. When Git asks for credentials via a terminal prompt (i.e. without using any credential helper), it prints out the host name for which the user is expected to provide a username and/or a password. At this stage, any URL-encoded parts have been decoded already, and are printed verbatim. This allows attackers to craft URLs that contain ANSI escape sequences that the terminal interpret to confuse users e.g. into providing passwords for trusted Git hosting sites when in fact they are then sent to untrusted sites that are under the attacker's control. This issue has been patch via commits `7725b81` and `c903985` which are included in release versions v2.48.1, v2.47.2, v2.46.3, v2.45.3, v2.44.3, v2.43.6, v2.42.4, v2.41.3, and v2.40.4. Users are advised to upgrade. Users unable to upgrade should avoid cloning from untrusted URLs, especially recursive clones.
CVSS Details
- CVSS 4.0 Base Score: 2.1 (LOW)
- CVSS 4.0 Vector: (CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:A/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X)
- CVSS 3.1 Base Score: 4.7
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alma_linux | — | Upgrade git-daemonUpgrade git-allUpgrade gitwebUpgrade perl-GitUpgrade git-guiUpgrade git-core-docUpgrade git-instawebUpgrade perl-Git-SVNUpgrade git-svnUpgrade gitkUpgrade git-subtreeUpgrade git-credential-libsecretUpgrade git-emailUpgrade gitUpgrade git-core | Jul 24, 2025 | Jan 14, 2025 |
| Alpine Linux | — | Upgrade git | Aug 8, 2025 | Jan 14, 2025 |
| Amazon Linux Ami 2 | — | Upgrade git-guiUpgrade perl-GitUpgrade git-core-docUpgrade gitwebUpgrade git-coreUpgrade git-svnUpgrade git-daemonUpgrade git-instawebUpgrade git-allUpgrade git-credential-libsecretUpgrade gitkUpgrade git-debuginfoUpgrade git-emailUpgrade git-cvsUpgrade gitUpgrade git-p4Upgrade git-subtreeUpgrade perl-Git-SVN | Jan 27, 2025 | Jan 14, 2025 |
| Amazon_linux_2023 | — | Upgrade git-subtreeUpgrade git-emailUpgrade git-instawebUpgrade perl-Git-SVNUpgrade git-p4Upgrade perl-GitUpgrade git-daemonUpgrade git-debuginfoUpgrade git-credential-libsecret-debuginfoUpgrade git-cvsUpgrade git-guiUpgrade git-core-debuginfoUpgrade gitUpgrade git-coreUpgrade git-daemon-debuginfoUpgrade git-core-docUpgrade git-credential-libsecretUpgrade gitkUpgrade git-svnUpgrade git-allUpgrade gitwebUpgrade git-debugsource | Feb 17, 2025 | Jan 14, 2025 |
| Debian | — | Upgrade git | Jan 30, 2025 | Jan 14, 2025 |
| Freebsd | — | Upgrade git-p4Upgrade gitUpgrade git-cvsUpgrade git-guiUpgrade git-svn | Jan 16, 2025 | Jan 14, 2025 |
| Huawei Euleros 2_0_sp10 | — | Upgrade gitUpgrade git-help | Mar 18, 2025 | Jan 14, 2025 |
| Huawei Euleros 2_0_sp11 | — | Upgrade git-helpUpgrade git | Apr 11, 2025 | Jan 14, 2025 |
| Huawei Euleros 2_0_sp12 | — | Upgrade gitUpgrade git-helpUpgrade git-core | Mar 19, 2025 | Jan 14, 2025 |
| Huawei Euleros 2_0_sp13 | — | Upgrade git-helpUpgrade gitUpgrade git-core | Apr 1, 2025 | Jan 14, 2025 |
| Oracle_linux | — | Upgrade git-allUpgrade git-subtreeUpgrade git-credential-libsecretUpgrade gitUpgrade gitwebUpgrade git-svnUpgrade perl-Git-SVNUpgrade git-guiUpgrade git-daemonUpgrade git-coreUpgrade git-emailUpgrade git-instawebUpgrade git-core-docUpgrade perl-GitUpgrade gitk | Jul 23, 2025 | Jan 14, 2025 |
| Redhat_linux | — | Upgrade gitUpgrade git-credential-libsecret-debuginfoUpgrade perl-Git-SVNUpgrade git-subtreeUpgrade git-coreUpgrade gitkUpgrade git-debuginfoUpgrade git-emailUpgrade git-credential-libsecretUpgrade git-svnUpgrade perl-GitNo solution existsUpgrade git-core-debuginfoUpgrade gitwebUpgrade git-daemonUpgrade git-instawebUpgrade git-daemon-debuginfoUpgrade git-debugsourceUpgrade git-guiUpgrade git-allUpgrade git-core-doc | Jul 9, 2025 | Jan 14, 2025 |
| Rocky_linux | — | Upgrade git-coreUpgrade git-credential-libsecretUpgrade git-subtreeUpgrade gitUpgrade git-debugsourceUpgrade git-daemon-debuginfoUpgrade git-credential-libsecret-debuginfoUpgrade git-core-debuginfoUpgrade git-daemonUpgrade git-debuginfo | Feb 5, 2026 | Jul 29, 2025 |
| Ubuntu | — | Upgrade git (Ubuntu Pro)Upgrade git | Jan 15, 2025 | Jan 14, 2025 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Jul 2, 2025 | Jan 14, 2025 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub