CVE-2025-4166
MEDIUM 6.5CVSS 3.1Hashicorp Vault Community vulnerable to Generation of Error Message Containing Sensitive Information
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.
- Published
- 2 May 2025
- Last modified
- 10 Sep 2026
- Assigned by
- security@hashicorp.com
- NVD status
- Analyzed
- Weakness
- CWE-209
- Also known as
- BIT-openbao-2025-4166BIT-vault-2025-4166GHSA-gcqf-f89c-68hvGO-2025-3663
- Sources
- NVDJSONOSV GHSA-gcqf-f89c-68hvJSONOSV GO-2025-3663JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
| NVD | security@hashicorp.com (Secondary) | CVSS 3.1 | MEDIUM 4.5 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.5 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | hashicorp | vaultcpe:2.3:a:hashicorp:vault:*:*:*:*:enterprise:*:*:* |
>= 0.3.0, < 1.16.20 | 1.16.20 |
| NVD | hashicorp | vaultcpe:2.3:a:hashicorp:vault:*:*:*:*:-:*:*:* |
>= 0.3.0, < 1.19.3 | 1.19.3 |
| NVD | hashicorp | vaultcpe:2.3:a:hashicorp:vault:*:*:*:*:enterprise:*:*:* |
>= 1.17.0, < 1.17.16 | 1.17.16 |
| NVD | hashicorp | vaultcpe:2.3:a:hashicorp:vault:*:*:*:*:enterprise:*:*:* |
>= 1.18.0, < 1.18.9 | 1.18.9 |
| NVD | hashicorp | vaultcpe:2.3:a:hashicorp:vault:*:*:*:*:enterprise:*:*:* |
>= 1.19.0, < 1.19.3 | 1.19.3 |
| NVD | openbao | openbaocpe:2.3:a:openbao:openbao:*:*:*:*:*:*:*:* |
< 2.2.2 | 2.2.2 |
| OSV | Go | github.com/hashicorp/vault | >= 0.3.0, < 1.19.3 | 1.19.3 |
References
- https://discuss.hashicorp.com/t/hcsec-2025-09-vault-may-expose-sensitive-information-in-error-logs-when-processing-malformed-data-with-the-kv-v2-plugin · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-4166 · ADVISORY
- https://github.com/hashicorp/vault · PACKAGE
- https://pkg.go.dev/vuln/GO-2025-3663 · WEB
- https://github.com/advisories/GHSA-gcqf-f89c-68hv · ADVISORY
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 2 May 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 May 2025)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 2 May 2025)