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.
This issue is fixed in versions 1.13.1, 1.12.5, and 1.11.9.
problem types: CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
affected:
{
vendor: HashiCorp
product: Vault
platforms: [Windows, MacOS, Linux, x86, ARM, 64 bit, 32 bit]
repo: https://github.com/hashicorp/vault
versions:
lessThan: 1.13.1, status: affected, version: 1.13.0, versionType: semver
lessThan: 1.12.5, status: affected, version: 1.12.0, versionType: semver
lessThan: 1.11.9, status: affected, version: 0.8.0, versionType: semver
defaultStatus: unaffected
}
{
vendor: HashiCorp
product: Vault Enterprise
platforms: [Windows, MacOS, Android, x86, ARM, 64 bit, 32 bit]
versions:
lessThan: 1.13.1, status: affected, version: 1.13.0, versionType: semver
lessThan: 1.12.5, status: affected, version: 1.12.0, versionType: semver
lessThan: 1.11.9, status: affected, version: 0.8.0, versionType: semver
defaultStatus: unaffected
}
metrics:
format: CVSS
scenarios: 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
]