Arbitrary Code Injection Affecting github.com/hashicorp/vault/command/server package, versions >=0.8.0 <1.20.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMHASHICORPVAULTCOMMANDSERVER-11426528
  • published3 Aug 2025
  • disclosed1 Aug 2025
  • creditYarden Porat

Introduced: 1 Aug 2025

NewCVE-2025-6000  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade github.com/hashicorp/vault/command/server to version 1.20.1 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Injection on the host by exploiting write permissions in the root namespace, creating audit files in the plugin directory, and using the plugin registration functionality to execute the created files.

Notes:

  • This is only exploitable for attackers with write permissions to sys/audit within Vault’s root namespace.

  • This is only exploitable when a plugin directory is set in Vault’s configuration

  • Some audit data fields are HMAC’d using a per-audit-device key; however, it may be possible for an attacker to reproduce the exact contents of a given audit file.

CVSS Base Scores

version 4.0
version 3.1