3.3

CVE-2023-25815: fedoraproject fedora Path Traversal

CVSS: 3.3v3.1LowModified
AliasesALPINE-CVE-2023-25815UBUNTU-CVE-2023-25815DEBIAN-CVE-2023-25815
Published 25-04-2023Last modified 04-11-2025

Vulnerability summary

CVE-2023-25815 is a low (CVSS 3.3) Path Traversal vulnerability in fedoraproject fedora. EPSS estimates a 0.84% chance of exploitation in the next 30 days, higher than 57% of scored vulnerabilities.

Overall risk
13/100
0100
Low · default modelHow is this calculated?
CVSS score
3.3/10
010
Low · v3.1 (CVE.org)
EPSS score
0.84%
0%100%
Low · -0.12 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 19 · Related 7

Timeline

  1. 25-04-2023
    PublishedVulnerability first disclosed.
  2. 04-11-2025
    Last modifiedVulnerability information updated.

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

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

0.84%

Chance of exploitation in the next 30 days

Percentile

57%

Versus all other CVEs

30-day change

-0.12 pp

From 0.96% on 18-09-2026

18-09-202618-10-2026
EPSS score
0.84%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Alpine1 product
  • git< 2.32.7-r0 | < 2.34.8-r0 | < 2.36.6-r0 | < 2.38.5-r0 | < 2.40.1-r0
Debian1 product
  • git< 1:2.39.5-0+deb12u1 | < 1:2.40.1-1
Fedoraproject1 product
Git_for_windows_project1 product
Git-for-windows1 product
Ubuntu1 product
  • git< 1:2.7.4-0ubuntu1.10+esm8 | < 1:2.17.1-1ubuntu0.18 | < 1:2.25.1-1ubuntu3.11 | < 1:2.34.1-1ubuntu1.9

6 vendors · 6 products

References

18 links
Show all 18 references