Hi, NVD site https://nvd.nist.gov/vuln/detail/CVE-2023-25815 is stating that CVE affects the Git for Windows and Debain security tracker - https://security-tracker.debian.org/tracker/CVE-2023-25815 has provided the CVE fix commit https://github.com/git/git/commit/c4137be0f5a6edf9a9044e6e43ecf4468c7a4046 and stated that CVE fixed in Debain unstable version(sid)
Kindly review the CVE, If it affects only Windows please approve the patch else please respond I will try to send patch for CVE fix. CVE description: 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:\`. References: https://nvd.nist.gov/vuln/detail/CVE-2023-25815 https://github.com/git-for-windows/git/security/advisories/GHSA-9w66-8mq8-5vm8 https://security-tracker.debian.org/tracker/CVE-2023-25815 https://github.com/git/git/commit/c4137be0f5a6edf9a9044e6e43ecf4468c7a4046 [https://opengraph.githubassets.com/378f0913a5e21a34e25674de17d23163b810deb2ea3446cc80bff6a0804522c7/git/git/commit/c4137be0f5a6edf9a9044e6e43ecf4468c7a4046]<https://github.com/git/git/commit/c4137be0f5a6edf9a9044e6e43ecf4468c7a4046> gettext: avoid using gettext if the locale dir is not present ยท git/git@c4137be<https://github.com/git/git/commit/c4137be0f5a6edf9a9044e6e43ecf4468c7a4046> In cc5e1bf99247 (gettext: avoid initialization if the locale dir is not present, 2018-04-21) Git was taught to avoid a costly gettext start-up when there are not even any localized messages to work... github.com ________________________________ From: [email protected] <[email protected]> on behalf of Polampalli, Archana via lists.openembedded.org <[email protected]> Sent: Monday, May 22, 2023 1:06 PM To: [email protected] <[email protected]> Cc: G Pillai, Hari <[email protected]> Subject: [oe-core][kirkstone][PATCH 1/1] git: ignore CVE-2023-25815 This is specific to Git-for-Windows. Signed-off-by: Archana Polampalli <[email protected]> --- meta/recipes-devtools/git/git_2.39.2.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-devtools/git/git_2.39.2.bb b/meta/recipes-devtools/git/git_2.39.2.bb index 222e545f60..9fac9d13f8 100644 --- a/meta/recipes-devtools/git/git_2.39.2.bb +++ b/meta/recipes-devtools/git/git_2.39.2.bb @@ -33,6 +33,8 @@ CVE_PRODUCT = "git-scm:git" CVE_CHECK_IGNORE += "CVE-2022-24975" # This is specific to Git-for-Windows CVE_CHECK_IGNORE += "CVE-2022-41953" +# This is specific to Git-for-Windows +CVE_CHECK_IGNORE += "CVE-2023-25815" PACKAGECONFIG ??= "expat curl" PACKAGECONFIG[cvsserver] = "" -- 2.40.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#181583): https://lists.openembedded.org/g/openembedded-core/message/181583 Mute This Topic: https://lists.openembedded.org/mt/99060237/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
