PT-2022-2372

CVE-2022-24765

·

تاريخ النشر

2022-04-12

·

تاريخ التحديث

2026-09-30

الوصف من

CVSS 3.1
7.8
عالية
المقاييسAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Git for Windows versions prior to 2.35.2 Git versions prior to the fix for this issue, exact version not specified
Description The issue is related to the possibility of creating a .git folder in a shared location, which could be exploited by an attacker to run arbitrary commands. This affects users working on multi-user machines where untrusted parties have write access to the same hard disk. The vulnerability can be exploited when Git operations are run outside a repository, and Git respects any config in the .git directory. Users of IDEs such as Visual Studio, Git Bash, and PowerShell are vulnerable. The estimated number of potentially affected devices is not specified.
Recommendations For Git for Windows versions prior to 2.35.2, update to version 2.35.2 or later to resolve the issue. For users unable to upgrade, 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:Usersmy-user-name. As a temporary workaround, consider restricting access to the .git directory to minimize the risk of exploitation.
قابلية الاستغلال
استغلال
إصلاح
التأثيرات
الباحثون
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
GHSA-VW2C-22J4-2FH2
ALSA-2023:2319
ALSA-2023_2319
ALSA-2023:2859
ALSA-2023_2859
ALT-PU-2022-1705
ALT-PU-2022-1718
ALT-PU-2023-4135
BIT-GIT-2022-24765
CESA-2023_2859
CLEANSTART-2026-EN85312
DLA-3239-1
DLA-3239-2
DSA-5332-1
MGASA-2022-0147
OESA-2022-1676
OPENSUSE-SU-2022_1260-1
OPENSUSE-SU-2022_1484-1
OPENSUSE-SU-2022_3283-1
OPENSUSE-SU-2022_3494-1
OPENSUSE-SU-2022_3495-1
OPENSUSE-SU-2024:12003-1
OPENSUSE-SU-2024:12005-1
OPENSUSE-SU-2024:12223-1
RHSA-2023:2319
RHSA-2023_2319
RHSA-2023:2859
RHSA-2023_2859
RHSA-2024:0407
SUSE-SU-2022:1260-1
SUSE-SU-2022_1260-1
SUSE-SU-2022:1306-1
SUSE-SU-2022_1306-1
SUSE-SU-2022:1484-1
SUSE-SU-2022_1484-1
SUSE-SU-2022:3283-1
SUSE-SU-2022_3283-1
SUSE-SU-2022:3494-1
SUSE-SU-2022_3494-1
SUSE-SU-2022:3495-1
USN-5376-1
USN-5376-2
USN-5376-3
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