Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-47874

CVE-2021-47874: VFS for Git Privilege Escalation Flaw

CVE-2021-47874 is a privilege escalation vulnerability in VFS for Git 1.0.21014.1 caused by an unquoted service path. Attackers can inject malicious code to gain LocalSystem privileges. This article covers technical details, impact, and mitigation.

Published: January 23, 2026

CVE-2021-47874 Overview

CVE-2021-47874 is an unquoted service path vulnerability affecting VFS for Git (Virtual File System for Git) version 1.0.21014.1. The vulnerability exists in the GVFS.Service Windows service, which is installed with an unquoted binary path containing spaces. This configuration flaw allows local attackers with limited privileges to execute arbitrary code with LocalSystem privileges by placing a malicious executable in a location that Windows will search before the legitimate service binary.

Critical Impact

Local attackers can achieve privilege escalation to LocalSystem by exploiting the unquoted service path, gaining complete control over the affected Windows system during service startup or system reboot.

Affected Products

  • VFS for Git 1.0.21014.1
  • GVFS.Service Windows Service Component
  • Windows systems with VFS for Git installed in paths containing spaces

Discovery Timeline

  • 2026-01-21 - CVE CVE-2021-47874 published to NVD
  • 2026-01-21 - Last updated in NVD database

Technical Details for CVE-2021-47874

Vulnerability Analysis

This vulnerability is classified as CWE-428 (Unquoted Search Path or Element), a well-known Windows service misconfiguration that has been exploited for privilege escalation for many years. When VFS for Git is installed, the GVFS.Service is registered with a service binary path that is not enclosed in quotation marks. If the installation path contains spaces (which is common for paths under C:\Program Files), Windows service control manager (SCM) will attempt to resolve the path by checking multiple locations.

The local attack vector requires an attacker to have write access to directories that Windows will search before reaching the legitimate service executable. When the service starts (either manually, automatically at boot, or upon system reboot), Windows will execute the malicious binary with the elevated privileges of the service account—in this case, LocalSystem, which has the highest privilege level on a Windows system.

Root Cause

The root cause is improper service registration during the VFS for Git installation process. When the Windows service is created, the ImagePath registry value under HKLM\SYSTEM\CurrentControlSet\Services\GVFS.Service stores the path to the service executable without surrounding quotation marks. For paths containing spaces, such as C:\Program Files\GVFS\GVFS.Service.exe, Windows interprets this as potentially multiple components and searches for executables in the following order:

  1. C:\Program.exe
  2. C:\Program Files\GVFS\GVFS.Service.exe

If an attacker can place a malicious executable named Program.exe in the C:\ directory (or similar locations depending on the path structure), it will be executed instead of the legitimate service binary.

Attack Vector

The attack requires local access to the vulnerable system with sufficient privileges to write files to directories that Windows will search during path resolution. The exploitation flow involves:

  1. Identifying the unquoted service path in the GVFS.Service registry entry
  2. Determining which directories the attacker has write access to
  3. Placing a malicious executable (e.g., Program.exe) in the appropriate location
  4. Waiting for or triggering a service restart or system reboot
  5. The malicious payload executes with LocalSystem privileges

This vulnerability is documented in public exploit databases. Technical details and proof-of-concept information can be found in the Exploit-DB #49661 entry and the VulnCheck Advisory for VFS for Git.

Detection Methods for CVE-2021-47874

Indicators of Compromise

  • Unexpected executables named Program.exe or similar in root directories or intermediate path locations
  • New or modified files in C:\ or C:\Program Files\ directories that do not match legitimate software
  • Service execution events showing unusual parent-child process relationships with GVFS.Service
  • Registry modifications to the GVFS.Service ImagePath value

Detection Strategies

  • Query Windows services for unquoted paths using PowerShell: Get-WmiObject win32_service | Where-Object {$_.PathName -notmatch '^"' -and $_.PathName -match '\s'}
  • Monitor for file creation events in directories that could be exploited (e.g., C:\Program.exe)
  • Implement application whitelisting to prevent execution of unauthorized binaries from sensitive locations
  • Use endpoint detection and response (EDR) solutions to monitor service startup behavior and privilege escalation attempts

Monitoring Recommendations

  • Enable Windows Security Event logging for process creation events (Event ID 4688) with command line auditing
  • Monitor service control manager events (Event ID 7045) for new service installations
  • Implement file integrity monitoring on root directories and Program Files paths
  • Alert on processes spawned by services that do not match expected executable hashes

How to Mitigate CVE-2021-47874

Immediate Actions Required

  • Manually correct the service path by adding quotation marks to the GVFS.Service registry entry
  • Audit the system for any suspicious executables in locations that could be exploited
  • Restrict write permissions on directories in the service path hierarchy
  • Consider temporarily disabling the GVFS.Service until the path is corrected

Patch Information

Organizations should check the VFS for Git Project for updated versions that address this vulnerability with a properly quoted service path during installation. Review the VulnCheck Advisory for the latest remediation guidance.

Workarounds

  • Manually fix the registry entry by adding quotation marks around the ImagePath value
  • Use the sc config command to reconfigure the service with a properly quoted path
  • Implement strict file system permissions to prevent unauthorized write access to exploitable directories
  • Deploy application control policies to block execution of unsigned binaries from non-standard locations
bash
# Configuration example - Fix unquoted service path via registry
# Open Registry Editor and navigate to:
# HKLM\SYSTEM\CurrentControlSet\Services\GVFS.Service
# Modify ImagePath from:
# C:\Program Files\GVFS\GVFS.Service.exe
# To:
# "C:\Program Files\GVFS\GVFS.Service.exe"

# Alternative: Use sc.exe command (run as Administrator)
sc config "GVFS.Service" binPath= "\"C:\Program Files\GVFS\GVFS.Service.exe\""

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechVfs For Git

  • SeverityHIGH

  • CVSS Score8.5

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-428
  • Technical References
  • VFS for Git Project

  • Exploit-DB #49661

  • VulnCheck Advisory for VFS for Git
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English