git-2.43.5-1.el9_4

エラータID: AXSA:2024-8465:07

Release date: 
Wednesday, June 26, 2024 - 11:12
Subject: 
git-2.43.5-1.el9_4
Affected Channels: 
MIRACLE LINUX 9 for x86_64
Severity: 
High
Description: 

Git is a distributed revision control system with a decentralized architecture. As opposed to centralized version control systems with a client-server model, Git ensures that each working copy of a Git repository is an exact copy with complete revision history. This not only allows the user to work on and contribute to projects without the need to have permission to push the changes to their official repositories, but also makes it possible for the user to work with no network connection.

Security Fix(es):

* git: Recursive clones RCE (CVE-2024-32002)
* git: RCE while cloning local repos (CVE-2024-32004)
* git: additional local RCE (CVE-2024-32465)
* git: insecure hardlinks (CVE-2024-32020)
* git: symlink bypass (CVE-2024-32021)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer the CVE page(s) listed in the References section.

CVE-2024-32002
Git is a revision control system. Prior to versions 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4, repositories with submodules can be crafted in a way that exploits a bug in Git whereby it can be fooled into writing files not into the submodule's worktree but into a `.git/` directory. This allows writing a hook that will be executed while the clone operation is still running, giving the user no opportunity to inspect the code that is being executed. The problem has been patched in versions 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4. If symbolic link support is disabled in Git (e.g. via `git config --global core.symlinks false`), the described attack won't work. As always, it is best to avoid cloning repositories from untrusted sources.
CVE-2024-32004
Git is a revision control system. Prior to versions 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4, an attacker can prepare a local repository in such a way that, when cloned, will execute arbitrary code during the operation. The problem has been patched in versions 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4. As a workaround, avoid cloning repositories from untrusted sources.
CVE-2024-32020
Git is a revision control system. Prior to versions 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4, local clones may end up hardlinking files into the target repository's object database when source and target repository reside on the same disk. If the source repository is owned by a different user, then those hardlinked files may be rewritten at any point in time by the untrusted user. Cloning local repositories will cause Git to either copy or hardlink files of the source repository into the target repository. This significantly speeds up such local clones compared to doing a "proper" clone and saves both disk space and compute time. When cloning a repository located on the same disk that is owned by a different user than the current user we also end up creating such hardlinks. These files will continue to be owned and controlled by the potentially-untrusted user and can be rewritten by them at will in the future. The problem has been patched in versions 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4.
CVE-2024-32021
Git is a revision control system. Prior to versions 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4, when cloning a local source repository that contains symlinks via the filesystem, Git may create hardlinks to arbitrary user-readable files on the same filesystem as the target repository in the `objects/` directory. Cloning a local repository over the filesystem may creating hardlinks to arbitrary user-owned files on the same filesystem in the target Git repository's `objects/` directory. When cloning a repository over the filesystem (without explicitly specifying the `file://` protocol or `--no-local`), the optimizations for local cloning will be used, which include attempting to hard link the object files instead of copying them. While the code includes checks against symbolic links in the source repository, which were added during the fix for CVE-2022-39253, these checks can still be raced because the hard link operation ultimately follows symlinks. If the object on the filesystem appears as a file during the check, and then a symlink during the operation, this will allow the adversary to bypass the check and create hardlinks in the destination objects directory to arbitrary, user-readable files. The problem has been patched in versions 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4.
CVE-2024-32465
Git is a revision control system. The Git project recommends to avoid working in untrusted repositories, and instead to clone it first with `git clone --no-local` to obtain a clean copy. Git has specific protections to make that a safe operation even with an untrusted source repository, but vulnerabilities allow those protections to be bypassed. In the context of cloning local repositories owned by other users, this vulnerability has been covered in CVE-2024-32004. But there are circumstances where the fixes for CVE-2024-32004 are not enough: For example, when obtaining a `.zip` file containing a full copy of a Git repository, it should not be trusted by default to be safe, as e.g. hooks could be configured to run within the context of that repository. The problem has been patched in versions 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4. As a workaround, avoid using Git in repositories that have been obtained via archives from untrusted sources.

Solution: 

Update packages.

Additional Info: 

N/A

Download: 

SRPMS
  1. git-2.43.5-1.el9_4.src.rpm
    MD5: 1f8bf4df5828fe253860a69f774ebe6b
    SHA-256: 89ac89a8a15d5c01d45f08813482360b6a91e3b2b268f91f6e2ba4c1ee8d1287
    Size: 7.10 MB

