BlackTreeCVE Intelligence
← Back to the CVE catalogue
Full vulnerability report · 2022
CVE-2022-24765High confidence

Uncontrolled search for the Git directory in Git for Windows

git-for-windows · git

Official source article: GitHub GHSA-VW2C-22J4-2FH2 ↗. Check the applicable product and release in the original source.

6.0MediumCVSS 3.1
Recommended action
Scheduled

Medium technical severity with no CISA KEV confirmation; remediate through the normal risk-based patch cycle unless local exposure raises the priority.

Mitigation available
R
Operational reassessment

Published severity in operational context

Open reassessment dashboard →
Published severityMediumOperational priority:Low, lowered one band.downgradedsince 16 Dec 2025

Evidence used

  • No CISA KEV confirmation is currently recorded.
  • Exploitation requires an existing local or physical foothold with privileges.
  • EPSS is 1.01% for the current model date.

Compensating controls

  • Apply the linked authoritative mitigation while planning the permanent fix.
  • Restrict local access and enforce least privilege on affected hosts.
  • Monitor vendor guidance and exploitation sources for a material change.

Verification

  1. Confirm that the asset runs git-for-windows git and falls inside the recorded affected range.
  2. Recheck the vendor advisory before scheduling a change because no verified fixed version is currently retained.
  3. Validate exposure, authentication requirements and compensating controls in the actual environment.
  4. Reopen this reassessment when CVSS, KEV, EPSS, exploit evidence or remediation changes.
Mitigation target: No default targetRemediation target: Normal maintenance

This automated reassessment organises public evidence. It does not know asset exposure, business impact or control effectiveness and does not replace CVSS or a human risk decision.

Distribution package intelligence

Release-specific package status

Alpine, Debian findings are scoped to the named distribution, release and source package. An absent finding does not mean a package is unaffected.

10 package states
Repository candidate not checked

A published vendor fix does not prove that a matching update is enabled and installable on a particular asset. Confirm the local package candidate before scheduling remediation.

Distribution releaseSource packageVendor stateFixed versionEvidence
Alpine v3.23v3.23 · communitylibgit2Vendor fix publishedAlpine records a security fix at this version. An absent entry does not mean the package is unaffected.1.4.4-r0Alpine Security Database ↗Source updated 11 Sep 2026
Alpine v3.23v3.23 · maingitVendor fix publishedAlpine records a security fix at this version. An absent entry does not mean the package is unaffected.2.35.2-r0Alpine Security Database ↗Source updated 3 Oct 2026
Alpine v3.22v3.22 · communitylibgit2Vendor fix publishedAlpine records a security fix at this version. An absent entry does not mean the package is unaffected.1.4.4-r0Alpine Security Database ↗Source updated 11 Sep 2026
Alpine v3.22v3.22 · maingitVendor fix publishedAlpine records a security fix at this version. An absent entry does not mean the package is unaffected.2.35.2-r0Alpine Security Database ↗Source updated 3 Oct 2026
Alpine v3.21v3.21 · communitylibgit2Vendor fix publishedAlpine records a security fix at this version. An absent entry does not mean the package is unaffected.1.4.4-r0Alpine Security Database ↗Source updated 19 Aug 2026
Alpine v3.21v3.21 · maingitVendor fix publishedAlpine records a security fix at this version. An absent entry does not mean the package is unaffected.2.35.2-r0Alpine Security Database ↗Source updated 3 Oct 2026
Debian trixietrixie · sourcegitVendor fix publishedDebian records a fixed source-package version for this release.1:2.35.2-1Debian Security Tracker ↗Source updated 6 Oct 2026
Debian bookwormbookworm · sourcegitVendor fix publishedDebian records a fixed source-package version for this release.1:2.35.2-1Debian Security Tracker ↗Source updated 6 Oct 2026
Debian forkyforky · sourcegitVendor fix publishedDebian records a fixed source-package version for this release.1:2.35.2-1Debian Security Tracker ↗Source updated 6 Oct 2026
Debian sidsid · sourcegitVendor fix publishedDebian records a fixed source-package version for this release.1:2.35.2-1Debian Security Tracker ↗Source updated 6 Oct 2026
Optional official sources

National CERT insights
?CERT means Computer Emergency Response Team; CSIRT is the closely related term Computer Security Incident Response Team.

Choose official national sources for this report. Each advisory shows its original language. Your selection is remembered on this device and included in shared links.

