Skip to content
OpenAdvisories
Medium · 6.5 CVE-2023-0620 BIT-vault-2023-0620EUVD-2023-1105GHSA-v3hp-mcj5-pg39GO-2023-1685

Vault Vulnerable to SQL Injection When Configuring the Microsoft SQL Database Storage Backend

Published Mar 30, 2023 · Updated Feb 13, 2025 · Assigned by HashiCorp

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 products

VendorProductAffectedFixed
HashiCorp Vault 1.13.0 – < 1.13.1, 1.12.0 – < 1.12.5, 0.8.0 – < 1.11.9 1.13.1
HashiCorp Vault Enterprise 1.13.0 – < 1.13.1, 1.12.0 – < 1.12.5, 0.8.0 – < 1.11.9 1.13.1

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling k3d +2 5.6.0-r11 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/hashicorp/vault >= 0.8.0, < 1.11.9 1.11.9 GHSA-v3hp-mcj5-pg39
Go github.com/hashicorp/vault >= 1.12.0, < 1.12.5 1.12.5 GHSA-v3hp-mcj5-pg39
Go github.com/hashicorp/vault >= 1.13.0, < 1.13.1 1.13.1 GHSA-v3hp-mcj5-pg39
Go github.com/hashicorp/vault >= 0.8.0, < 1.11.9 · >= 1.12.0, < 1.12.5 · >= 1.13.0, < 1.13.1 1.11.9, 1.12.5, 1.13.1 GO-2023-1685

Advisories 2

References