CVE-2023-0620
MEDIUM 6.7CVSS 3.1HashiCorp Vault’s Microsoft SQL Database Storage Backend Vulnerable to SQL Injection Via Configuration File
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.
- Published
- 30 Mar 2023
- Last modified
- 10 Sep 2026
- Assigned by
- security@hashicorp.com
- NVD status
- Modified
- Weakness
- CWE-89
- Also known as
- BIT-vault-2023-0620GHSA-v3hp-mcj5-pg39GO-2023-1685
- Sources
- NVDJSONOSV GHSA-v3hp-mcj5-pg39JSONOSV GO-2023-1685JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.7 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.7 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVD | security@hashicorp.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | hashicorp | vaultcpe:2.3:a:hashicorp:vault:*:*:*:*:-:*:*:* |
< 1.11.9 | 1.11.9 |
| NVD | hashicorp | vaultcpe:2.3:a:hashicorp:vault:*:*:*:*:enterprise:*:*:* |
< 1.11.9 | 1.11.9 |
| NVD | hashicorp | vaultcpe:2.3:a:hashicorp:vault:*:*:*:*:-:*:*:* |
>= 1.12.0, < 1.12.5 | 1.12.5 |
| NVD | hashicorp | vaultcpe:2.3:a:hashicorp:vault:*:*:*:*:enterprise:*:*:* |
>= 1.12.0, < 1.12.5 | 1.12.5 |
| NVD | hashicorp | vaultcpe:2.3:a:hashicorp:vault:*:*:*:*:-:*:*:* |
>= 1.13.0, < 1.13.1 | 1.13.1 |
| NVD | hashicorp | vaultcpe:2.3:a:hashicorp:vault:*:*:*:*:enterprise:*:*:* |
>= 1.13.0, < 1.13.1 | 1.13.1 |
| OSV | Go | github.com/hashicorp/vault | >= 0.8.0, < 1.11.9 | 1.11.9 |
| OSV | Go | github.com/hashicorp/vault | >= 1.12.0, < 1.12.5 | 1.12.5 |
| OSV | Go | github.com/hashicorp/vault | >= 1.13.0, < 1.13.1 | 1.13.1 |
| OSV | Go | github.com/hashicorp/vault | >= 0.8.0, < 1.11.9; >= 1.12.0, < 1.12.5; >= 1.13.0, < 1.13.1 | 1.11.9, 1.12.5, 1.13.1 |
References
- https://discuss.hashicorp.com/t/hcsec-2023-12-vault-s-microsoft-sql-database-storage-backend-vulnerable-to-sql-injection-via-configuration-file/52080/1 · Issue Tracking, Patch, Vendor Advisory, WEB
- https://security.netapp.com/advisory/ntap-20230526-0008/ · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-0620 · ADVISORY
- https://github.com/hashicorp/vault/pull/19591 · WEB, FIX
- https://github.com/hashicorp/vault · PACKAGE
- https://github.com/hashicorp/vault/releases/tag/v1.11.9 · WEB
- https://github.com/hashicorp/vault/releases/tag/v1.12.5 · WEB
- https://github.com/hashicorp/vault/releases/tag/v1.13.1 · WEB
- https://github.com/advisories/GHSA-v3hp-mcj5-pg39 · ADVISORY
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 30 Mar 2023)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 20 Aug 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 30 Mar 2023)