Official European source

ENISA European Vulnerability Database

Official EUVD identifiers, advisory evidence and known-exploited context. Missing fields are not treated as evidence of low risk.

1 current
ENISA EUVD identifier

EUVD-2022-29592

No EUVD known-exploited evidence

ENISA has published the identifier mapping but no EUVD description has been stored yet.

EUVD state
Present in the current official mapping
Known exploitation
Not present in the current ENISA EUVD known-exploited dataset. This is not proof of no exploitation.
ENISA score
Not supplied in the stored EUVD record
Advisory evidence
No linked advisory details stored yet
Recommended actionScheduled

Medium technical severity with no CISA KEV confirmation; remediate through the normal risk-based patch cycle unless local exposure raises the priority.

Mitigation available
01

What, why and how

Git for Windows is a fork of Git containing Windows-specific patches. This vulnerability affects users working on multi-user machines, where untrusted parties have write access to the same hard disk. Those untrusted parties could create the folder `C:\.git`, which would be picked up by Git operations run supposedly outside a repository while searching for a Git directory. Git would then respect any config in said Git directory. Git Bash users who set `GIT_PS1_SHOWDIRTYSTATE` are vulnerable as well. Users who installed posh-gitare vulnerable simply by starting a PowerShell. Users of IDEs such as Visual Studio are vulnerable: simply creating a new project would already read and respect the config specified in `C:\.git\config`. Users of the Microsoft fork of Git are vulnerable simply by starting a Git Bash. The problem has been patched in Git for Windows v2.35.2. Users unable to upgrade may create the folder `.git` on all drives where Git commands are run, and remove read/write access from those folders as a workaround. Alternatively, define or extend `GIT_CEILING_DIRECTORIES` to cover the _parent_ directory of the user profile, e.g. `C:\Users` if the user profile is located in `C:\Users\my-user-name`.

What

Git for Windows is a fork of Git containing Windows-specific patches. This vulnerability affects users working on multi-user machines, where untrusted parties have write access to the same hard disk. Those untrusted parties could create the folder `C:\.git`, which would be picked up by Git operations run supposedly outside a repository while searching for a Git directory. Git would then respect any config in said Git directory. Git Bash users who set `GIT_PS1_SHOWDIRTYSTATE` are vulnerable as well. Users who installed posh-gitare vulnerable simply by starting a PowerShell. Users of IDEs such as Visual Studio are vulnerable: simply creating a new project would already read and respect the config specified in `C:\.git\config`. Users of the Microsoft fork of Git are vulnerable simply by starting a Git Bash. The problem has been patched in Git for Windows v2.35.2. Users unable to upgrade may create the folder `.git` on all drives where Git commands are run, and remove read/write access from those folders as a workaround. Alternatively, define or extend `GIT_CEILING_DIRECTORIES` to cover the _parent_ directory of the user profile, e.g. `C:\Users` if the user profile is located in `C:\Users\my-user-name`.

Why

The product uses a fixed or controlled search path to find resources, but one or more locations in that path can be under the control of unintended actors.

How

An attacker operating through local access may attempt exploitation with low privileges. If successful, the issue may cause the confidentiality, integrity or availability impact described by the vendor.

What

Git for Windows is a fork of Git containing Windows-specific patches. This vulnerability affects users working on multi-user machines, where untrusted parties have write access to the same hard disk. Those untrusted parties could create the folder `C:\.git`, which would be picked up by Git operations run supposedly outside a repository while searching for a Git directory. Git would then respect any config in said Git directory. Git Bash users who set `GIT_PS1_SHOWDIRTYSTATE` are vulnerable as well. Users who installed posh-gitare vulnerable simply by starting a PowerShell. Users of IDEs such as Visual Studio are vulnerable: simply creating a new project would already read and respect the config specified in `C:\.git\config`. Users of the Microsoft fork of Git are vulnerable simply by starting a Git Bash. The problem has been patched in Git for Windows v2.35.2. Users unable to upgrade may create the folder `.git` on all drives where Git commands are run, and remove read/write access from those folders as a workaround. Alternatively, define or extend `GIT_CEILING_DIRECTORIES` to cover the _parent_ directory of the user profile, e.g. `C:\Users` if the user profile is located in `C:\Users\my-user-name`.

Why

The product uses a fixed or controlled search path to find resources, but one or more locations in that path can be under the control of unintended actors.

How

