CVE-2023-0620: Vault Vulnerable to SQL Injection When Configuring the Microsoft SQL Database Storage Backend

Published Mar 30, 2023
·
Updated

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

12 affected componentsFixes available
go/github.com/hashicorp/vault>=1.13.0<1.13.1
1.13.1
go/github.com/hashicorp/vault>=1.12.0<1.12.5
1.12.5
go/github.com/hashicorp/vault>=0.8.0<1.11.9
1.11.9
HashiCorp Vault<1.11.9
HashiCorp Vault<1.11.9
HashiCorp Vault>=1.12.0<1.12.5
HashiCorp Vault>=1.12.0<1.12.5
HashiCorp Vault>=1.13.0<1.13.1
HashiCorp Vault>=1.13.0<1.13.1
redhat/Vault<1.13.1
1.13.1
redhat/Vault<1.12.5
1.12.5
redhat/and<1.11.9
1.11.9

Event History

Mar 30, 2023
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
CVE Published
via MITRE·12:28 AM
Data Sourced
via MITRE·12:28 AM
DescriptionSeverityWeakness
Advisory Published
03:30 AM
Apr 5, 2023
Data Sourced
via Red Hat·11:35 AM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

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.

2

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.

3

What is the severity of CVE-2023-0620?

CVE-2023-0620 has a severity rating of 6.7 (medium).

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203