QID 376576

Date Published: 2022-05-04

QID 376576: Git LFS Remote Code Execution (RCE) Vulnerability (CVE-2022-24826)

Git is a revision control system, a tool to manage your source code history.

On Windows, if Git LFS operates on a malicious repository with a '..exe' file as well as a file named 'git.exe', and 'git.exe' is not found in 'PATH', the '..exe' program will be executed, permitting the attacker to execute arbitrary code.

Affected Versions:
Git LFS for Windows version from 2.12.1 prior to 3.1.3

NOTE:
This does not affect Unix systems.

QID Detection Logic:(Authenticated)
It checks for git-lfs.exe file version from HKLM\SYSTEM\ControlSet001\Control\Session Manager\Environment registry.

Successful exploitation of this vulnerability may allow an attacker to execute arbitrary code on the target system.

  • CVSS V3 rated as High - 7.8 severity.
  • CVSS V2 rated as Medium - 4.4 severity.
  • Solution
    Customers are advised to upgrade to Git for Windows 3.1.3 or 3.1.4 or later versions to remediate this vulnerability. For more information please visithere

    CVEs related to QID 376576

    Software Advisories
    Advisory ID Software Component Link
    Git LFS Advisory URL Logo github.com/git-lfs/git-lfs/security/advisories/GHSA-6rw3-3whw-jvjj

    © CVE.report 2026

    Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

    CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

    Free CVE JSON API cve.report/api

    CVE.report and Source URL Uptime Status status.cve.report