An attacker operating through local access may attempt exploitation with low privileges. If successful, the issue may cause the confidentiality, integrity or availability impact described by the vendor.

02

Exploit reality and attack path

CVSS severity, EPSS forecast probability, public exploit material and CISA-confirmed exploitation are separate signals.

Observed exploitation
?Confirmed exploitation and public exploit material are separate signals. Attacks can occur without public proof-of-concept or exploit code.
No confirmed evidence

No CISA KEV match was present at the last successful refresh. This means no confirmation from that source, not proof of no exploitation.

Public PoC / exploit material
?Confirmed exploitation and public exploit material are separate signals. Attacks can occur without public proof-of-concept or exploit code.
None recorded

No exploit-tagged reference or CISA SSVC proof-of-concept state is currently recorded. Research may still exist outside the structured feeds.

Likely attack path
local access → Uncontrolled Search Path Element → cause the confidentiality, integrity or availability impact described by the vendor
Attack surface
Local
Privileges required
Low: a basic authenticated account is required
User interaction
Required interaction required
Attack complexity
High: exploitation depends on specific conditions
Security boundary
Unchanged: impact remains within the vulnerable component's security authority
Weakness
?CWE means Common Weakness Enumeration: a standard category for the underlying weakness.
CWE-427 ↗

CWE-427: Uncontrolled Search Path Element. The product uses a fixed or controlled search path to find resources, but one or more locations in that path can be under the control of unintended actors.

CVSS vector
?CVSS means Common Vulnerability Scoring System. The vector records the metric values used to calculate technical severity.
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N

Common Vulnerability Scoring System 3.1: the compact vector below is decoded into plain language.

AVLocalAttack vector: The attacker needs local access to the vulnerable system.ACHighAttack complexity: Successful exploitation depends on specific conditions outside the attacker's direct control.PRLowPrivileges required: The attacker needs basic user-level privileges.UIRequiredUser interaction: Another user must perform an action for exploitation to succeed.SUnchangedScope: The security impact remains within the vulnerable component's authority.CHighConfidentiality impact: A successful attack can cause a major loss.IHighIntegrity impact: A successful attack can cause a major loss.ANoneAvailability impact: No direct loss is represented by this metric.
Post-exploitation / living off the land
The issue can support a local privilege or sandbox boundary transition; normal system utilities may then be available in the gained context.
CWE-427
A

Official authority intelligence

Only matched European and national findings are included. Language selectors and unavailable sources are omitted.

BSI · German · WID-SEC-2023-0561Xerox FreeFlow Print Server: Mehrere Schwachstellen

Ein entfernter, anonymer Angreifer kann mehrere Schwachstellen in Xerox FreeFlow Print Server ausnutzen, um die Vertraulichkeit, Verfügbarkeit und Integrität des Systems zu gefährden.

Official advisory ↗
BSI · German · WID-SEC-2022-0252git: Schwachstelle ermöglicht Privilegieneskalation

Ein lokaler Angreifer kann eine Schwachstelle in git und Ubuntu Linux ausnutzen, um seine Privilegien zu erhöhen.

Official advisory ↗
Cyber Security Agency of Singapore · English · CSA-SB-20220413Security Bulletin 13 Apr 2022

The Cyber Security Agency of Singapore included this CVE in its official Security Bulletin 13 Apr 2022, published on 13 April 2022. Open the linked bulletin for the product, severity and reference information published in that issue.

Official advisory ↗
CERT-FR · French · CERTFR-2022-AVI-467Multiples vulnérabilités dans le noyau Linux de SUSE

