Miggo Logo

CVE-2025-4656: Vault Community Edition rekey and recovery key operations can cause denial of service

3.1

CVSS Score
3.1

Basic Information

EPSS Score
0.12642%
Published
6/26/2025
Updated
6/27/2025
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L
Package NameEcosystemVulnerable VersionsFirst Patched Version
github.com/hashicorp/vaultgo>= 1.14.8, < 1.20.01.20.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability lies in the uncontrolled cancellation of rekey and recovery key operations in HashiCorp Vault. The analysis of the provided patches, specifically commit 851984b567127bc5cd2dbc46e70a494eb40e7953, reveals the root cause. The DELETE /v1/sys/rekey/init and DELETE /v1/sys/rekey-recovery-key/init endpoints, handled by the http.handleSysRekeyInitDelete function, allowed cancellation of an ongoing rekey process without any authentication. This handler called the vault.Core.RekeyCancel function, which, prior to the patch, did not require any token or nonce to proceed with the cancellation.

An attacker could exploit this by repeatedly sending unauthenticated DELETE requests to these endpoints, effectively preventing any rekey operation from completing, thus causing a denial of service. The fix introduces a nonce-based mechanism. When a rekey is initiated, a unique nonce is generated. This nonce must be provided to cancel the operation within a 10-minute window, preventing an unauthorized user from disrupting the process. The identified vulnerable functions, http.handleSysRekeyInitDelete (the network entry point) and vault.Core.RekeyCancel (the core logic), would both appear in a runtime profile during the exploitation of this vulnerability.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

V*ult *ommunity *n* V*ult *nt*rpris* r*k*y *n* r**ov*ry k*y op*r*tions **n l*** to * **ni*l o* s*rvi** *u* to un*ontroll** **n**ll*tion *y * V*ult op*r*tor. T*is vuln*r**ility (*V*-****-****) **s ***n r*m**i*t** in V*ult *ommunity **ition *.**.* *n*

Reasoning

T** vuln*r**ility li*s in t** un*ontroll** **n**ll*tion o* r*k*y *n* r**ov*ry k*y op*r*tions in **s*i*orp V*ult. T** *n*lysis o* t** provi*** p*t***s, sp**i*i**lly *ommit `****************************************`, r*v**ls t** root **us*. T** `**L*T*