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

- Severity: Medium 6.5 (CVSS:3.1, scored by HashiCorp) `CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 33% of CVEs (2026-12-01)
- Published: 2023-03-30T00:28:13.301Z
- Modified: 2026-09-10T03:49:57.082Z
- Also known as: GHSA-v3hp-mcj5-pg39, BIT-VAULT-2023-0620, GO-2023-1685
- Related: CGA-vq2x-mpw2-fc52
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: HashiCorp

## 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.

(As written by CVE List.)

## Affected

- HashiCorp Vault: from 1.13.0 before 1.13.1; from 1.12.0 before 1.12.5; from 0.8.0 before 1.11.9; before 1.11.9
- HashiCorp Vault Enterprise: from 1.13.0 before 1.13.1; from 1.12.0 before 1.12.5; from 0.8.0 before 1.11.9
- github.com/hashicorp/vault (Go): from 0.8.0 before 1.11.9; from 1.12.0 before 1.12.5; from 1.13.0 before 1.13.1
- vault (Bitnami): before 1.11.9; from 1.12.0 before 1.12.5; from 1.13.0 before 1.13.1

## Every score

- HashiCorp: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 6.7 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 6.7 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Medium

## 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> (advisory, 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, web)
- <https://github.com/hashicorp/vault/pull/19591> (fix, web)
- <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://security.netapp.com/advisory/ntap-20230526-0008> (web)
- <https://github.com/advisories/GHSA-v3hp-mcj5-pg39> (advisory)

## Sources

- CVE List: [CVE-2023-0620](https://www.cve.org/CVERecord?id=CVE-2023-0620), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-v3hp-mcj5-pg39](https://github.com/advisories/GHSA-v3hp-mcj5-pg39), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2023-1685](https://pkg.go.dev/vuln/GO-2023-1685), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2023-0620](https://nvd.nist.gov/vuln/detail/CVE-2023-0620), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-VAULT-2023-0620](https://osv.dev/vulnerability/BIT-VAULT-2023-0620), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2023-0620 · Whole record: https://cve.day/CVE-2023-0620.json · Rebuilt by cve.day 2026-11-25T22:58:22.792Z
