Debian等の複数ベンダの製品におけるハードコードされたセキュリティ関連の定数の使用に関する脆弱性
タイトル Debian等の複数ベンダの製品におけるハードコードされたセキュリティ関連の定数の使用に関する脆弱性
概要

Gitはバージョン管理システムです。2.45.1より前の複数のバージョンでは、ローカルのソースリポジトリをファイルシステム経由でクローンする際、シンボリックリンクが含まれている場合に、Gitはターゲットリポジトリのobjectsディレクトリ内に同じファイルシステム上でユーザーが読み取り可能な任意のファイルへのハードリンクを作成する可能性があります。この問題は、ローカルクローンの最適化によってオブジェクトファイルにハードリンクが作成される挙動が原因で発生します。シンボリックリンクの競合状態が発生すると、任意のユーザー所有ファイルへのハードリンクが作成される危険性があります。Gitの影響を受けるすべてのバージョンで、この問題は修正されています。

想定される影響 当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 さらに、当該ソフトウェアは停止しません。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 
対策

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

公表日 2024年5月14日0:00
登録日 2026年1月7日18:27
最終更新日 2026年1月7日18:27
CVSS3.0 : 重要
スコア 7.1
ベクター CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
影響を受けるシステム
Debian
Debian GNU/Linux 10.0
Debian GNU/Linux 11.0
Fedora Project
Fedora 40
Git SCM
Git 2.39.4 未満
Git 2.40.0 以上 2.40.2 未満
Git 2.41.0
Git 2.42.0 以上 2.42.2 未満
Git 2.43.0 以上 2.43.4 未満
Git 2.44.0
Git 2.45.0
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
変更履歴
No 変更内容 変更日
1 [2026年01月07日]
  掲載
2026年1月7日18:27

NVD脆弱性情報
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.

公表日 2024年5月15日5:15
登録日 2024年5月15日10:00
最終更新日 2024年11月21日18:14
関連情報、対策とツール
共通脆弱性一覧