cve.bz

CVE-2023-25815 Path traversal

2.2 lowEPSS 0.8%Fix available

Low (2.2). EPSS 0.8% estimated probability of exploitation activity in the next 30 days.

On this page
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:\`.

Severity

CVSS 3.1

2.2 low
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N
EPSS
0.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 59th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-134 Use of Externally-Controlled Format String
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-25815 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-25815?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-25815?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-25815 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
git_for_windows_project:git_for_windowsbefore 2.40.1
fedoraproject:fedora37
fedoraproject:fedora38

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10git1:2.20.1-2+deb10u9DLA-3844-1
Debian11git1:2.30.2-1+deb11u3DLA-3867-1
Debian12git1:2.39.5-0+deb12u1DEBIAN-CVE-2023-25815 DSA-5769-1
Debian13, 14git1:2.40.1-1DEBIAN-CVE-2023-25815
Ubuntu18.04:LTSgit1:2.17.1-1ubuntu0.18UBUNTU-CVE-2023-25815 USN-6050-1
Ubuntu20.04:LTSgit1:2.25.1-1ubuntu3.11UBUNTU-CVE-2023-25815 USN-6050-1
Ubuntu22.04:LTSgit1:2.34.1-1ubuntu1.9UBUNTU-CVE-2023-25815 USN-6050-1
UbuntuPro:16.04:LTSgit1:2.7.4-0ubuntu1.10+esm8UBUNTU-CVE-2023-25815 USN-7023-1
UbuntuPro:18.04:LTSgit1:2.17.1-1ubuntu0.18+esm1USN-7023-1
Red Hatenterprise_linux:8::appstreamgit, gitk, gitweb and 17 more0:2.39.3-1.el8_8RHSA-2023:3246
Red Hatenterprise_linux:9::appstreamgit, gitk, gitweb and 17 more0:2.39.3-1.el9_2RHSA-2023:3245
Red Hatrhel_aus:8.2::appstreamgit, gitk, gitweb and 16 more0:2.18.4-4.el8_2RHSA-2023:3382
Red Hatrhel_e4s:8.1::appstreamgit, gitk, gitweb and 16 more0:2.18.4-3.el8_1RHSA-2023:3192
Red Hatrhel_eus:8.4::appstreamgit, gitk, gitweb and 17 more0:2.27.0-4.el8_4RHSA-2023:3243
Red Hatrhel_eus:8.6::appstreamgit, gitk, gitweb and 17 more0:2.31.1-4.el8_6RHSA-2023:3247
Red Hatrhel_eus:9.0::appstreamgit, gitk, gitweb and 17 more0:2.31.1-5.el9_0RHSA-2023:3248
Red Hatrhel_software_collections:3::el7rh-git227-git, rh-git227-gitk, rh-git227-git-p4 and 15 more0:2.27.0-6.el7RHSA-2023:3280
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 4 moregit2.26.2-150000.50.1SUSE-SU-2023:2081-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 4 moregit2.35.3-150300.10.27.1SUSE-SU-2023:2038-2
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP4-ESPOS and 8 moregit2.26.2-27.69.1SUSE-SU-2023:2062-1
SUSELinux Enterprise Module for Basesystem 15 SP4, Linux Enterprise Module for Development Tools 15 SP4, Linux Enterprise Real Time 15 SP3git2.35.3-150300.10.27.1SUSE-SU-2023:2038-1
openSUSELeap 15.4git2.35.3-150300.10.27.1SUSE-SU-2023:2038-1
openSUSETumbleweedgit2.40.1-1.1openSUSE-SU-2024:12889-1
AlmaLinux8git, gitk, gitweb and 12 more2.39.3-1.el8_8ALSA-2023:3246
AlmaLinux9git, gitk, gitweb and 12 more2.39.3-1.el9_2ALSA-2023:3245
Rocky Linux8git0:2.39.3-1.el8_8RLSA-2023:3246
Alpinev3.14git2.32.7-r0ALPINE-CVE-2023-25815
Alpinev3.15git2.34.8-r0ALPINE-CVE-2023-25815
Alpinev3.16git2.36.6-r0ALPINE-CVE-2023-25815
Alpinev3.17git2.38.5-r0ALPINE-CVE-2023-25815
Alpinev3.18, v3.19, v3.20 and 4 moregit2.40.1-r0ALPINE-CVE-2023-25815

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8git-0:2.39.3-1.el8_8Fixed 2023-05-22RHSA-2023:3246
Red Hat Enterprise Linux 8.1 Update Services for SAP Solutionsgit-0:2.18.4-3.el8_1Fixed 2023-05-17RHSA-2023:3192
Red Hat Enterprise Linux 8.2 Advanced Update Supportgit-0:2.18.4-4.el8_2Fixed 2023-05-31RHSA-2023:3382
Red Hat Enterprise Linux 8.4 Extended Update Supportgit-0:2.27.0-4.el8_4Fixed 2023-05-22RHSA-2023:3243
Red Hat Enterprise Linux 8.6 Extended Update Supportgit-0:2.31.1-4.el8_6Fixed 2023-05-22RHSA-2023:3247
Red Hat Enterprise Linux 9git-0:2.39.3-1.el9_2Fixed 2023-05-22RHSA-2023:3245
Red Hat Enterprise Linux 9.0 Extended Update Supportgit-0:2.31.1-5.el9_0Fixed 2023-05-22RHSA-2023:3248
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-git227-git-0:2.27.0-6.el7Fixed 2023-05-23RHSA-2023:3280
Red Hat Enterprise Linux 6gitOut of support scope
Red Hat Enterprise Linux 7gitOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-25815.

Attack patterns (CAPEC)

  • CAPEC-67 String Format Overflow in syslog() Likelihood: High · Severity: Very High
  • CAPEC-135 Format String Injection Likelihood: High · Severity: High
  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON