CVE-2026-5051

Audit Log Plugin Directory Guard Bypass via Legacy path Option

Published Jul 1, 2026 CVSS 3.1 · 4.4 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

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

Remediation

No solution or workaround provided in the CVE record.

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 August 1, 2026 at 22:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Hashicorp
Hashicorp vault
Hashicorp vault Enterprise
Vendors & Products Hashicorp
Hashicorp vault
Hashicorp vault Enterprise
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-22

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

  • CWE-807

    Reliance on Untrusted Inputs in a Security Decision

Sources

Status
PUBLISHED
Assigner
HashiCorp
Published
Updated
Jul 1, 2026, 5:54 PM
Reserved
Mar 27, 2026, 5:45 PM
Status
Deferred
Published
Jul 1, 2026, 6:16 PM
Modified
Jul 2, 2026, 5:54 PM
Severity
Moderate
Public date
Jul 1, 2026, 5:10 PM