Vulnerability · Published Mar 30, 2023 · Assigned by HashiCorp

CVE-2023-0620Vault Vulnerable to SQL Injection When Configuring the Microsoft SQL Database Storage Backend

Medium 6.5

In plain English

A medium-severity SQL injection in Vault from HashiCorp. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 32% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)0.4%top 68.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/hashicorp/vault1.11.9GHSA-v3hp-mcj5-pg39
Gogithub.com/hashicorp/vault1.12.5GHSA-v3hp-mcj5-pg39
Gogithub.com/hashicorp/vault1.13.1GHSA-v3hp-mcj5-pg39
Gogithub.com/hashicorp/vault1.11.9, 1.12.5, 1.13.1GO-2023-1685

Affected products (as reported)

VendorProductVersions
HashiCorp Vault 1.13.0 – before 1.13.11.12.0 – before 1.12.50.8.0 – before 1.11.9
HashiCorp Vault Enterprise 1.13.0 – before 1.13.11.12.0 – before 1.12.50.8.0 – before 1.11.9

Weakness: CWE-89 · Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H

References