{"schemaVersion":3,"id":"CVE-2023-0620","aliases":["CGA-37c2-vhmh-7qch","CGA-c7vv-fmhj-q8g7","CGA-fp7w-hvjf-pr2c","CGA-h63x-95qg-cfc4","CGA-jrc6-62q7-gvf7","CGA-wqhv-mfr4-8cv5","GHSA-v3hp-mcj5-pg39","BIT-vault-2023-0620","GO-2023-1685"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2023-03-30T00:28:13.301Z","modified":"2025-02-13T16:39:02.965Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.7,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H","exploitability":1.5,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":6.7,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","exploitability":2.1,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H","exploitability":1.5,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.7,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00378,"percentile":0.30545,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00378},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00378,"percentile":0.30545}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00378,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00378,"percentile":0.30545}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","description":"The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/89.html"}],"affected":[{"vendor":"chainguard","product":"k3d","name":"k3d","label":"k3d","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/k3d","purlType":"apk","versions":[{"text":"< 5.6.0-r11","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.6.0-r11","eol":null,"hubHref":null},{"vendor":"chainguard","product":"k3d-proxy","name":"k3d-proxy","label":"k3d-proxy","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/k3d-proxy","purlType":"apk","versions":[{"text":"< 5.6.0-r11","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.6.0-r11","eol":null,"hubHref":null},{"vendor":"chainguard","product":"k3d-tools","name":"k3d-tools","label":"k3d-tools","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/k3d-tools","purlType":"apk","versions":[{"text":"< 5.6.0-r11","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.6.0-r11","eol":null,"hubHref":null},{"vendor":"wolfi","product":"k3d","name":"k3d","label":"k3d","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/k3d","purlType":"apk","versions":[{"text":"< 5.6.0-r11","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.6.0-r11","eol":null,"hubHref":null},{"vendor":"wolfi","product":"k3d-proxy","name":"k3d-proxy","label":"k3d-proxy","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/k3d-proxy","purlType":"apk","versions":[{"text":"< 5.6.0-r11","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.6.0-r11","eol":null,"hubHref":null},{"vendor":"wolfi","product":"k3d-tools","name":"k3d-tools","label":"k3d-tools","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/k3d-tools","purlType":"apk","versions":[{"text":"< 5.6.0-r11","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.6.0-r11","eol":null,"hubHref":null},{"vendor":"github.com/hashicorp","product":"vault","name":"github.com/hashicorp/vault","label":"vault","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/hashicorp/vault","purlType":"golang","versions":[{"text":"≥ 0.8.0, < 1.11.9","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.12.0, < 1.12.5","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.13.0, < 1.13.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.8.0, < 1.11.9 | ≥ 1.12.0, < 1.12.5 | ≥ 1.13.0, < 1.13.1","eol":null,"hubHref":null},{"vendor":"hashicorp","product":"vault","name":"vault","label":"vault","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.8.0, < 1.11.9","noFixRecorded":false,"fixedIn":null},{"text":"< 1.11.9","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.12.0, < 1.12.5","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.13.0, < 1.13.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.8.0, < 1.11.9 | < 1.11.9 | ≥ 1.12.0, < 1.12.5 | ≥ 1.13.0, < 1.13.1","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"hashicorp-vault","label":"Hashicorp Vault","category":"server-app"}},"hubHref":"/vendor/hashicorp/vault"},{"vendor":"hashicorp","product":"vault enterprise","name":"Vault Enterprise","label":"vault enterprise","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.13.0, < 1.13.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.12.0, < 1.12.5","noFixRecorded":false,"fixedIn":null},{"text":"≥ 0.8.0, < 1.11.9","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.13.0, < 1.13.1 | ≥ 1.12.0, < 1.12.5 | ≥ 0.8.0, < 1.11.9","eol":null,"hubHref":"/vendor/hashicorp/vault_enterprise"}],"affectedCount":9,"eol":{"hasEol":false,"count":0},"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","label":"discuss.hashicorp.com/t/…","hostname":"discuss.hashicorp.com","tags":["WEB","Issue Tracking","Patch","Vendor Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20230526-0008/","label":"security.netapp.com/advisory/ntap-20230526-0008/","hostname":"security.netapp.com","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/0xxx/CVE-2023-0620.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2023/0xxx/CVE-2023-0620.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-0620","label":"nvd.nist.gov/vuln/detail/CVE-2023-0620","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/hashicorp/vault","label":"github.com/hashicorp/vault","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/hashicorp/vault/pull/19591","label":"github.com/hashicorp/vault/pull/19591","hostname":"github.com","tags":["WEB","FIX"]},{"url":"https://github.com/hashicorp/vault/releases/tag/v1.11.9","label":"github.com/hashicorp/vault/releases/tag/v1.11.9","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/hashicorp/vault/releases/tag/v1.12.5","label":"github.com/hashicorp/vault/releases/tag/v1.12.5","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/hashicorp/vault/releases/tag/v1.13.1","label":"github.com/hashicorp/vault/releases/tag/v1.13.1","hostname":"github.com","tags":["WEB"]},{"url":"https://security.netapp.com/advisory/ntap-20230526-0008","label":"security.netapp.com/advisory/ntap-20230526-0008","hostname":"security.netapp.com","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-v3hp-mcj5-pg39","label":"github.com/advisories/GHSA-v3hp-mcj5-pg39","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-GG8M-CJR9-3275","CGA-VQ2X-MPW2-FC52"]},"timeline":[{"kind":"published","date":"2023-03-30T00:28:13.301Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-02-13T16:39:02.965Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":27,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T20:37:30.940Z","stale":false,"partial":false}}