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-2023-0620

CVE-2023-0620: HashiCorp Vault SQLI Vulnerability

CVE-2023-0620 is an SQL injection flaw in HashiCorp Vault's MSSQL Database Storage Backend that allows attackers to execute malicious SQL commands. This article covers technical details, affected versions, and mitigation.

Published: January 28, 2026

CVE-2023-0620 Overview

HashiCorp Vault and Vault Enterprise versions 0.8.0 through 1.13.1 contain an SQL injection vulnerability in the Microsoft SQL (MSSQL) Database Storage Backend configuration. When configuring the MSSQL plugin through the local configuration file, certain parameters are not properly sanitized before being passed to the user-provided MSSQL database. This allows an attacker with high privileges to modify these parameters and execute malicious SQL commands against the database backend.

Critical Impact

Attackers with local access and high privileges can exploit this SQL injection flaw to execute arbitrary SQL commands, potentially compromising data confidentiality, integrity, and availability of the Vault storage backend.

Affected Products

  • HashiCorp Vault versions 0.8.0 through 1.13.0
  • HashiCorp Vault Enterprise versions 0.8.0 through 1.13.0
  • Any deployment using Microsoft SQL Database Storage Backend

Discovery Timeline

  • 2023-03-30 - CVE-2023-0620 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-0620

Vulnerability Analysis

This SQL injection vulnerability (CWE-89) exists in the MSSQL Database Storage Backend configuration component of HashiCorp Vault. The flaw stems from improper input validation when processing configuration parameters for the MSSQL plugin. When administrators configure Vault to use Microsoft SQL Server as a storage backend, certain configuration parameters are passed directly to database queries without adequate sanitization.

The vulnerability requires local access and high privileges to exploit, which limits the attack surface but still poses significant risk in environments where administrative access to Vault configuration is shared or compromised. Successful exploitation could allow an attacker to read, modify, or delete data within the MSSQL database, potentially compromising secrets stored in Vault.

Root Cause

The root cause of this vulnerability is insufficient input sanitization in the MSSQL storage backend plugin. When processing configuration file parameters for the Microsoft SQL database connection, the application fails to properly escape or parameterize user-supplied values before incorporating them into SQL queries. This classic SQL injection pattern allows specially crafted input to break out of the intended query context and execute arbitrary SQL commands.

Attack Vector

The attack vector is local, requiring the attacker to have access to the Vault configuration file and elevated privileges within the system. The attacker must be able to modify the MSSQL storage backend configuration parameters. By injecting malicious SQL syntax into vulnerable configuration parameters, the attacker can manipulate database queries executed during Vault initialization or operation.

The vulnerability is exploited during the configuration phase of the MSSQL storage backend. An attacker with write access to the Vault configuration file can inject SQL commands through unsanitized parameters. When Vault processes these configuration values and connects to the MSSQL database, the injected SQL code executes with the privileges of the database connection.

Detection Methods for CVE-2023-0620

Indicators of Compromise

  • Unusual or malformed entries in Vault configuration files, particularly in MSSQL storage backend sections
  • Unexpected SQL queries or commands in MSSQL database audit logs
  • Unauthorized data access or modifications in the Vault storage database
  • Configuration file changes outside of normal change management processes

Detection Strategies

  • Monitor Vault configuration files for unauthorized modifications using file integrity monitoring (FIM)
  • Enable and review MSSQL database audit logs for anomalous query patterns or SQL injection signatures
  • Implement configuration management tools to detect drift from approved Vault configurations
  • Review Vault audit logs for unusual storage backend initialization events

Monitoring Recommendations

  • Deploy SentinelOne agents on systems hosting Vault servers to detect configuration tampering
  • Configure alerting for any modifications to Vault configuration files in production environments
  • Enable SQL Server extended events or audit features to capture and analyze database queries
  • Implement centralized logging for Vault servers and correlate with database activity

How to Mitigate CVE-2023-0620

Immediate Actions Required

  • Upgrade HashiCorp Vault to version 1.13.1, 1.12.5, or 1.11.9 or later immediately
  • Audit Vault configuration files for any signs of tampering or malicious SQL injection attempts
  • Review MSSQL database logs for evidence of exploitation
  • Restrict access to Vault configuration files to only essential personnel

Patch Information

HashiCorp has released patched versions that address this SQL injection vulnerability. Organizations should upgrade to one of the following fixed versions:

  • Vault 1.13.1 (for users on 1.13.x branch)
  • Vault 1.12.5 (for users on 1.12.x branch)
  • Vault 1.11.9 (for users on 1.11.x branch)

For detailed patch information and upgrade instructions, refer to the HashiCorp Vault Security Advisory. Additional context is available in the NetApp Security Advisory NTAP-20230526-0008.

Workarounds

  • Implement strict file system permissions on Vault configuration files to prevent unauthorized modifications
  • Consider using an alternative storage backend (such as Consul, Raft integrated storage, or other supported backends) until patching is complete
  • Apply network segmentation to limit access between Vault servers and the MSSQL database
  • Enable enhanced monitoring and alerting on configuration file changes and database query patterns
bash
# Restrict Vault configuration file permissions
chmod 600 /etc/vault.d/vault.hcl
chown vault:vault /etc/vault.d/vault.hcl

# Verify current Vault version
vault version

# Example upgrade process (backup first)
# Consult HashiCorp documentation for your specific deployment method

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechHashicorp Vault

  • SeverityMEDIUM

  • CVSS Score6.7

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-89
  • Technical References
  • NetApp Security Advisory NTAP-20230526-0008
  • Vendor Resources
  • HashiCorp Vault Security Advisory
  • Related CVEs
  • CVE-2025-4166: HashiCorp Vault Information Disclosure Bug

  • CVE-2025-6203: HashiCorp Vault DoS Vulnerability

  • CVE-2024-7594: HashiCorp Vault Auth Bypass 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