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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.5
- **CVSS:** 6.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: High; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.40% (percentile 26, 2026-11-26)
- **CWE:** CWE-89
- **Aliases:** BIT-vault-2023-0620, GHSA-v3hp-mcj5-pg39, GO-2023-1685
- **Published:** 2023-03-30T00:28:13.301Z
- **Modified:** 2026-09-10T03:49:57.082Z

## Who should check

- Projects that depend on Go package github.com/hashicorp/vault (\>= 0.8.0, \< 1.11.9)
- Anyone running HashiCorp Vault \>= 1.13.0, \< 1.13.1; \>= 1.12.0, \< 1.12.5; \>= 0.8.0, \< 1.11.9
- Anyone running HashiCorp Vault Enterprise \>= 1.13.0, \< 1.13.1; \>= 1.12.0, \< 1.12.5; \>= 0.8.0, \< 1.11.9

## 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 and fixed versions

- Go `github.com/hashicorp/vault`: affected \>= 0.8.0, \< 1.11.9; fixed 1.11.9, 1.12.5, 1.13.1 (osv)
- HashiCorp Vault: \>= 1.13.0, \< 1.13.1; \>= 1.12.0, \< 1.12.5; \>= 0.8.0, \< 1.11.9 (cvelist)
- HashiCorp Vault Enterprise: \>= 1.13.0, \< 1.13.1; \>= 1.12.0, \< 1.12.5; \>= 0.8.0, \< 1.11.9 (cvelist)

## Mitigation

- Upgrade github.com/hashicorp/vault to one of 1.11.9, 1.12.5, 1.13.1 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-0620. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-0620.md
Affected: github.com/hashicorp/vault >= 0.8.0, < 1.11.9
Fixed in: 1.11.9, 1.12.5, 1.13.1

Steps:
1. Search this machine and project for github.com/hashicorp/vault (Go), HashiCorp Vault, HashiCorp Vault Enterprise: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-0620 being exploited?

There is no confirmed exploitation: CVE-2023-0620 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.40% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-0620?

Medium: CVSS 6.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2023-0620?

github.com/hashicorp/vault \>= 0.8.0, \< 1.11.9.

### Is there a fix for CVE-2023-0620?

Yes. Fixed in 1.11.9, 1.12.5, 1.13.1. Upgrade github.com/hashicorp/vault to one of 1.11.9, 1.12.5, 1.13.1 (or later in the same release line).

### How do I check if I'm affected by CVE-2023-0620?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-0620>
- vendor: <https://github.com/advisories/GHSA-v3hp-mcj5-pg39>
- patch: <https://discuss.hashicorp.com/t/hcsec-2023-12-vault-s-microsoft-sql-database-storage-backend-vulnerable-to-sql-injection-via-configuration-file/52080/1>
- patch: <https://github.com/hashicorp/vault/pull/19591>
- other: <https://security.netapp.com/advisory/ntap-20230526-0008/>
- other: <https://github.com/hashicorp/vault>
- other: <https://github.com/hashicorp/vault/releases/tag/v1.11.9>
- other: <https://github.com/hashicorp/vault/releases/tag/v1.12.5>
- other: <https://github.com/hashicorp/vault/releases/tag/v1.13.1>
- other: <https://security.netapp.com/advisory/ntap-20230526-0008>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-0620>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-v3hp-mcj5-pg39> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2023-1685> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-0620> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-0620>
