Skip to content
Heist/ feed
Back to feed
Medium

Vault May Include Sensitive Data in Error Logs When Using the KV v2 Plugin

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-4166
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 01:57 UTC · Revision 1

Source evidence

Vault May Include Sensitive Data in Error Logs When Using the KV v2 Plugin

core-osv · Original source

Published 2 May 2025, 14:57 UTC

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.

osv:CVE-2025-4166
Complete source record
{
  "id": "cd37a3ac28d0970251f883349634795164d6bb450ae47a2608cb2063561ec054",
  "url": "https://osv.dev/vulnerability/CVE-2025-4166",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Vault May Include Sensitive Data in Error Logs When Using the KV v2 Plugin",
    "summary": "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.",
    "evidence": "osv:CVE-2025-4166",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2025-4166",
      "aliases": [
        "BIT-openbao-2025-4166",
        "BIT-vault-2025-4166",
        "CVE-2025-4166",
        "GHSA-gcqf-f89c-68hv",
        "GO-2025-3663"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/hashicorp/vault",
              "type": "GIT",
              "events": [
                {
                  "introduced": "347f48c55bae0fa7a36d8eae6028de9a6eeefc01"
                },
                {
                  "fixed": "a2de3bb7bcf4a073cbb8724863a5a88d3c2f83da"
                },
                {
                  "introduced": "7eeafb6160d60ede73c1d95566b0c8ea54f3cb5a"
                },
                {
                  "fixed": "a2de3bb7bcf4a073cbb8724863a5a88d3c2f83da"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:hashicorp:vault:*:*:*:*:-:*:*:*",
                    "range": [
                      {
                        "introduced": "0.3.0"
                      },
                      {
                        "fixed": "1.19.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:hashicorp:vault:*:*:*:*:enterprise:*:*:*",
                    "range": [
                      {
                        "introduced": "1.19.0"
                      },
                      {
                        "fixed": "1.19.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            },
            {
              "repo": "https://github.com/openbao/openbao",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "8c0322c0423231836a1432fdad29dc2e99640da9"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:openbao:openbao:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.2.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.19.2",
            "v1.19.1",
            "v1.19.0",
            "v2.2.1",
            "v2.2.0",
            "v2.2.0-beta20250213",
            "sdk/v2.2.0",
            "api/v2.2.0",
            "api/auth/userpass/v2.2.0",
            "api/auth/ldap/v2.2.0",
            "api/auth/kubernetes/v2.2.0",
            "api/auth/approle/v2.2.0",
            "v2.1.0-beta20241114.3",
            "v2.1.0-beta20241114.2",
            "v2.1.0-beta20241114.1",
            "v2.1.0-beta20241114",
            "sdk/v2.1.0",
            "api/v2.1.0",
            "v2.0.0",
            "sdk/v2.0.1",
            "api/v2.0.1",
            "api/auth/userpass/v2.0.1",
            "api/auth/ldap/v2.0.1",
            "api/auth/kubernetes/v2.0.1",
            "api/auth/approle/v2.0.1",
            "v2.0.0-beta20240618",
            "sdk/v1.100.0-development20240408",
            "api/v1.100.0-development20240408",
            "api/auth/userpass/v1.1.0-development20240408",
            "api/auth/ldap/v1.1.0-development20240408",
            "api/auth/kubernetes/v1.1.0-development20240408",
            "api/auth/gcp/v1.1.0-development20240408",
            "api/auth/azure/v1.1.0-development20240408",
            "api/auth/aws/v1.1.0-development20240408",
            "api/auth/approle/v1.1.0-development20240408",
            "v2.0.0-alpha20240329",
            "before-plugin-removal",
            "api/auth/userpass/v0.4.1",
            "api/auth/gcp/v0.4.1",
            "api/auth/azure/v0.4.1",
            "api/auth/aws/v0.4.1",
            "api/auth/approle/v0.4.1",
            "sdk/v0.9.1",
            "api/v1.9.2",
            "api/v1.9.1",
            "sdk/v0.9.0",
            "api/auth/userpass/v0.4.0",
            "api/auth/gcp/v0.4.0",
            "api/auth/azure/v0.4.0",
            "api/auth/aws/v0.4.0",
            "api/auth/approle/v0.4.0",
            "sdk/v0.8.0",
            "api/v1.9.0",
            "api/v1.8.3",
            "sdk/v0.7.0",
            "sdk/v0.6.2",
            "sdk/v0.6.1",
            "api/v1.8.2",
            "api/v1.8.1",
            "api/auth/userpass/v0.3.0",
            "api/auth/gcp/v0.3.0",
            "api/auth/azure/v0.3.0",
            "api/auth/aws/v0.3.0",
            "api/auth/approle/v0.3.0",
            "api/v1.8.0",
            "sdk/v0.6.0",
            "api/auth/userpass/v0.2.0",
            "api/auth/gcp/v0.2.0",
            "api/auth/azure/v0.2.0",
            "api/auth/aws/v0.2.0",
            "api/auth/approle/v0.2.0",
            "sdk/v0.5.3",
            "api/v1.7.2",
            "sdk/v0.5.1",
            "api/v1.7.1",
            "api/v1.7.0",
            "api/v1.6.0",
            "sdk/v0.5.0",
            "api/v1.5.0",
            "sdk/v0.4.1",
            "api/v1.3.1",
            "api/auth/approle/v0.1.1",
            "api/auth/gcp/v0.1.0",
            "api/auth/azure/v0.1.0",
            "api/auth/userpass/v0.1.0",
            "api/auth/aws/v0.1.0",
            "api/auth/approle/v0.1.0",
            "sdk/v0.3.0",
            "api/v1.2.0",
            "api/v1.1.1",
            "sdk/v0.2.1",
            "api/v1.0.4",
            "sdk/v0.1.13",
            "api/v1.0.3",
            "sdk/v0.1.12",
            "sdk/v0.1.11",
            "sdk/v0.1.10",
            "api/v1.0.2",
            "sdk/v0.1.9",
            "api/v1.0.1",
            "sdk/v0.1.8"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-4166.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:48.792462182Z",
      "provider": "osv",
      "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",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/4xxx/CVE-2025-4166.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-4166",
        "https://github.com/hashicorp/vault"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-209"
        ],
        "cna_assigner": "HashiCorp",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0.10.0"
                  },
                  {
                    "fixed": "1.18.9"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "ChangesAt"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/4xxx/CVE-2025-4166.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-4166",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 517161,
  "published_at": "2025-05-02T14:57:58.71+00:00"
}