Vault Vulnerable to SQL Injection When Configuring the Microsoft SQL Database Storage Backend
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2023-0620
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 15:30 UTC · Revision 1
Source evidence
Vault Vulnerable to SQL Injection When Configuring the Microsoft SQL Database Storage Backend
core-osv · Original sourcePublished 30 Mar 2023, 00:28 UTC
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.
osv:CVE-2023-0620
Complete source record
{
"id": "6612ae3c367d16b9f22bd6975635bee8795e314231751825255630f3e0b7e435",
"url": "https://osv.dev/vulnerability/CVE-2023-0620",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Vault Vulnerable to SQL Injection When Configuring the Microsoft SQL Database Storage Backend",
"summary": "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.",
"evidence": "osv:CVE-2023-0620",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2023-0620",
"aliases": [
"BIT-vault-2023-0620",
"CVE-2023-0620",
"GHSA-v3hp-mcj5-pg39",
"GO-2023-1685"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/hashicorp/vault",
"type": "GIT",
"events": [
{
"introduced": "a4cf0dc4437de35fce4860857b64569d092a9b5a"
},
{
"fixed": "4472e4a3fbcc984b7e3dc48f5a8283f3efe6f282"
},
{
"introduced": "558abfa75702b5dab4c98e86b802fb9aef43b0eb"
},
{
"fixed": "acc381a27bf365353b1b325838f7f1c273175788"
},
{
"introduced": "af63d879130d2ee292f09257571d371100a513eb"
},
{
"fixed": "3eed40f0ee74c44f439c2277e010a234eecc491b"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "1.13.0"
},
{
"fixed": "1.13.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"introduced": "1.12.0"
},
{
"fixed": "1.12.5"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"introduced": "0.8.0"
},
{
"fixed": "1.11.9"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
}
]
}
}
],
"versions": [
"v1.11.8",
"v1.13.0",
"v1.12.4",
"v1.11.7",
"v1.12.3",
"v1.11.6",
"v1.12.2",
"v1.11.5",
"v1.12.1",
"v1.12.0",
"v1.11.4",
"v1.11.3",
"v1.11.2",
"v1.11.1",
"v1.11.0",
"sdk/v0.5.2",
"v1.11.0-rc1",
"api/v1.6.0",
"sdk/v0.5.0",
"api/v1.5.0",
"sdk/v0.4.1",
"last-go-modable",
"api/auth/ldap/v0.1.0",
"api/v1.3.1",
"api/auth/approle/v0.1.1",
"main-creation",
"api/auth/gcp/v0.1.0",
"api/auth/azure/v0.1.0",
"api/auth/userpass/v0.1.0",
"api/auth/kubernetes/v0.1.0",
"api/auth/aws/v0.1.0",
"api/auth/approle/v0.1.0",
"sdk/v0.3.0",
"api/v1.2.0",
"api/v1.1.1",
"sdk/v0.2.1",
"v1.2.0",
"v1.2.0-rc1",
"api/v1.0.4",
"sdk/v0.1.13",
"api/v1.0.3",
"sdk/v0.1.12",
"v1.2.0-beta2",
"v1.2.0-beta1",
"sdk/v0.1.11",
"sdk/v0.1.10",
"api/v1.0.2",
"v1.1.1",
"sdk/v0.1.9",
"api/v1.0.1",
"sdk/v0.1.8",
"v1.1.0",
"v1.1.0-beta2",
"v1.1.0-beta1",
"v1.0.3",
"v1.0.2",
"v1.0.1",
"v0.10.2",
"v1.0.0",
"v1.0.0-rc1",
"v1.0.0-beta2",
"v1.0.0-beta1",
"v0.11.2",
"v0.11.1",
"v0.11.0",
"v0.11.0-beta1",
"v0.10.4",
"v0.10.3",
"v0.10.1",
"v0.10.0",
"v0.10.0-rc1",
"v0.9.6",
"v0.9.5",
"v0.9.4",
"v0.9.2",
"v0.9.1",
"v0.9.0",
"v0.8.3",
"v0.8.2",
"v0.8.1",
"v0.8.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-0620.json"
}
}
],
"modified": "2026-10-28T02:30:29.915653248Z",
"provider": "osv",
"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",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/0xxx/CVE-2023-0620.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-0620",
"https://security.netapp.com/advisory/ntap-20230526-0008/",
"https://github.com/hashicorp/vault"
],
"provider_metadata": {
"cwe_ids": [
"CWE-89"
],
"cna_assigner": "HashiCorp",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/0xxx/CVE-2023-0620.json"
}
},
"related_cves": [
{
"value": "CVE-2023-0620",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 496841,
"published_at": "2023-03-30T00:28:13.301+00:00"
}