Vulnerability · Published Mar 30, 2023 · Assigned by HashiCorp
CVE-2023-0620Vault Vulnerable to SQL Injection When Configuring the Microsoft SQL Database Storage Backend
Medium 6.5
In plain English
A medium-severity SQL injection in Vault from HashiCorp. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 32% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/hashicorp/vault | 1.11.9 | GHSA-v3hp-mcj5-pg39 |
| Go | github.com/hashicorp/vault | 1.12.5 | GHSA-v3hp-mcj5-pg39 |
| Go | github.com/hashicorp/vault | 1.13.1 | GHSA-v3hp-mcj5-pg39 |
| Go | github.com/hashicorp/vault | 1.11.9, 1.12.5, 1.13.1 | GO-2023-1685 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| HashiCorp | Vault | 1.13.0 – before 1.13.11.12.0 – before 1.12.50.8.0 – before 1.11.9 |
| HashiCorp | Vault Enterprise | 1.13.0 – before 1.13.11.12.0 – before 1.12.50.8.0 – before 1.11.9 |
Weakness: CWE-89 · Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H