7 results (0.016 seconds)

CVSS: 7.8EPSS: 0%CPEs: 1EXPL: 0

Git for Windows is the Windows port of Git. Prior to version 2.40.1, any user of Git CMD who starts the command in an untrusted directory is impacted by an Uncontrolles Search Path Element vulnerability. Maliciously-placed `doskey.exe` would be executed silently upon running Git CMD. The problem has been patched in Git for Windows v2.40.1. As a workaround, avoid using Git CMD or, if using Git CMD, avoid starting it in an untrusted directory. • https://github.com/git-for-windows/git/releases/tag/v2.40.1.windows.1 https://github.com/git-for-windows/git/security/advisories/GHSA-gq5x-v87v-8f7g • CWE-427: Uncontrolled Search Path Element •

CVSS: 7.8EPSS: 0%CPEs: 1EXPL: 0

Git for Windows, the Windows port of Git, ships with an executable called `connect.exe`, which implements a SOCKS5 proxy that can be used to connect e.g. to SSH servers via proxies when certain ports are blocked for outgoing connections. The location of `connect.exe`'s config file is hard-coded as `/etc/connectrc` which will typically be interpreted as `C:\etc\connectrc`. Since `C:\etc` can be created by any authenticated user, this makes `connect.exe` susceptible to malicious files being placed there by other users on the same multi-user machine. The problem has been patched in Git for Windows v2.40.1. As a workaround, create the folder `etc` on all drives where Git commands are run, and remove read/write access from those folders. • https://github.com/git-for-windows/git/releases/tag/v2.40.1.windows.1 https://github.com/git-for-windows/git/security/advisories/GHSA-g4fv-xjqw-q7jm • CWE-427: Uncontrolled Search Path Element •

CVSS: 3.3EPSS: 0%CPEs: 3EXPL: 0

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. • http://www.openwall.com/lists/oss-security/2023/04/25/2 https://axcheron.github.io/exploit-101-format-strings/#writing-to-the-stack https://github.com/git-for-windows/git/releases/tag/v2.40.1.windows.1 https://github.com/git-for-windows/git/security/advisories/GHSA-9w66-8mq8-5vm8 https://github.com/msys2/MINGW-packages/pull/10461 https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PI7FZ4NNR5S5J5K6AMVQBH2JFP6NE4L7 https://lists.fedoraproject.org/archiv • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') CWE-134: Use of Externally-Controlled Format String •

CVSS: 7.3EPSS: 0%CPEs: 1EXPL: 0

Git for Windows is the Windows port of the revision control system Git. Prior to Git for Windows version 2.39.2, by carefully crafting DLL and putting into a subdirectory of a specific name living next to the Git for Windows installer, Windows can be tricked into side-loading said DLL. This potentially allows users with local write access to place malicious payloads in a location where automated upgrades might run the Git for Windows installer with elevation. Version 2.39.2 contains a patch for this issue. Some workarounds are available. • https://attack.mitre.org/techniques/T1574/002 https://github.com/git-for-windows/git/releases/tag/v2.39.2.windows.1 https://github.com/git-for-windows/git/security/advisories/GHSA-gf48-x3vr-j5c3 https://github.com/git-for-windows/git/security/advisories/GHSA-p2x9-prp4-8gvq https://learn.microsoft.com/en-us/windows/win32/controls/cookbook-overview?redirectedfrom=MSDN#using-comctl32dll-version-6-in-an-application-that-uses-only-standard-extensions https://learn.microsoft.com/en-us/windows/win32& • CWE-426: Untrusted Search Path •

CVSS: 8.6EPSS: 0%CPEs: 1EXPL: 0

Git for Windows is the Windows port of the revision control system Git. Prior to Git for Windows version 2.39.2, when `gitk` is run on Windows, it potentially runs executables from the current directory inadvertently, which can be exploited with some social engineering to trick users into running untrusted code. A patch is available in version 2.39.2. As a workaround, avoid using `gitk` (or Git GUI's "Visualize History" functionality) in clones of untrusted repositories. • https://github.com/git-for-windows/git/commit/49a8ec9dac3cec6602f05fed1b3f80a549c8c05c https://github.com/git-for-windows/git/releases/tag/v2.39.2.windows.1 https://github.com/git-for-windows/git/security/advisories/GHSA-wxwv-49qw-35pm https://wiki.tcl-lang.org/page/exec • CWE-426: Untrusted Search Path •