Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/hashicorp/vault
  4. ›
  5. CVE-2023-0620

CVE-2023-0620: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

March 30, 2023

HashiCorp Vault and Vault Enterprise versions 0.8.0 through 1.13.1 is 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.

References

  • discuss.hashicorp.com/t/hcsec-2023-12-vault-s-microsoft-sql-database-storage-backend-vulnerable-to-sql-injection-via-configuration-file/52080/1
  • github.com/advisories/GHSA-v3hp-mcj5-pg39
  • github.com/hashicorp/vault/pull/19591
  • github.com/hashicorp/vault/releases/tag/v1.11.9
  • github.com/hashicorp/vault/releases/tag/v1.12.5
  • github.com/hashicorp/vault/releases/tag/v1.13.1
  • nvd.nist.gov/vuln/detail/CVE-2023-0620

Code Behaviors & Features

Detect and mitigate CVE-2023-0620 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.8.0 before 1.11.9, all versions starting from 1.12.0 before 1.12.5, all versions starting from 1.13.0 before 1.13.1

Fixed versions

  • 1.11.9
  • 1.12.5
  • 1.13.1

Solution

Upgrade to versions 1.11.9, 1.12.5, 1.13.1 or above.

Impact 6.7 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

go/github.com/hashicorp/vault/CVE-2023-0620.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:43 +0000.