CVE-2023-0620: 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.
Medium CVSS 6.7
- CVE id
- CVE-2023-0620
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| HashiCorp Vault Runtimes and servers |
< 1.11.9 >= 1.12.0, < 1.12.5 >= 1.13.0, < 1.13.1 |
1.11.9, 1.12.5, 1.13.1 |
| HashiCorp Vault Enterprise Runtimes and servers |
< 1.11.9 >= 1.12.0, < 1.12.5 >= 1.13.0, < 1.13.1 |
1.11.9, 1.12.5, 1.13.1 |
How to fix it
HashiCorp Vault (Runtimes and servers)
Upgrade HashiCorp Vault to the fixed release of the line you run: 1.11.9, 1.12.5, 1.13.1.
vault version
- Upgrade Vault (the hashicorp/vault image or binary) to the patched release.
HashiCorp Vault Enterprise (Runtimes and servers)
Upgrade HashiCorp Vault Enterprise to the fixed release of the line you run: 1.11.9, 1.12.5, 1.13.1.
vault version
- Upgrade Vault Enterprise (the hashicorp/vault-enterprise image or binary) to the patched release.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.
References
- CVE-2023-0620 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2023-0620
- Web: https://discuss.hashicorp.com/t/hcsec-2023-12-vault-s-microsoft-sql-database-storage-backend-vulnerable-to-sql-injection-via-configuration-file/52080/1
- Web: https://security.netapp.com/advisory/ntap-20230526-0008/
- Web: https://discuss.hashicorp.com/t/hcsec-2023-12-vault-s-microsoft-sql-database-storage-backend-vulnerable-to-sql-injection-via-configuration-file/52080/1
- Web: https://security.netapp.com/advisory/ntap-20230526-0008/
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.