CVE-2026-5051 Audit Log Plugin Directory Guard Bypass via Legacy path Option

Medium 4.4 Published Updated

Attackers can bypass audit log plugin directory protections using the legacy file audit path option, potentially circumventing security controls.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-5051?

CVE-2026-5051 is a medium-severity path traversal vulnerability in HashiCorp Vault, published on 1 Jul 2026. An attacker needs administrator access to exploit it, with no action from the victim.

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

Weakness: CWE-22

Which versions are affected by CVE-2026-5051?

1 open source package ship an affected version, including vault.

PackageAffectedFixed in
vault BitnamiFrom 1.19.01.19.17, 1.20.11, 1.21.6, 2.0.1

How do I fix CVE-2026-5051?

Upgrade vault to a fixed version for your release line: 1.19.17, 1.20.11, 1.21.6 or 2.0.1.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-5051 being exploited?

There is no known exploitation of CVE-2026-5051 in the wild and no public exploit code.

Sources

Also known as BIT-vault-2026-5051, GHSA-rx9v-2fjr-mhx5, MINI-hp79-92qg-7w3q.

Is CVE-2026-5051 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free