Security Resilience

CVE-2023-22743

LPE in Git For Windows Project Git For Windows ≤ 2.39.2

Published
14 February 2023
Modified
21 November 2024
Patch / advisory
CVSS Score v3.1 7.2
Click a component to see what it means
Raw vectorCVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H
EPSS Score 0.0035 29th percentile
Risk Priority 50 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2023-22743 is a high-severity Untrusted Search Path (CWE-426) vulnerability in Git For Windows Project Git For Windows. Its CVSS base score is 7.2 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Privilege Escalation (T1068); ranked at the 29th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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. Never leave untrusted files in the Downloads folder or its sub-folders before executing the Git for Windows installer, or move the installer into a different directory before executing it.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1068 Exploitation for Privilege Escalation Privilege Escalation
Adversaries may exploit software vulnerabilities in an attempt to elevate privileges.
T1547.008 LSASS Driver Persistence
Adversaries may modify or add LSASS drivers to obtain persistence on compromised systems.
T1574 Hijack Execution Flow Stealth
Adversaries may execute their own malicious payloads by hijacking the way operating systems run programs.
T1574.001 DLL Stealth
Adversaries may abuse dynamic-link library files (DLLs) in order to achieve persistence, escalate privileges, and evade defenses.
T1574.006 Dynamic Linker Hijacking Stealth
Adversaries may execute their own malicious payloads by hijacking environment variables the dynamic linker uses to load shared libraries.
T1574.007 Path Interception by PATH Environment Variable Stealth
Adversaries may execute their own malicious payloads by hijacking environment variables used to load libraries.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2023-23618Same product: Git For Windows Project Git For Windows
CVE-2023-29011Same product: Git For Windows Project Git For Windows
CVE-2023-29012Same product: Git For Windows Project Git For Windows
CVE-2023-21763Shared CWE-426
CVE-2024-36507Shared CWE-426
CVE-2023-41105Shared CWE-426
CVE-2024-28133Shared CWE-426
CVE-2023-36393Shared CWE-426
CVE-2023-39202Shared CWE-426
CVE-2026-48346Shared CWE-426

Affected Assets

git for windows project
git for windows
≤ 2.39.2

Mitigating Controls

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-05 full match
blocks

Preventing execution of unauthorized code directly blocks the malicious binaries that an untrusted search path would load.

PR.PS-06 mostly match
blocks

Secure development practices include avoiding or sanitizing externally influenced search paths in application code.

PR.PS-01 partial match
blocks

Hardened configuration baselines can enforce safe search paths and restrict environment variables that enable the weakness.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing can discover search-path issues but does not itself prevent them in production code.

prevents

Training in secure coding practices can make developers aware of the risks of relying on externally-supplied search paths (PATH, LD_PRELOAD, APPHOME) and prompt them to use absolute paths or sanitize the environment, but this is a fallible human-practice effect on a specific implementation defect, with the strongest control being code review and security testing rather than awareness.

prevents

Secure coding standards require absolute paths or integrity-checked search paths, directly mitigating CWE-426.

prevents

A.8.30 carries its effect through the secure design, coding and testing practices (8.25–8.29) its contract requires of the supplier, so a faithful implementation reduces ordinary implementation-level software CWEs like CWE-426 in delivered code, but the practice is fallible and the clause sits at its declared ceiling of `partial`.

blocks

A.8.7's application allowlisting (guidance item a) can prevent the malicious binary an attacker plants in the search path from being installed or executed, which blocks a meaningful slice of CWE-426 exploitation; however, the weakness is a code-level defect in how the target program resolves paths, and allowlisting does not reach cases where the attacker abuses existing legitimate binaries in writable directories, hijacks DLLs, or controls the search path itself through other means.

References