{"id":"CVE-2023-0620","state":"PUBLISHED","title":"Vault Vulnerable to SQL Injection When Configuring the Microsoft SQL Database Storage Backend","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.\n\nThis issue is fixed in versions 1.13.1, 1.12.5, and 1.11.9.","publishedAt":"2023-03-30T00:28:13.301Z","updatedAt":"2025-02-13T16:39:02.965Z","severity":{"score":6.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H","source":"HashiCorp"},"assigner":"HashiCorp","products":["HashiCorp Vault","HashiCorp Vault Enterprise"],"affected":[{"vendor":"HashiCorp","product":"Vault","defaultStatus":"unaffected","versions":[{"version":"1.13.0","status":"affected","lessThan":"1.13.1","versionType":"semver"},{"version":"1.12.0","status":"affected","lessThan":"1.12.5","versionType":"semver"},{"version":"0.8.0","status":"affected","lessThan":"1.11.9","versionType":"semver"}],"platforms":["Windows","MacOS","Linux","x86","ARM","64 bit","32 bit"],"repo":"https://github.com/hashicorp/vault"},{"vendor":"HashiCorp","product":"Vault Enterprise","defaultStatus":"unaffected","versions":[{"version":"1.13.0","status":"affected","lessThan":"1.13.1","versionType":"semver"},{"version":"1.12.0","status":"affected","lessThan":"1.12.5","versionType":"semver"},{"version":"0.8.0","status":"affected","lessThan":"1.11.9","versionType":"semver"}],"platforms":["Windows","MacOS","Android","x86","ARM","64 bit","32 bit"]}],"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://security.netapp.com/advisory/ntap-20230526-0008/"],"weaknesses":["CWE-89"],"ingestedAt":"2026-10-29T20:05:36.141Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/0xxx/CVE-2023-0620.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-0620","state":"PUBLISHED","datePublished":"2023-03-30T00:28:13.301Z","dateUpdated":"2025-02-13T16:39:02.965Z","assignerShortName":"HashiCorp","assignerOrgId":"67fedba0-ff2e-4543-ba5b-aa93e87718cc","dateReserved":"2023-02-01T21:59:23.556Z"},"containers":{"cna":{"title":"Vault Vulnerable to SQL Injection When Configuring the Microsoft SQL Database Storage Backend","descriptions":[{"lang":"en","value":"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.\n\nThis issue is fixed in versions 1.13.1, 1.12.5, and 1.11.9."}],"affected":[{"vendor":"HashiCorp","product":"Vault","defaultStatus":"unaffected","versions":[{"version":"1.13.0","status":"affected","lessThan":"1.13.1","versionType":"semver"},{"version":"1.12.0","status":"affected","lessThan":"1.12.5","versionType":"semver"},{"version":"0.8.0","status":"affected","lessThan":"1.11.9","versionType":"semver"}],"platforms":["Windows","MacOS","Linux","x86","ARM","64 bit","32 bit"],"repo":"https://github.com/hashicorp/vault"},{"vendor":"HashiCorp","product":"Vault Enterprise","defaultStatus":"unaffected","versions":[{"version":"1.13.0","status":"affected","lessThan":"1.13.1","versionType":"semver"},{"version":"1.12.0","status":"affected","lessThan":"1.12.5","versionType":"semver"},{"version":"0.8.0","status":"affected","lessThan":"1.11.9","versionType":"semver"}],"platforms":["Windows","MacOS","Android","x86","ARM","64 bit","32 bit"]}],"references":[{"url":"https://discuss.hashicorp.com/t/hcsec-2023-12-vault-s-microsoft-sql-database-storage-backend-vulnerable-to-sql-injection-via-configuration-file/52080/1"},{"url":"https://security.netapp.com/advisory/ntap-20230526-0008/"}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"version":"3.1","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"HIGH","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseSeverity":"MEDIUM","baseScore":6.5,"vectorString":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-89","lang":"en","description":"CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"HashiCorp","orgId":"67fedba0-ff2e-4543-ba5b-aa93e87718cc","dateUpdated":"2023-05-26T19:06:25.161Z"},"impacts":[{"capecId":"CAPEC-66","descriptions":[{"lang":"en","value":"CAPEC-66 SQL Injection"}]}],"credits":[{"lang":"en","value":"Yuval Ostrovsky, Gal Goldshtein, Daniel Abeles of Oxeye","user":"00000000-0000-4000-9000-000000000000","type":"finder"}],"source":{"advisory":"HCSEC-2023-12","discovery":"EXTERNAL"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://discuss.hashicorp.com/t/hcsec-2023-12-vault-s-microsoft-sql-database-storage-backend-vulnerable-to-sql-injection-via-configuration-file/52080/1","tags":["x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20230526-0008/","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T05:17:50.188Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-02-12T14:59:29.534068Z","id":"CVE-2023-0620","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-02-12T14:59:38.091Z"}}]}}}