Skip to main content
Vulnerability Database/CVE-2025-54999

CVE-2025-54999: OpenBao Userpass Auth Bypass Vulnerability

CVE-2025-54999 is an authentication bypass flaw in OpenBao affecting versions 0.1.0 through 2.3.1, allowing user enumeration through timing attacks. This article covers technical details, affected versions, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-54999 Overview

CVE-2025-54999 is a timing side-channel vulnerability in OpenBao, an open-source secrets management platform forked from HashiCorp Vault. The userpass authentication method exhibits measurable timing differences when processing login requests for existing versus non-existent users. An unauthenticated remote attacker can send crafted login requests and compare response times to enumerate valid usernames. The flaw affects OpenBao versions 0.1.0 through 2.3.1 and is fixed in version 2.3.2. It is tracked under CWE-203: Observable Discrepancy and is related to the parallel HashiCorp Vault advisory HCSEC-2025-15.

Critical Impact

Attackers can enumerate valid OpenBao usernames without authentication, enabling targeted credential-stuffing and brute-force attacks against discovered accounts.

Affected Products

  • OpenBao 0.1.0 through 2.3.1
  • userpass authentication method specifically
  • Fixed in OpenBao 2.3.2

Discovery Timeline

  • 2025-08-09 - CVE-2025-54999 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-54999

Vulnerability Analysis

The vulnerability resides in the userpass credential backend at builtin/credential/userpass/path_login.go. When a login request arrives, OpenBao looks up the user record. If the user does not exist, the handler returns quickly without performing a bcrypt comparison. If the user exists, OpenBao invokes bcrypt.CompareHashAndPassword, which is a deliberately slow operation. The difference between the two code paths is measurable over the network. An attacker scripting authentication attempts against a candidate username list can classify each response as "user exists" or "user does not exist" based solely on latency. The leak is independent of whether the supplied password is valid.

Root Cause

The underlying issue is a classic observable-discrepancy flaw [CWE-203]. The authentication path performed expensive cryptographic work only for valid accounts, creating a timing oracle. The fix normalizes execution time by always performing a bcrypt comparison, even when the username does not exist, using a precomputed dummy hash.

Attack Vector

Exploitation requires only network access to the OpenBao API endpoint and the ability to issue unauthenticated POST requests to /v1/auth/userpass/login/{username}. The attacker iterates through a username wordlist, measures response times, and flags entries whose latency matches the bcrypt-processing baseline. No credentials, user interaction, or special privileges are required.

go
// Patch excerpt from builtin/credential/userpass/path_login.go
// Source: https://github.com/openbao/openbao/commit/4d9b5d3d6486ab9fbd5b644173fa0097015d6626

	"github.com/openbao/openbao/sdk/v2/helper/cidrutil"
	"github.com/openbao/openbao/sdk/v2/helper/policyutil"
	"github.com/openbao/openbao/sdk/v2/logical"
	"github.com/openbao/openbao/sdk/v2/physical"
	"golang.org/x/crypto/bcrypt"
)

// bcrypt.GenerateFromPassword is impossible to error, assuming we:
// - provide password of a appriopriate length (<72)
// - provide valid cost
// both criteria we meet
var dummyHash, _ = bcrypt.GenerateFromPassword([]byte("dummy"), bcrypt.DefaultCost)

func pathLogin(b *backend) *framework.Path {
	return &framework.Path{
		Pattern: "login/" + framework.GenericNameRegex("username"),

The fix introduces a dummyHash so that the non-existent-user path performs an equivalent bcrypt comparison, equalizing response times.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2025-54999

Indicators of Compromise

  • High volumes of failed POST /v1/auth/userpass/login/* requests from a single source IP or small set of IPs.
  • Sequential or dictionary-ordered usernames appearing in OpenBao audit logs within a short window.
  • Login attempts producing a mix of invalid username or password responses with unusually uniform request cadence consistent with automated enumeration.

Detection Strategies

  • Enable OpenBao audit devices and ship logs to a centralized analytics platform for behavioral baselining of authentication traffic.
  • Alert on bursts of userpass login failures that exceed a per-source threshold within a rolling time window.
  • Correlate failed userpass attempts followed by successful logins against the same username to detect enumeration-to-credential-stuffing pivots.

Monitoring Recommendations

  • Monitor OpenBao API latency distributions for scripted traffic patterns targeting /v1/auth/userpass/login/.
  • Track and inventory which identities authenticate via userpass versus stronger methods and flag unexpected usage.
  • Review rate-limit quota metrics to confirm enforcement and surface clients repeatedly hitting quotas.

How to Mitigate CVE-2025-54999

Immediate Actions Required

  • Upgrade OpenBao to version 2.3.2 or later on all nodes in the cluster.
  • Audit userpass user lists and rotate credentials for any accounts suspected of exposure to enumeration attempts.
  • Restrict network reachability of the OpenBao API to trusted CIDR ranges where feasible.

Patch Information

The fix is delivered in OpenBao 2.3.2 via commit 4d9b5d3. The patch always executes bcrypt.CompareHashAndPassword against a precomputed dummyHash when the username is not found, equalizing login latency. Full advisory details are available in the GitHub Security Advisory GHSA-hh28-h22f-8357 and the related HashiCorp Security Advisory HCSEC-2025-15.

Workarounds

  • Switch sensitive workloads to a stronger authentication method such as AppRole, OIDC, JWT, or Kubernetes auth.
  • Apply OpenBao rate-limit quotas to the auth/userpass/login/* paths to constrain enumeration throughput.
  • Place OpenBao behind a reverse proxy or WAF that enforces per-source request rate limits and anomaly detection.
bash
# Apply a rate-limit quota to the userpass login path
bao write sys/quotas/rate-limit/userpass-login \
    path="auth/userpass/login" \
    rate=10 \
    interval=60 \
    block_interval=300

# Verify the quota is active
bao read sys/quotas/rate-limit/userpass-login

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.