Asianux Server 9 for x86_64
  1. git-2.43.5-1.el9_4.x86_64.rpm
    MD5: bca61fba69ddd43462605b98bf6f2397
    SHA-256: a0690e91acc7d176f13b931df60c6d51ac45bea743d1752969dd6f3d3f68244f
    Size: 54.37 kB
  2. git-all-2.43.5-1.el9_4.noarch.rpm
    MD5: 1036152d95c16816455a46a75645bf7e
    SHA-256: 0f42f80a9c2255d9fd06b51234427cb19d9ce0fde196bdc165ae1529a53c5991
    Size: 7.47 kB
  3. git-core-2.43.5-1.el9_4.x86_64.rpm
    MD5: 67f1f5105c8d3c3dd045f91be12f1879
    SHA-256: a9c2488849fc8c4030b81e6bf82ed959c048906ff50280989f0e34a65a3cde08
    Size: 4.40 MB
  4. git-core-doc-2.43.5-1.el9_4.noarch.rpm
    MD5: d7e11ddb09d0f9b411b9fec22e21e16f
    SHA-256: 33accb5c39d34b771739175bad9cc165cb96bc31778113efbefdc96c47a77953
    Size: 2.93 MB
  5. git-credential-libsecret-2.43.5-1.el9_4.x86_64.rpm
    MD5: 89a2fe974c76a3a0c88bc20fb9aa695a
    SHA-256: 73bef1a772df3830cc2baf00712ca6b1586843b20fd762687238127d1d6bea3d
    Size: 14.56 kB
  6. git-daemon-2.43.5-1.el9_4.x86_64.rpm
    MD5: dd96ec3b54808fc9999816859aa39d61
    SHA-256: 62f4180192e296e9d933221a782c7564162c8b9602ef60d241a438bb13b26484
    Size: 325.00 kB
  7. git-email-2.43.5-1.el9_4.noarch.rpm
    MD5: f42c15a5a20c1710b838a6437e8102dd
    SHA-256: 098c16fce5efcf5af586ed4d07dcdb14d41b23d38ed08433b081881c1ab57105
    Size: 53.41 kB
  8. git-gui-2.43.5-1.el9_4.noarch.rpm
    MD5: 0cd9d5457794d53ef850cf70f3b5cde1
    SHA-256: c00db67444f167bcbbdeb2feb49a56e940ae1cf3453b9044e6d79b24ab358c1c
    Size: 257.49 kB
  9. git-instaweb-2.43.5-1.el9_4.noarch.rpm
    MD5: 71da95b094df42b00b1a72202a127935
    SHA-256: 4718ce566519523a27b7f812ddf3302243219b1028dd9b3ca8f848128da486a4
    Size: 24.85 kB
  10. gitk-2.43.5-1.el9_4.noarch.rpm
    MD5: bcf7993be7ce17b89bb9c5708ee7a2f8
    SHA-256: d6462bccf375b166e4659fed2b7e087cbb1fed23f1a6bb4dc2e21d6879713008
    Size: 161.99 kB
  11. git-subtree-2.43.5-1.el9_4.x86_64.rpm
    MD5: 175d3bdf99891273d825aa9056ed493d
    SHA-256: 7183b1d906501554f40e6ec3bd0d04a51506aab0291d796c5b31a45180ee3ad8
    Size: 33.98 kB
  12. git-svn-2.43.5-1.el9_4.noarch.rpm
    MD5: fe21924179ede55d980ba0876756e743
    SHA-256: b3223a8f7bc42fdcb9eb25c6f9f42d30dc4f23f3ae317d9d484e7f25d6e199c6
    Size: 69.10 kB
  13. gitweb-2.43.5-1.el9_4.noarch.rpm
    MD5: 1a33a5d6f20a0acdd498c9fb98168372
    SHA-256: 6c358e0a317bd7ad9d02f89bd13e32a93ca6256a2d8a3e9bb5a4f958ee977835
    Size: 147.44 kB
  14. perl-Git-2.43.5-1.el9_4.noarch.rpm
    MD5: 08ea5122e570eddf32a310c2622e6684
    SHA-256: 032622cc37cc8c3ff2882d369523e838ceab4e277dcbd21fa8a484879c160b96
    Size: 37.05 kB
  15. perl-Git-SVN-2.43.5-1.el9_4.noarch.rpm
    MD5: 8717364373348af222d7aba76b5bdd52
    SHA-256: f3b62692ec6a3aad1c0e08960243d3f8d119d64e1df4d0844abf81ee0199d0e9
    Size: 51.65 kB