Description
HashiCorp Vault and Vault Enterprise prior to 2.0.1 audit device validation logic did not consistently apply plugin directory protections when the legacy file audit path option was used.

This vulnerability (CVE-2026-5051) is fixed in 2.0.1, 1.21.6, 1.20.11, and 1.19.17.
Published: 2026-07-01
Score: 4.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

HashiCorp Vault and Vault Enterprise contain a flaw in audit device validation logic that fails to enforce directory guard checks when the legacy file audit path option is used. This results in a path traversal weakness (CWE-22) combined with missing or incomplete directory checks (CWE-807). An attacker may exploit the vulnerability by providing a crafted audit path that resolves outside the intended plugin directory, enabling the reading or modification of arbitrary files on the host and thereby compromising confidentiality and integrity of data.

Affected Systems

HashiCorp Vault and Vault Enterprise running any version prior to 2.0.1 for Enterprise or 1.21.6, 1.20.11, or 1.19.17 for the Community edition are affected. The issue manifests when the audit configuration enables the legacy file audit path option, bypassing the usual directory guard initializations.

Risk and Exploitability

The CVSS base score of 4.4 indicates medium severity, and the EPSS score of less than 1% suggests a very low but non‑zero probability of exploitation. The vulnerability is not listed in CISA’s KEV catalog, and no public exploits are reported. The likely attack vector is a malicious actor who gains the ability to modify audit device settings, for example by accessing the Vault API with credentials or by editing the configuration files directly. Updating to the patched versions or reconfiguring the audit device to use the default path mitigates the risk.

Generated by OpenCVE AI on July 21, 2026 at 13:40 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Vault Enterprise to 2.0.1 or later, or Vault Community to 1.21.6, 1.20.11, or 1.19.17.
  • Reconfigure audit devices to use the default audit path option instead of the legacy file audit path option, ensuring directory guard checks are applied.
  • Limit the ability to modify audit configuration to authenticated administrators only, and audit changes to the audit configuration files for signs of tampering.

Generated by OpenCVE AI on July 21, 2026 at 13:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 02 Jul 2026 12:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-807
References
Metrics threat_severity

None

threat_severity

Moderate


Wed, 01 Jul 2026 22:45:00 +0000

Type Values Removed Values Added
First Time appeared Hashicorp
Hashicorp vault
Hashicorp vault Enterprise
Vendors & Products Hashicorp
Hashicorp vault
Hashicorp vault Enterprise

Wed, 01 Jul 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 01 Jul 2026 17:45:00 +0000

Type Values Removed Values Added
Description HashiCorp Vault and Vault Enterprise prior to 2.0.1 audit device validation logic did not consistently apply plugin directory protections when the legacy file audit path option was used. This vulnerability (CVE-2026-5051) is fixed in 2.0.1, 1.21.6, 1.20.11, and 1.19.17.
Title Audit Log Plugin Directory Guard Bypass via Legacy path Option
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N'}


Subscriptions

Hashicorp Vault Vault Enterprise
cve-icon MITRE

Status: PUBLISHED

Assigner: HashiCorp

Published:

Updated: 2026-07-01T17:54:43.314Z

Reserved: 2026-03-27T17:45:14.081Z

Link: CVE-2026-5051

cve-icon Vulnrichment

Updated: 2026-07-01T17:54:37.966Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-01T17:10:56Z

Links: CVE-2026-5051 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-21T13:45:03Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-807

    Reliance on Untrusted Inputs in a Security Decision