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
    • 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-7594

CVE-2024-7594: HashiCorp Vault Auth Bypass Vulnerability

CVE-2024-7594 is an authentication bypass flaw in HashiCorp Vault's SSH secrets engine that allows authorized users to authenticate as any host user. This article covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2024-7594 Overview

CVE-2024-7594 is an improper access control vulnerability affecting HashiCorp Vault's SSH secrets engine. The vulnerability exists because Vault did not require the valid_principals list to contain a value by default. When both the valid_principals and default_user fields of the SSH secrets engine configuration are left unset, an SSH certificate requested by an authorized Vault user could be exploited to authenticate as any user on the target host, leading to unauthorized access and potential privilege escalation.

Critical Impact

Authorized Vault users can obtain SSH certificates that allow authentication as any user on target hosts, potentially compromising entire systems and enabling lateral movement across infrastructure.

Affected Products

  • HashiCorp Vault Community Edition (versions prior to 1.17.6)
  • HashiCorp Vault Enterprise (versions prior to 1.17.6, 1.16.10, and 1.15.15)
  • OpenBao OpenBao

Discovery Timeline

  • 2024-09-26 - CVE-2024-7594 published to NVD
  • 2025-11-13 - Last updated in NVD database

Technical Details for CVE-2024-7594

Vulnerability Analysis

This vulnerability stems from insecure default configuration in HashiCorp Vault's SSH secrets engine. The SSH secrets engine provides a mechanism for generating signed SSH certificates that can be used for authentication to remote hosts. The security model relies on properly constraining which user principals (usernames) a certificate can authenticate as.

The vulnerability manifests when administrators configure the SSH secrets engine without explicitly setting the valid_principals list or the default_user field. In this misconfigured state, the secrets engine does not impose any restrictions on which principals can be included in generated certificates. This allows any authorized Vault user with permission to request SSH certificates to specify arbitrary principals, effectively granting them the ability to authenticate as any user on hosts that trust the Vault CA.

The impact of this vulnerability is significant because it undermines the principle of least privilege. Users who should only have access to specific service accounts could escalate their access to root or other privileged accounts on target systems.

Root Cause

The root cause is classified under CWE-732 (Incorrect Permission Assignment for Critical Resource). The SSH secrets engine failed to enforce a mandatory security constraint by allowing the valid_principals configuration field to remain empty by default. Without this constraint, the engine cannot properly limit which user identities can be assumed through generated certificates, creating an authorization bypass condition.

Attack Vector

The attack vector is network-based and requires the attacker to have valid credentials to authenticate to Vault and possess the necessary Vault policies to request SSH certificates from the misconfigured secrets engine. The attack flow involves:

  1. An authorized user identifies an SSH secrets engine role where valid_principals is unconfigured
  2. The attacker requests an SSH certificate with an arbitrary principal (e.g., root)
  3. Vault generates and signs the certificate without validating the principal
  4. The attacker uses the certificate to authenticate to target hosts as the specified user
  5. The attacker gains unauthorized access with the privileges of the impersonated user

The vulnerability does not require user interaction and can be exploited with low complexity once the prerequisite access is obtained. Successful exploitation can result in complete compromise of confidentiality, integrity, and availability on affected hosts.

Detection Methods for CVE-2024-7594

Indicators of Compromise

  • Unusual SSH certificate requests with principals that don't match the requesting user's authorized scope
  • Authentication logs showing unexpected user logins via SSH certificates
  • Vault audit logs containing certificate requests for privileged accounts like root or service accounts
  • Multiple SSH certificates issued for different principals to the same Vault identity

Detection Strategies

  • Review Vault audit logs for SSH certificate generation requests, particularly those specifying high-privilege principals
  • Monitor SSH authentication logs on target hosts for certificate-based authentications from unexpected principals
  • Implement alerting on SSH secrets engine role configurations that lack valid_principals settings
  • Cross-reference Vault user identities with the principals they request in SSH certificates

Monitoring Recommendations

  • Enable comprehensive audit logging in Vault to capture all secrets engine interactions
  • Configure centralized log aggregation for both Vault and SSH authentication events
  • Establish baseline patterns for SSH certificate usage and alert on anomalies
  • Periodically audit SSH secrets engine role configurations for missing valid_principals constraints

How to Mitigate CVE-2024-7594

Immediate Actions Required

  • Upgrade HashiCorp Vault Community Edition to version 1.17.6 or later
  • Upgrade HashiCorp Vault Enterprise to versions 1.17.6, 1.16.10, or 1.15.15 depending on your release branch
  • Review all SSH secrets engine role configurations and ensure valid_principals is explicitly set
  • Audit recent SSH certificate requests for potential exploitation indicators

Patch Information

HashiCorp has released fixed versions that address this vulnerability. The patches ensure proper validation and enforcement of the valid_principals configuration. Detailed information is available in the HashiCorp Security Advisory HCSEC-2024-20. Additional vendor impact information is documented in the NetApp Security Advisory NTAP-20250110-0007.

Workarounds

  • Explicitly configure the valid_principals list on all SSH secrets engine roles to limit allowed principals
  • Set the default_user field to a non-privileged account to prevent arbitrary principal specification
  • Implement Vault Sentinel policies (Enterprise) to enforce valid_principals configuration requirements
  • Restrict Vault policies to limit which users can request SSH certificates
bash
# Configuration example - Properly configure SSH secrets engine role
vault write ssh/roles/my-role \
    key_type=ca \
    allowed_users="deploy,service-account" \
    default_user="deploy" \
    ttl=30m \
    allow_user_certificates=true

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechHashicorp Vault

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.54%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-732
  • Technical References
  • NetApp Security Advisory NTAP-20250110-0007
  • Vendor Resources
  • HashiCorp Security Discussion
  • Related CVEs
  • CVE-2023-3462: HashiCorp Vault Auth Bypass Vulnerability

  • CVE-2025-4166: HashiCorp Vault Information Disclosure Bug

  • CVE-2025-6203: HashiCorp Vault DoS Vulnerability

  • CVE-2025-6000: HashiCorp Vault RCE Vulnerability
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