CVEfocus › CVE database › CVE-2025-4166

CVE-2025-4166Vault May Include Sensitive Data in Error Logs When Using the KV v2 Plugin

CVSS 4.5 MediumEPSS 0.5% (higher than 40% of CVEs)Published 2025-05-02Updated 2025-05-08Assigner: HashiCorp

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.

CWE-209

What to do

Fixed builds are available from Alpine, Go: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Alpine Linux 3.24openbaoFixed2.2.2-r0ALPINE-CVE-2025-4166
Alpine Linux 3.23openbaoFixed2.2.2-r0ALPINE-CVE-2025-4166
Alpine Linux 3.22openbaoFixed2.2.2-r0ALPINE-CVE-2025-4166
Go librarygithub.com/hashicorp/vaultFixed1.19.3GHSA-gcqf-f89c-68hv

What the vendor says

As published in the CVE record by HashiCorp, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.