CVE-2023-25815 | Git looks for localized messages in the wrong place

In Git for Windows, the Windows port of Git, no localized messages are shipped with the installer. As a consequence, Git is expected not to localize messages at all, and skips the gettext initialization. However, due to a change in MINGW-packages, the `gettext()` function's implicit initialization no longer uses the runtime prefix but uses the hard-coded path `C:\mingw64\share\locale` to look for localized messages. And since any authenticated user has the permission to create folders in `C:\` (and since `C:\mingw64` does not typically exist), it is possible for low-privilege users to place fake messages in that location where `git.exe` will pick them up in version 2.40.1. This vulnerability is relatively hard to exploit and requires social engineering. For example, a legitimate message at the end of a clone could be maliciously modified to ask the user to direct their web browser to a malicious website, and the user might think that the message comes from Git and is legitimate. It does require local write access by the attacker, though, which makes this attack vector less likely. Version 2.40.1 contains a patch for this issue. Some workarounds are available. Do not work on a Windows machine with shared accounts, or alternatively create a `C:\mingw64` folder and leave it empty. Users who have administrative rights may remove the permission to create folders in `C:\`.

公開: 2023-04-25 最終更新: 2026-06-17 Assigner: [email protected] ソース: [email protected]

総合評価: CVE-2023-25815 は低リスク(35.1/100)。CVSS 深刻度は低。悪用される可能性が高い(EPSS 1.05%、60 パーセンタイル) 推奨対応: 悪用情報と EPSS の推移を監視し、必要に応じて優先度を見直してください。

リスクは変動します。再評価に基づき、本ページの表示内容を更新しています。

CVE-2023-25815 の EPSS(Exploit Prediction Scoring System)スコア

EPSS は日次で悪用されやすさの相対度合いを推定します。パーセンタイルは採点済み CVE の中での相対位置(高いほど相対的に深刻)を示します。

# 日付 旧 EPSS スコア 新 EPSS スコア Δ(新 − 旧)
1 2026-06-15 0.10% 1.05% +0.96%
2 2025-03-17 0.04% 0.10% +0.05%
3 2023-04-26 0.04%

EPSS の全履歴 (全 3 件)

CVE-2023-25815 の CVSS(Common Vulnerability Scoring System)指標

この CVE の CVSS 指標。

ベーススコア バージョン 深刻度 ベクトル 悪用しやすさ 影響 スコアの出典
3.3 3.1 LOW
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:L クリックして展開
攻撃ベクター (AV:L)
対象ホスト上でコードを実行できること、または別ユーザーの誤操作・悪意ある操作が前提になる。
攻撃の複雑さ (AC:H)
到達できても、タイミング・負荷・周辺設定など、揃わないと成功しない局面が多い。
必要な権限 (PR:L)
一般ユーザー権限があれば足り、管理者(root 相当)は不要。
ユーザーの関与 (UI:R)
インストールの許可、設定変更、悪意あるファイルの実行など、人の一度の判断がトリガーになる。
スコープ (S:U)
影響は脆弱コンポーネントと同一のセキュリティ権限・信頼境界の内側に収まる。
機密性への影響 (C:N)
機微情報の漏えいは想定しにくい。
完全性への影響 (I:L)
レコードの一部書き換えや設定の歪みなど、限定的だが検知・復旧が必要な水準。
可用性への影響 (A:L)
遅延や一部機能の停止、断続的な障害など、運用で吸収しうる範囲。
0.8 2.5 [email protected]
2.2 3.1 LOW
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N クリックして展開
攻撃ベクター (AV:L)
対象ホスト上でコードを実行できること、または別ユーザーの誤操作・悪意ある操作が前提になる。
攻撃の複雑さ (AC:H)
到達できても、タイミング・負荷・周辺設定など、揃わないと成功しない局面が多い。
必要な権限 (PR:L)
一般ユーザー権限があれば足り、管理者(root 相当)は不要。
ユーザーの関与 (UI:R)
インストールの許可、設定変更、悪意あるファイルの実行など、人の一度の判断がトリガーになる。
スコープ (S:U)
影響は脆弱コンポーネントと同一のセキュリティ権限・信頼境界の内側に収まる。
機密性への影響 (C:N)
機微情報の漏えいは想定しにくい。
完全性への影響 (I:L)
レコードの一部書き換えや設定の歪みなど、限定的だが検知・復旧が必要な水準。
可用性への影響 (A:N)
業務継続に支障が出るレベルの停止や劣化は想定されない。
0.8 1.4 [email protected]

