The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-6104

CVE-2024-6104: HashiCorp go-retryablehttp Info Disclosure

CVE-2024-6104 is an information disclosure vulnerability in HashiCorp go-retryablehttp that exposes HTTP basic auth credentials in log files. This article covers the technical details, affected versions, and mitigation.

Published: January 28, 2026

CVE-2024-6104 Overview

CVE-2024-6104 is a sensitive information exposure vulnerability in HashiCorp's go-retryablehttp library, a popular Go package used for HTTP requests with automatic retries. Prior to version 0.7.7, the library failed to sanitize URLs when writing them to its log file, potentially exposing sensitive HTTP basic authentication credentials in plaintext within log files.

Critical Impact

Applications using go-retryablehttp versions prior to 0.7.7 may inadvertently log HTTP basic authentication credentials, potentially exposing usernames and passwords to unauthorized parties with access to log files.

Affected Products

  • HashiCorp go-retryablehttp versions prior to 0.7.7
  • Applications and services built using vulnerable versions of go-retryablehttp
  • HashiCorp products and third-party tools that depend on go-retryablehttp

Discovery Timeline

  • 2024-06-24 - CVE-2024-6104 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2024-6104

Vulnerability Analysis

This vulnerability falls under CWE-532 (Insertion of Sensitive Information into Log File), a common security weakness where applications inadvertently write sensitive data to log files. The go-retryablehttp library provides HTTP client functionality with built-in retry logic, making it widely used in distributed systems and cloud infrastructure tooling.

When HTTP requests include basic authentication credentials embedded in the URL (in the format https://username:password@example.com/path), these credentials were written to log files without sanitization. This exposure occurs because the library logs the full URL during retry operations and error conditions without masking or removing the userinfo component of the URL.

The vulnerability requires local access to exploit, as an attacker would need to read the log files containing the exposed credentials. However, in shared hosting environments, containerized deployments, or scenarios where log aggregation services collect application logs, this could expand the attack surface significantly.

Root Cause

The root cause of CVE-2024-6104 lies in insufficient input sanitization within the logging functionality of go-retryablehttp. The library's logging mechanism directly writes request URLs to log files without first parsing and removing the userinfo (username:password) portion of the URL. According to RFC 3986, the userinfo subcomponent of a URL authority may contain sensitive authentication credentials that should not be exposed in logs or other persistent storage mechanisms.

Attack Vector

The attack vector for this vulnerability is local, requiring an attacker to have access to the system where the vulnerable application's logs are stored. Exploitation scenarios include:

An attacker with read access to log files on the affected system can extract HTTP basic authentication credentials that were logged during retry operations. This is particularly concerning in multi-tenant environments, shared hosting platforms, or when log files are inadvertently exposed through misconfigured log aggregation services.

The vulnerability does not require user interaction and can be exploited by any process or user with read permissions on the log files. The impact is limited to confidentiality, as the exposed credentials could be used to authenticate to the target services.

Detection Methods for CVE-2024-6104

Indicators of Compromise

  • Presence of URLs containing userinfo components (username:password@) in application log files
  • Log entries from go-retryablehttp containing HTTP basic auth credentials in plaintext
  • Unexpected access patterns to log files or log directories
  • Authentication attempts from unusual sources using credentials that were only used in go-retryablehttp requests

Detection Strategies

  • Audit application dependencies to identify use of go-retryablehttp versions prior to 0.7.7
  • Implement log file scanning to detect patterns matching URL-embedded credentials (regex patterns for ://[^:]+:[^@]+@)
  • Monitor file access events on log directories for suspicious read operations
  • Review dependency manifests (go.mod, go.sum) across your codebase for vulnerable versions

Monitoring Recommendations

  • Configure SentinelOne agents to monitor for sensitive data patterns in log files
  • Implement centralized log analysis to detect credential exposure across all applications
  • Set up alerts for unusual log file access patterns or bulk log file reads
  • Monitor for authentication attempts using credentials that may have been exposed through logged URLs

How to Mitigate CVE-2024-6104

Immediate Actions Required

  • Upgrade go-retryablehttp to version 0.7.7 or later immediately
  • Audit existing log files for exposed credentials and rotate any potentially compromised credentials
  • Review applications using go-retryablehttp and assess exposure risk
  • Implement log file access controls to limit who can read application logs

Patch Information

HashiCorp has addressed this vulnerability in go-retryablehttp version 0.7.7. The fix implements URL sanitization that removes the userinfo component before logging URLs. Organizations should update their Go dependencies to use the patched version.

To update your Go application, modify your go.mod file to require the patched version and run go mod tidy to update dependencies. For additional security guidance, consult the HashiCorp Security Discussion forum.

Workarounds

  • If immediate upgrade is not possible, implement a custom logger that sanitizes URLs before logging
  • Configure go-retryablehttp to use a null logger or disable debug logging in production environments
  • Avoid using HTTP basic authentication with credentials embedded in URLs when possible
  • Restrict file system permissions on log directories to minimize exposure if credentials are logged
  • Implement log rotation and secure deletion policies to limit the window of exposure
bash
# Update go-retryablehttp to patched version
go get github.com/hashicorp/go-retryablehttp@v0.7.7
go mod tidy

# Verify the updated version
go list -m github.com/hashicorp/go-retryablehttp

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechHashicorp Retryablehttp

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-532
  • Vendor Resources
  • HashiCorp Security Discussion
  • Latest CVEs
  • CVE-2026-40322: SiYuan Knowledge Management RCE Vulnerability

  • CVE-2026-40318: SiYuan Path Traversal Vulnerability

  • CVE-2026-40259: SiYuan Auth Bypass Vulnerability

  • CVE-2026-40255: AdonisJS HTTP Server CSRF 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