CVE-2025-4166 in Hashicorp Vault and 1 more product
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 Co...
Affects 2 products from 2 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.
Affected products and versions
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-4166 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-040249-M |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
| Published | 2025-05-02 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-209: CWE-209
Related attack patterns (CAPEC)
CAPEC-7 Blind SQL Injection via CWE-209
CAPEC-215 Fuzzing for application mapping via CWE-209
CAPEC-463 Padding Oracle Crypto Attack via CWE-209
CAPEC-54 Query System for Information via CWE-209
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2025-4166 affects Vault Community and Vault Enterprise Key/Value (kv) Version 2 plugin, potentially exposing sensitive information in server and audit logs due to malformed payloads.
Attackers can exploit this vulnerability by submitting malformed payloads during secret creation or update operations via the Vault REST API, leading to the exposure of sensitive information in logs.
Questions
What is CVE-2025-4166?
CVE-2025-4166 affects Vault Community and Vault Enterprise Key/Value (kv) Version 2 plugin, potentially exposing sensitive information in server and audit logs due to malformed payloads.
What is the CVSS score for CVE-2025-4166?
CVE-2025-4166 has CVSS 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N. EPSS: 0.7%.
Is CVE-2025-4166 actively exploited?
No confirmed active exploitation of CVE-2025-4166 as of 2026-09-25.
How do I remediate CVE-2025-4166?
Priority: HIGH. Advisory: 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 PSIRT: [email protected]
What systems are affected by CVE-2025-4166?
CVE-2025-4166 affects Hashicorp Vault; Openbao Openbao.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Hashicorp","product":"Vault","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.