CVE-2023-25815 の弱点分類(列挙)

CVE-2023-25815 の OS トラッカー

vendor priority summary link
alpine CVE-2023-25815: 1 source package rows (git); 7 state rows across 7 repos (3.17-main, 3.18-main, 3.19-main, 3.20-main, 3.21-main, 3.22-main, edge-main); fixed 7, open 0. https://security.alpinelinux.org/vuln/CVE-2023-25815
debian not yet assigned CVE-2023-25815 not yet assigned priority: Debian including 1 source packages (git), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2023-25815
gentoo high CVE-2023-25815: 1 GLSA(s) (202312-15), 1 atom(s) (dev-vcs/git); latest impact high. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2023-25815
redhat low https://access.redhat.com/security/cve/CVE-2023-25815
suse high CVE-2023-25815 severity important: SUSE including 145 source package names (1.20-openssl:git-core-2.35.3-150300.10.27.1, 1.21:git-core-2.35.3-150300.10.27.1, …), 486 product×package rows across 59 product lines (Container bci/golang, Container bci/nodejs, … (59 product lines)): Fixed 431, Known Not Affected 55. https://www.suse.com/security/cve/CVE-2023-25815/
ubuntu medium CVE-2023-25815 medium priority: Ubuntu including 1 source packages (git), 10 status rows across 10 suites (bionic, focal, jammy, kinetic, lunar, mantic, noble, trusty, upstream, xenial): released 9, ignored 1. https://ubuntu.com/security/CVE-2023-25815

CVE-2023-25815 の影響を受けるソフトウェア/構成

ベンダー 製品 バージョン 生の CPE
git_for_windows_project git_for_windows < 2.40.1 cpe:2.3:a:git_for_windows_project:git_for_windows:*:*:*:*:*:*:*:*
fedoraproject fedora 37 cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*
fedoraproject fedora 38 cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*

CVE-2023-25815 の参考情報

URL タグ
http://www.openwall.com/lists/oss-security/2023/04/25/2 Mailing List Third Party Advisory
https://axcheron.github.io/exploit-101-format-strings/#writing-to-the-stack Product
https://github.com/git-for-windows/git/releases/tag/v2.40.1.windows.1 Release Notes
https://github.com/git-for-windows/git/security/advisories/GHSA-9w66-8mq8-5vm8 Vendor Advisory
https://github.com/msys2/MINGW-packages/pull/10461 Issue Tracking Patch
https://lists.debian.org/debian-lts-announce/2024/06/msg00018.html
https://lists.fedoraproject.org/archives/list/[email protected]/message/PI7FZ4NNR5S5J5K6AMVQBH2JFP6NE4L7/ Mailing List Third Party Advisory
https://lists.fedoraproject.org/archives/list/[email protected]/message/RKOXOAZ42HLXHXTW6JZI4L5DAIYDTYCU/
https://lists.fedoraproject.org/archives/list/[email protected]/message/YFZWGQKB6MM5MNF2DLFTD7KS2KWPICKL/ Mailing List Third Party Advisory
https://pubs.opengroup.org/onlinepubs/9699919799/functions/printf.html Product
https://security.gentoo.org/glsa/202312-15
https://lists.debian.org/debian-lts-announce/2024/09/msg00009.html
cvelogic Threat Intelligence