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-2024-6257

CVE-2024-6257: HashiCorp Go-getter RCE Vulnerability

CVE-2024-6257 is a remote code execution vulnerability in HashiCorp Go-getter that exploits malicious Git configurations to execute arbitrary code. This article covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2024-6257 Overview

HashiCorp's go-getter library contains a command injection vulnerability that allows attackers to achieve arbitrary code execution through malicious manipulation of Git configurations. The library can be coerced into executing Git update operations on an existing maliciously modified Git configuration, enabling attackers to execute arbitrary code on affected systems.

Critical Impact

Attackers can leverage malicious Git configurations to execute arbitrary code on systems using vulnerable versions of the go-getter library, potentially leading to full system compromise.

Affected Products

  • HashiCorp go-getter library
  • Applications and tools that depend on go-getter for source retrieval
  • HashiCorp products utilizing the go-getter library for module/configuration fetching

Discovery Timeline

  • 2024-06-25 - CVE-2024-6257 published to NVD
  • 2025-12-11 - Last updated in NVD database

Technical Details for CVE-2024-6257

Vulnerability Analysis

This vulnerability is classified as CWE-77 (Command Injection), which occurs when an application constructs all or part of a command using externally-influenced input without properly neutralizing special elements. In the context of go-getter, the library fails to adequately sanitize Git configuration settings before executing Git operations.

The go-getter library is a widely-used Go library designed to download files or directories from various sources using URL-like syntax. It supports multiple protocols including Git, HTTP, S3, and others. The vulnerability specifically affects the Git getter functionality, where an attacker with the ability to modify the local Git configuration can inject malicious commands that execute when the library performs Git update operations.

Root Cause

The root cause of this vulnerability lies in insufficient validation and sanitization of Git configuration parameters before they are used in Git command execution. When go-getter performs Git operations, it relies on the local Git configuration which can contain executable hooks and custom command configurations. If an attacker has previously modified this Git configuration, subsequent go-getter operations can trigger execution of attacker-controlled commands.

The library does not properly isolate or validate the Git environment before executing update operations, allowing malicious configuration values to influence command execution.

Attack Vector

The attack requires network-based interaction where a user must be coerced into performing a go-getter operation that triggers a Git update on a repository with a maliciously crafted Git configuration. The attack flow typically involves:

  1. An attacker prepares a malicious Git repository with specially crafted configuration
  2. The attacker convinces a victim to clone or update from this repository using an application that leverages go-getter
  3. Malicious Git configuration hooks or command overrides execute arbitrary code in the context of the victim's user session

The vulnerability can be exploited through core Git configuration mechanisms such as core.sshCommand, core.gitProxy, or Git hooks that are specified in the repository's configuration. When go-getter performs update operations, these malicious configurations execute with the privileges of the user running the application.

Detection Methods for CVE-2024-6257

Indicators of Compromise

  • Unexpected Git configuration modifications in .git/config or global Git configuration files
  • Suspicious command executions spawned from Git processes or applications using go-getter
  • Unusual network connections initiated during source retrieval operations
  • Modified or newly created Git hooks in repository directories

Detection Strategies

  • Monitor process execution trees for suspicious child processes spawned from Git operations
  • Implement file integrity monitoring on Git configuration files to detect unauthorized modifications
  • Audit applications in your environment that utilize the go-getter library for source retrieval
  • Review dependency manifests (go.mod, go.sum) to identify usage of vulnerable go-getter versions

Monitoring Recommendations

  • Enable detailed logging for applications that perform automated source retrieval operations
  • Configure endpoint detection and response (EDR) solutions to alert on suspicious Git-related command chains
  • Monitor for creation or modification of Git hook scripts in unexpected locations
  • Implement network monitoring to detect unusual outbound connections during build or deployment processes

How to Mitigate CVE-2024-6257

Immediate Actions Required

  • Identify all applications and services in your environment that depend on HashiCorp's go-getter library
  • Review the HashiCorp Security Advisory HCSEC-2024-13 for specific version guidance
  • Update go-getter to the latest patched version as recommended by HashiCorp
  • Audit existing Git repositories for suspicious configuration entries

Patch Information

HashiCorp has released security patches addressing this vulnerability. Organizations should consult the official HashiCorp Security Advisory HCSEC-2024-13 for the specific patched version and update their go-getter dependency accordingly. The patch implements proper sanitization of Git configurations before executing Git operations.

Workarounds

  • Restrict the sources from which applications using go-getter can retrieve content to trusted repositories only
  • Implement network-level controls to limit outbound connectivity from build and deployment systems
  • Run applications that use go-getter with minimal privileges and in isolated environments
  • Consider using alternative source retrieval mechanisms for untrusted content sources until patching is complete

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechHashicorp Go Getter

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.39%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-77
  • Vendor Resources
  • HashiCorp Security Advisory HCSEC-2024-13
  • 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