CVE-2023-0620: Vault Vulnerable to SQL Injection When Configuring the Microsoft SQL Database Storage Backend
A flaw was found in HashiCorp Vault and Vault Enterprise, which are vulnerable to SQL injection. This flaw allows a local authenticated attacker to send specially-crafted SQL statements to the Microsoft SQL (MSSQL) Database Storage Backend, which could allow the attacker to view, add, modify, or delete information in the backend database.
Other sources
HashiCorp Vault and Vault Enterprise versions 0.8.0 through 1.13.1 are vulnerable to an SQL injection attack when configuring the Microsoft SQL (MSSQL) Database Storage Backend. When configuring the MSSQL plugin through the local, certain parameters are not sanitized when passed to the user-provided MSSQL database. An attacker may modify these parameters to execute a malicious SQL command.
This issue is fixed in versions 1.13.1, 1.12.5, and 1.11.9.
HashiCorp Vault and Vault Enterprise versions 0.8.0 until 1.13.1 are vulnerable to an SQL injection attack when using the Microsoft SQL (MSSQL) Database Storage Backend. When configuring the MSSQL plugin, certain parameters are required to establish a connection (schema, database, and table) are not sanitized when passed to the user-provided MSSQL database. A privileged attacker with the ability to write arbitrary data to Vault's configuration may modify these parameters to execute a malicious SQL command when the Vault configuration is applied. This issue is fixed in versions 1.13.1, 1.12.5, and 1.11.9.
Affected Software
Remediation
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is CVE-2023-0620?
CVE-2023-0620 is a vulnerability in HashiCorp Vault and Vault Enterprise that allows SQL injection attacks when using the Microsoft SQL Database Storage Backend.
Which versions of HashiCorp Vault and Vault Enterprise are affected by CVE-2023-0620?
Versions 0.8.0 until 1.13.1 of HashiCorp Vault and Vault Enterprise are affected by CVE-2023-0620.
What is the severity of CVE-2023-0620?
CVE-2023-0620 has a severity rating of 6.7 (medium).
How can I fix CVE-2023-0620?
To fix CVE-2023-0620, upgrade to a version of HashiCorp Vault and Vault Enterprise that is not affected by the vulnerability.
Where can I find more information about CVE-2023-0620?
You can find more information about CVE-2023-0620 on the National Vulnerability Database (NVD) website, the HashiCorp forums, and the GitHub repository for HashiCorp Vault.