d?id=CVE-2022-22665 Référence CVE CVE-2022-22673 https://www.cve.org/CVERecord?id=CVE-2022-22673 Référence CVE CVE-2022-22674 https://www.cve.org/CVERecord?id=CVE-2022-22674 Référence CVE CVE-2022-22675 https://www.cve.org/CVERecord?id=CVE-2022-22675 Référence CVE CVE-2022-22677 https://www.cve.org/CVERecord?id=CVE-2022-22677 Référence CVE CVE-2022-22719 https://www.cve.org/CVERecord?id=CVE-2022-22719 Référence CVE CVE-2022-22720 https://www.cve.org/CVERecord?id=CVE-2022-22720 Référence CVE CVE-2022-22721 https://www.cve.org/CVERecord?id=CVE-2022-22721 Référence CVE CVE-2022-23308 https://www.cve.org/CVERecord?id=CVE-2022-23308 Référence CVE CVE-2022-24765 https://www.cve.org/CVERecord?id=CVE-2022-24765 Référence CVE CVE-2022-26693 https://www.cve.org/CVERecord?id=CVE-2022-26693 Référence CVE CVE-2022-26694 https://www.cve.org/CVERecord?id=CVE-2022-26694 Référence CVE CVE-2022-26697 https://www.cve.org/CVERecord?id=CVE-2022-26697 Référence CVE CVE-2022-26698 https://www.cve.org/CVERecord?id=CVE-2022-26698 Référence CVE CVE-2022-26700 https://www.cve.org/CVERecord?id=CVE-2022-26700 Référence CVE CVE-2022-26701 https://www.cve.org/CVERecord?id=CVE-2022-26701 Référence CVE CVE-2022-26702 https://www.cve.org/CVERecord?id=CVE-2022-26702 Référence CVE CVE-2022-26703 https://www.cve.org/CVERecord?id=

Official advisory ↗
CERT-FR · French · CERTFR-2022-AVI-466Multiples vulnérabilités dans les produits Apple

d?id=CVE-2022-22665 Référence CVE CVE-2022-22673 https://www.cve.org/CVERecord?id=CVE-2022-22673 Référence CVE CVE-2022-22674 https://www.cve.org/CVERecord?id=CVE-2022-22674 Référence CVE CVE-2022-22675 https://www.cve.org/CVERecord?id=CVE-2022-22675 Référence CVE CVE-2022-22677 https://www.cve.org/CVERecord?id=CVE-2022-22677 Référence CVE CVE-2022-22719 https://www.cve.org/CVERecord?id=CVE-2022-22719 Référence CVE CVE-2022-22720 https://www.cve.org/CVERecord?id=CVE-2022-22720 Référence CVE CVE-2022-22721 https://www.cve.org/CVERecord?id=CVE-2022-22721 Référence CVE CVE-2022-23308 https://www.cve.org/CVERecord?id=CVE-2022-23308 Référence CVE CVE-2022-24765 https://www.cve.org/CVERecord?id=CVE-2022-24765 Référence CVE CVE-2022-26693 https://www.cve.org/CVERecord?id=CVE-2022-26693 Référence CVE CVE-2022-26694 https://www.cve.org/CVERecord?id=CVE-2022-26694 Référence CVE CVE-2022-26697 https://www.cve.org/CVERecord?id=CVE-2022-26697 Référence CVE CVE-2022-26698 https://www.cve.org/CVERecord?id=CVE-2022-26698 Référence CVE CVE-2022-26700 https://www.cve.org/CVERecord?id=CVE-2022-26700 Référence CVE CVE-2022-26701 https://www.cve.org/CVERecord?id=CVE-2022-26701 Référence CVE CVE-2022-26702 https://www.cve.org/CVERecord?id=CVE-2022-26702 Référence CVE CVE-2022-26703 https://www.cve.org/CVERecord?id=

Official advisory ↗
CERT-FR · French · CERTFR-2022-AVI-337Multiples vulnérabilités dans les produits Microsoft

De multiples vulnérabilités ont été corrigées dans les produits Microsoft . Elles permettent à un attaquant de provoquer une atteinte à la confidentialité des données, une usurpation d'identité, une exécution de code à distance, une élévation de privilèges et un déni de service.

Official advisory ↗
JVN iPedia · Japanese · JVNDB-2022-015238Git における制御されていない検索パスの要素に関する脆弱性

Git には、制御されていない検索パスの要素に関する脆弱性が存在します。 本脆弱性は、CVE-2022-24765 と関連する脆弱性です。

Official advisory ↗
JVN iPedia · Japanese · JVNDB-2022-009728Git for Windows における制御されていない検索パスの要素に関する脆弱性

Git for Windows には、制御されていない検索パスの要素に関する脆弱性が存在します。

Official advisory ↗
KISA KrCERT/CC · Korean · KNVD-5571MS 4월 보안 위협에 따른 정기 보안 업데이트 권고

