CVE-2022-24765
6.0 · MEDIUMOverview
CVE-2022-24765 is a medium-severity vulnerability affecting git-scm git. It was published on April 12, 2022 and has a CVSS 3.1 base score of 6.0 (MEDIUM).
This vulnerability has a CVSS 3.1 base score of 6.0, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.
Technical Description
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 fro
Remediation
Check the references section for vendor advisories and patches from git-scm. Update git to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.
Affected Products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| git-scm | git | >= 0, < 2.35.2 | Affected |
| apple | xcode | >= 0, < 13.4 | Affected |
References
Frequently Asked Questions
What is CVE-2022-24765?
CVE-2022-24765 is a medium-severity vulnerability affecting git-scm git. It was published on April 12, 2022 and has a CVSS 3.1 base score of 6.0 (MEDIUM).
How severe is CVE-2022-24765?
This vulnerability has a CVSS 3.1 base score of 6.0, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.
How do I fix or remediate CVE-2022-24765?
Check the references section for vendor advisories and patches from git-scm. Update git to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.
How can CyberStrike help with CVE-2022-24765?
CyberStrike's AI-powered security agents can automatically detect CVE-2022-24765 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.
How CyberStrike Helps
AI agents map your attack surface to find vulnerabilities like this one.
Automated penetration testing that runs continuously, not just quarterly.
AI-driven PR review catches vulnerable dependencies before they ship.
Browser-based exploitation validates findings with real proof-of-concept.
Related MEDIUM CVEs from 2022
View all →OroPlatform is a PHP Business Application Platform. In affected versions the email template preview
Dell EMC AppSync versions 3.9 to 4.3 contain a clickjacking vulnerability in AppSync. A remote unaut
Select Dell Client Commercial and Consumer platforms contain a pre-boot direct memory access (DMA) v
A cross-site scripting (XSS) vulnerability has been reported to affect QNAP device running Proxy Ser
In JetBrains IntelliJ IDEA before 2022.1 local code execution via custom Pandoc path was possible
In JetBrains IntelliJ IDEA before 2022.1 local code execution via HTML descriptions in custom JSON s
In JetBrains IntelliJ IDEA before 2022.1 local code execution via workspace settings was possible
In JetBrains IntelliJ IDEA before 2022.1 local code execution via links in Quick Documentation was p
In JetBrains Rider before 2022.1 local code execution via links in ReSharper Quick Documentation was
All versions of package com.alibaba.oneagent:one-java-agent-plugin are vulnerable to Arbitrary File
Improper Restriction of Rendered UI Layers or Frames in GitHub repository polonel/trudesk prior to 1
Dm-verity is used for extending root-of-trust to root filesystems. LoadPin builds on this property t