CVE-2025-4166: Vault Community and Vault Enterprise Key/Value (kv) Version 2 plugin may unintentionally expose sensitive information in server and audit logs when users submit malformed payloads during secret...
Medium CVSS 6.5
- CVE id
- CVE-2025-4166
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| HashiCorp Vault Runtimes and servers |
>= 0.3.0, < 1.19.3 | 1.19.3 |
| HashiCorp Vault Enterprise Runtimes and servers |
>= 0.3.0, < 1.16.20 >= 0.3.0, < 1.19.3 >= 1.17.0, < 1.17.16 >= 1.18.0, < 1.18.9 >= 1.19.0, < 1.19.3 |
1.16.20, 1.17.16, 1.18.9, 1.19.3 |
How to fix it
HashiCorp Vault (Runtimes and servers)
Upgrade HashiCorp Vault to 1.19.3 or later.
vault version
- Upgrade Vault (the hashicorp/vault image or binary) to the patched release.
HashiCorp Vault Enterprise (Runtimes and servers)
Upgrade HashiCorp Vault Enterprise to the fixed release of the line you run: 1.16.20, 1.17.16, 1.18.9, 1.19.3.
vault version
- Upgrade Vault Enterprise (the hashicorp/vault-enterprise image or binary) to the patched release.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
Vault Community and Vault Enterprise Key/Value (kv) Version 2 plugin may unintentionally expose sensitive information in server and audit logs when users submit malformed payloads during secret creation or update operations via the Vault REST API. This vulnerability, identified as CVE-2025-4166, is fixed in Vault Community 1.19.3 and Vault Enterprise 1.19.3, 1.18.9, 1.17.16, 1.16.20.
References
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.