摘要:
git security update
安全等级: Medium
公告ID: KylinSec-SA-2025-1621
发布日期: 2025年3月18日
关联CVE: CVE-2024-50349 CVE-2024-52006
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Git is easy to learn and has a tiny footprint with lightning fast performance. It outclasses SCM tools like Subversion, CVS, Perforce, and ClearCase with features like cheap local branching, convenient staging areas, and multiple workflows.
Security Fix(es):
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.(CVE-2024-50349)
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. Git defines a line-based protocol that is used to exchange information between Git and Git credential helpers. Some ecosystems (most notably.NET and node.js) interpret single Carriage Return characters as newlines, which renders the protections against CVE-2020-5260 incomplete for credential helpers that treat Carriage Returns in this way. This issue has been addressed in commit `b01b9b8` which is 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.(CVE-2024-52006)
cve名称 | 产品 | 组件 | 是否受影响 |
---|---|---|---|
CVE-2024-50349 | V6 | git | Fixed |
CVE-2024-50349 | KY3.4-5 | git | Fixed |
CVE-2024-52006 | V6 | git | Fixed |
CVE-2024-52006 | KY3.4-5 | git | Fixed |
软件名称 | 架构 | 版本号 |
---|---|---|
git-email | noarch | 2.27.0-23.kb1.ky3_4 |
git-gui | noarch | 2.27.0-23.kb1.ky3_4 |
git-help | noarch | 2.27.0-23.kb1.ky3_4 |
git-svn | noarch | 2.27.0-23.kb1.ky3_4 |
git-web | noarch | 2.27.0-23.kb1.ky3_4 |
gitk | noarch | 2.27.0-23.kb1.ky3_4 |
perl-Git | noarch | 2.27.0-23.kb1.ky3_4 |
perl-Git-SVN | noarch | 2.27.0-23.kb1.ky3_4 |
git | x86_64 | 2.27.0-23.kb1.ky3_4 |
git-daemon | x86_64 | 2.27.0-23.kb1.ky3_4 |
git | aarch64 | 2.27.0-23.kb1.ky3_4 |
git-daemon | aarch64 | 2.27.0-23.kb1.ky3_4 |
软件名称 | 架构 | 版本号 |
---|---|---|
git-email | noarch | 2.43.0-6.ks6 |
git-gui | noarch | 2.43.0-6.ks6 |
git-help | noarch | 2.43.0-6.ks6 |
git-svn | noarch | 2.43.0-6.ks6 |
git-web | noarch | 2.43.0-6.ks6 |
gitk | noarch | 2.43.0-6.ks6 |
perl-Git | noarch | 2.43.0-6.ks6 |
perl-Git-SVN | noarch | 2.43.0-6.ks6 |
git | x86_64 | 2.43.0-6.ks6 |
git-core | x86_64 | 2.43.0-6.ks6 |
git-daemon | x86_64 | 2.43.0-6.ks6 |
git | aarch64 | 2.43.0-6.ks6 |
git-core | aarch64 | 2.43.0-6.ks6 |
git-daemon | aarch64 | 2.43.0-6.ks6 |
方法一:下载安装包进行升级安装
1、通过下载链接下载需要升级的升级包保存,如 xxx.rpm
2、通过rpm命令升级,如 rpm -Uvh xxx.rpm
方法二:通过软件源进行升级安装
1、保持能够连接上互联网
2、通过yum命令升级指定的包,如 yum install 包名