CVE-2022-24765

Description from NVD

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

Information Acquisition Date:2022-04-30T16:41Z
CVSS 2.0: 6.9 MEDIUM CVSS 3.x: 7.8 HIGH

▼ CVSS3 Vec CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

▼ CVSS2 Vec AV:L/AC:M/Au:N/C:C/I:C/A:C

NVD References

 https://github.com/git-for-windows/git/security/advisories/GHSA-vw2c-22j4-2fh2
     source:CONFIRM
     tags:Mitigation    Third Party Advisory    
 https://git-scm.com/book/en/v2/Appendix-A%3A-Git-in-Other-Environments-Git-in-Bash
     source:MISC
     tags:Vendor Advisory    
 https://git-scm.com/docs/git#Documentation/git.txt-codeGITCEILINGDIRECTORIEScode
     source:MISC
     tags:Vendor Advisory    
 [oss-security] 20220412 git v2.35.2 and friends for CVE-2022-24765
     source:MLIST
     tags:Mailing List    Third Party Advisory    

Refer to Information on External Sites

CVE InfomationExploits or more Infomation
mitreEXPLOIT DATABASE
NVD0day.today
vulmon.comgithub
CVE DetailsTwitter
JVN ENG JPN
Reconshell

Software Tag: Linux(2 tweets) Windows(7 tweets)



List of frequently cited URLs

URLNum of Times Referred to
https://github.blog/2022-04-12-git-security-vulnerability-a...3
https://twitter.com/GeekNewsBot/status/15144201883344117823
https://lore.kernel.org/git/xmqqv8veb5i6.fsf3

▼ Show Information from Twitter(11)


List of frequently cited URLs

URLNum of Times Referred to
github.blog3
twitter.com3
lore.kernel.org3

▼ Show Information from Twitter(11)


GitHub Search Results: Up to 10
NameURL
No Data

GitHub Search Results: Up to 10
NameURL
No Data

2023/02/28 Score : 2
Added Har-sia Database : 2022/04/13
Last Modified : 2023/02/28
Highest Scored Date : 2022/04/13
Highest Score : 35