Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2022-24765

6.0 · MEDIUM
Published Apr 12, 2022 git-scm CWE-427 EPSS 1.01% (61th pctl)

Overview

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

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.