0 Windows 인쇄 스풀러 권한 상승 취약성 Windows Print Spooler Components CVE-2022-26789 Windows 인쇄 스풀러 권한 상승 취약성 Windows PowerShell CVE-2022-26788 PowerShell 권한 상승 취약성 Windows Print Spooler Components CVE-2022-26787 Windows 인쇄 스풀러 권한 상승 취약성 Windows Print Spooler Components CVE-2022-26786 Windows 인쇄 스풀러 권한 상승 취약성 Role: Windows Hyper-V CVE-2022-26785 Windows Hyper-V 공유 가상 하드 디스크 정보 공개 취약성 Windows Cluster Shared Volume (CSV) CVE-2022-26784 Windows CSV(클러스터 공유 볼륨) 서비스 거부 취약성 Role: Windows Hyper-V CVE-2022-26783 Windows Hyper-V 공유 가상 하드 디스크 정보 공개 취약성 Visual Studio CVE-2022-24767 GitHub: SYSTEM 사용자 계정으로 실행할 때 DLL 하이재킹에 취약한 Git for Windows 제거 프로그램 Visual Studio CVE-2022-24765 GitHub: Git for Windows에서 Git 디렉터리에 대한 제어되지 않은 검색 Windows Telephony Server CVE-2022-24550 Windows 전화 통신 서버 권한 상승 취약성 Windows AppX Package Manager CVE-2022-24549 Windows AppX 패키지 관리자 권한 상승 취약성 Windows Defender CVE-2022-24548 Microsoft Defender 서비스 거부 취약성 Windows Media CVE-2022-24547 Windows 디지털 미디어 수신기 권한 상승 취약성 Windows DWM Core Library CVE-2022-24546 Windows DWM 핵심 라이브러리 권한 상승 취약성 Windows Kerberos CVE-2022-24545 Windows Kerberos 원격 코드 실행 취약성 Windows Kerberos CVE-2022-24544 Windows Kerberos 권한 상승 취약성 Windows Upgrade Assistant CVE-2022-24543 Windows 업그레이드 도우미 원격 코드 실행 취약성 Windows Win32K CVE-2022-24542 Windows Win32k 권한 상승 취약성 Windows SMB CVE-2

Official advisory ↗
03

Patch and workaround

Operational remediation based on structured source evidence.

Status
?Patch availability is based on structured fixed-version fields and authoritative update references. If no fix is verified, check the vendor advisory before making a change.
Mitigation available
Affected
git: < 2.35.2
Fixed
No fixed version is explicitly recorded in the structured CVE data.
Action
Apply the mitigation in the linked authoritative guidance while planning the vendor's permanent fix.
Workaround
A mitigation or workaround reference is available from the source linked below; validate it against the affected product and version.
04

Evidence and provenance

Published 12 Apr 2022 · Last source change 16 Dec 2025, 17:47 UTC · CWE-427 · Uncontrolled Search Path Element

CVE recordCVE.org · 5.2
CVSS sourceCNA
EPSS source
?The date BlackTree first stored a score for this CVE from the daily FIRST EPSS feed.
FIRST · tracked since 2026-08-14
European sourceENISA EUVD · EUVD-2022-29592
Product sourceCNA
Remediation sourceCVE/CNA references
CWE sourceCNA
NVD statusNVD modified after enrichment

Core structured fields are present and their contributing authorities are shown above.

Material change intelligence

What changed after publication

View recent updates ↗

No material field changes have been recorded since change tracking began. Routine source refreshes and cosmetic edits are intentionally excluded.

Material fields only · duplicate refreshes suppressed · history retained for the configured operational retention period
Technical terms and abbreviations used in this report
CVE
Common Vulnerabilities and Exposures: the public identifier for one disclosed vulnerability.
CVSS
Common Vulnerability Scoring System: a technical severity framework; it is not patching priority by itself.
EPSS
Exploit Prediction Scoring System: FIRST's estimate of the probability that exploitation activity will be observed in the next 30 days; it is a forecast, not confirmation.
CWE
Common Weakness Enumeration: the standard category describing the underlying software or hardware weakness.
CNA
CVE Numbering Authority: an organisation authorised to assign and publish CVE records.
CISA ADP
Cybersecurity and Infrastructure Security Agency Authorized Data Publisher: structured enrichment added to a CVE record.
NVD
National Vulnerability Database: NIST's enrichment service for CVE records.
CERT / CSIRT
A computer security incident response team that publishes warnings or coordinates incident response.
PoC
Proof of concept: public material that demonstrates or helps reproduce exploitation.
CSAF
Common Security Advisory Framework: a machine-readable format for security advisories.
LoTL
Living off the land: abuse of legitimate tools or system functions during an attack.
Free version - for non-commercial use only.CVE-2022-24765 · cve.blacktree.nl