Skip to main content

OpenBao CVE-2026-55770

| EUVDEUVD-2026-78683 MEDIUM
LDAP Injection (CWE-90)
2026-06-19 https://github.com/openbao/openbao GHSA-6mwx-4547-5vc9
6.8
CVSS 3.1 · Vendor: https://github.com/openbao/openbao
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain low-privileged LDAP account credentials
  2. Delivery
    Craft filter-injection username with unescaped metacharacters
  3. Exploit
    POST crafted username and own password to /v1/auth/ldap/login/
  4. Install
    LDAP bind succeeds with attacker's real credential
  5. C2
    Injected filter causes directory search to return admin entry
  6. Execute
    OpenBao issues token bound to admin entity
  7. Impact
    Read and write all secrets as administrator

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization LDAP query parameterization
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Three conditions must all be true: (1) the LDAP authentication backend must be enabled and configured in OpenBao (non-default; the backend is one of several auth methods); (2) the attacker must possess valid LDAP credentials for at least one directory account to successfully complete the initial bind step (PR:L - a standard low-privileged account is sufficient, no admin credential required); (3) the directory must use either Active Directory UPN Domain binding (UPNDomain set) or standard UserDN/UserAttr binding - both code paths pass through the vulnerable GetUserDN() function. The impersonation target depends on the LDAP server's result ordering in response to the injected filter (in Active Directory, commonly the alphabetically or chronologically first matching entry). Exploitation is limited by: the requirement for a pre-existing valid LDAP credential ruling out fully unauthenticated attacks; the LDAP server's result ordering behavior being outside the attacker's direct control (though sophisticated injections can narrow the match set); and the vulnerability being scoped to instances where LDAP is the configured auth method - deployments using only AppRole, JWT, PKI, or other backends are not affected.

Impact

The vendor-assigned CVSS 3.1 score of 6.8 (AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N) accurately reflects the risk profile: network-accessible attack surface (AV:N), but requiring both a configured LDAP auth backend and a valid low-privileged LDAP credential (driving AC:H and PR:L). Confidentiality and Integrity impacts are both High because successful exploitation binds the attacker's OpenBao session token to an arbitrary directory user - potentially an administrator - granting read and write access to all secrets and policies associated with that entity. Availability impact is assessed None because the attack path does not directly disrupt service. No EPSS score was provided in the input data, so probability-of-exploitation inference must rely on other signals: the advisory includes a fully functional curl-based PoC requiring no special tooling, which significantly lowers exploitation barrier. The AC:H score is appropriate - LDAP must be the configured auth method, limiting the population of exposed instances - but within that population the attack is trivially executable. This is a genuine priority for enterprise OpenBao deployments using LDAP as a primary auth method; the 'high complexity' CVSS label should not be misread as 'hard to exploit in practice' by defenders where the preconditions are already met.

Exploit ScenarioDerived

An attacker holding a valid but low-privileged LDAP account (e.g., a standard employee account) sends a POST request to /v1/auth/ldap/login/ with the username alice)(|(sAMAccountName=admin and their own legitimate password. The LDAP bind step succeeds using their real credentials, but the injected filter syntax causes OpenBao's directory search to return the admin user's entry rather than alice's. OpenBao then issues a session token scoped to the admin entity, granting the attacker full administrative access to the secrets store. A working PoC using a single curl command is published in the vendor advisory GHSA-6mwx-4547-5vc9.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 19, 2026

LDAP injection in OpenBao versions 0.1.0 through 2.5.4 allows an attacker with a valid low-privileged LDAP account to impersonate arbitrary directory users, including administrators, by supplying filter metacharacters in the username field at login. The root cause is a function selection error in sdk/helper/ldaputil/client.go: EscapeLDAPValue() (RFC 4514, DN escaping) is used in LDAP filter construction instead of ldap.EscapeFilter() (RFC 4515), leaving characters *, (, ), \, and NUL unescaped and injectable. Publicly available exploit code exists in the vendor advisory; no confirmed active exploitation (CISA KEV) has been identified at time of analysis.

RemediationAI

Upgrade to OpenBao v2.5.5 or later, which incorporates the fix from commit 10b7825c714c1ef25b6c3c1c2cd6ecd8747c0659 (PR #3306); the release is available at https://github.com/openbao/openbao/releases/tag/v2.5.5. The patch replaces EscapeLDAPValue() with ldap.EscapeFilter() in all LDAP filter construction paths in both sdk/helper/ldaputil/client.go and builtin/logical/openldap/client.go. If immediate patching is not feasible, restrict network access to the /v1/auth/ldap/login/ endpoint to trusted internal hosts only (this does not eliminate risk if internal attackers are in scope, but reduces the attack surface to lower-trust network paths). Apply the principle of least privilege to the LDAP service account used by OpenBao so that injected filters cannot enumerate or bind high-privileged accounts. Configuring explicit UserFilter constraints limits the LDAP search scope as a defense-in-depth measure but does not remediate the root injection. Audit remaining call sites with grep -rn 'EscapeLDAPValue' across the codebase to identify any additional filter-context usages not covered by PR #3306.

Affected VersionsENISA

openbao < 2.5.5

Affected Packages

go github.com/openbao/openbao fix: 0.0.0-20260617104213-10b7825c714c
euvd openbao fix: 2.5.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

OpenBao (pkg:go/github.com/openbao/openbao) is an open-source secrets management platform (HashiCorp Vault fork) written in Go. The shared LDAP utility at sdk/helper/ldaputil/client.go is consumed by both the LDAP authentication backend and the OpenLDAP secrets engine. CWE-90 (LDAP Injection) is the root cause class: the Go function EscapeLDAPValue() implements RFC 4514 Distinguished Name escaping, which sanitizes DN-special characters (+, ,, ;, ", \, <, >, leading/trailing spaces) but leaves RFC 4515 filter-special characters (*, (, ), \, NUL) completely unescaped. When a user-supplied username is interpolated into an LDAP search filter string via fmt.Sprintf, these unescaped characters alter the logical structure of the filter. The correct fix is ldap.EscapeFilter() from github.com/go-ldap/ldap/v3, which was already applied correctly in RenderUserSearchFilter() (lines 225-226 of the same file) but absent in GetUserDN() (lines 191-193). PR #3306 and commit 10b7825c714c extend the correct escaping function to all filter construction paths, including builtin/logical/openldap/client.go.

Know when LDAP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/openbao/openbao) PRIMARY 6.8 MEDIUM
AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 6.8 MEDIUM

Network-accessible endpoint requires a valid LDAP credential (PR:L) and a configured LDAP backend (AC:H); full impersonation impact on C and I with no availability consequence (A:N).

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
SUSE MEDIUM

Primary rating from Vendor (https://github.com/openbao/openbao).

CVSS VectorVendor: https://github.com/openbao/openbao

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

DescriptionCVE.org

1. Description

Component

sdk/helper/ldaputil/client.go - the shared LDAP utility library used by both the LDAP authentication backend and OpenLDAP secrets engine to construct LDAP search filters and bind DNs.

Root Cause

The LDAP utility contains a function selection error that causes incorrect escaping of user-controlled input in LDAP filter construction. Two lines construct the bindDN using EscapeLDAPValue():

go
// Line 191 - UPN Domain path
bindDN = fmt.Sprintf("%s@%s", EscapeLDAPValue(username), cfg.UPNDomain)

// Line 193 - User DN path
bindDN = fmt.Sprintf("%s=%s,%s", cfg.UserAttr, EscapeLDAPValue(username), cfg.UserDN)

The problem: EscapeLDAPValue() implements RFC 4514 escaping, which is designed for Distinguished Name (DN) components. It only escapes characters meaningful in DNs: +, ,, ;, ", \, <, >, and leading/trailing spaces.

LDAP search filters (RFC 4515) have a different set of special characters: *, (, ), \, and NUL (\x00). None of these are escaped by EscapeLDAPValue(). The correct function is ldap.EscapeFilter() from the github.com/go-ldap/ldap/v3 package.

The irony: the same file uses ldap.EscapeFilter() correctly at lines 225-226 in RenderUserSearchFilter() for the UserFilter template path, but the GetUserDN() function at lines 191-193 uses the wrong escape function.

Exploitation Mechanics

Username: alice)(objectClass=*
↓ EscapeLDAPValue (no-op - no DN special chars)
alice)(objectClass=*
↓ fmt.Sprintf("(&(objectClass=user)(sAMAccountName=%s))", escapedUsername)
(&(objectClass=user)(sAMAccountName=alice)(objectClass=*))
                              ^^ injection point

The filter (&(objectClass=user)(sAMAccountName=alice)(objectClass=*)) is logically equivalent to:

  • sAMAccountName=alice AND objectClass=user AND objectClass=*

Since all entries match objectClass=*, the filter matches any user entry where sAMAccountName is alice, effectively ignoring the objectClass=user constraint. By crafting more sophisticated injections (e.g., alice)(|(sAMAccountName=admin), the attacker can match arbitrary different user entries.

Preconditions

  • LDAP authentication backend must be configured
  • Directory must be Active Directory (UPNDomain path) or use UserDN/UserAttr binding
  • Attacker controls the username field at login time

2. Proof of Concept

bash
# Login with LDAP injection payload as username
curl -k -X POST \
  -H "Content-Type: application/json" \
  -d '{
    "username": "alice)(sAMAccountName=*",
    "password": "anything"
  }' \
  https://localhost:8200/v1/auth/ldap/login/admin
# LDAP filter constructed:
# (&(objectClass=user)(sAMAccountName=alice)(sAMAccountName=*))
#                   injection ──────────^
# The filter matches the first user with objectClass=user
# If the LDAP server returns admin's entry first, the token
# is bound to the admin entity, inheriting all admin policies

The LDAP search returns whichever entry the server ranks highest among results. In Active Directory with default sorting, this is often the oldest or alphabetically first user - potentially an administrative account.

3. Impact

ImpactDetail
ConfidentialityToken bound to a different LDAP user (e.g., admin) grants access to all secrets and policies belonging to that entity
IntegrityAbility to modify secrets, write policies, or configure backends as the impersonated user
AvailabilityLow direct impact, but administrative access enables disabling or misconfiguring the entire OpenBao instance

Likelihood: HIGH - the escape function mismatch is a well-documented antipattern in OWASP LDAP Injection guidance. The attack is trivially exploitable with no special tooling beyond curl.

Why This Is High Severity

The LDAP auth backend is frequently used as a primary authentication method for enterprise OpenBao deployments. A successful LDAP injection against this backend can bypass the entire authentication chain, granting administrative access to the secrets store without needing to compromise an actual admin account.

4. Remediation

Primary Fix: Use ldap.EscapeFilter

Replace EscapeLDAPValue with ldap.EscapeFilter in both filter construction paths:

go
import "github.com/go-ldap/ldap/v3"

// Line 191 - UPN Domain path
bindDN = fmt.Sprintf("%s@%s", ldap.EscapeFilter(username), cfg.UPNDomain)

// Line 193 - User DN path
bindDN = fmt.Sprintf("%s=%s,%s", cfg.UserAttr, ldap.EscapeFilter(username), cfg.UserDN)

EscapeLDAPValue is still the correct choice for actual DN construction (where values are used as RDN components rather than filter values), but any value interpolated into an LDAP filter string must use ldap.EscapeFilter.

Audit: All Call Sites

Review all usages of EscapeLDAPValue across the codebase to ensure none are used in filter context:

bash
grep -rn "EscapeLDAPValue" /root/cve-audit/openbao/

Defense-in-Depth

  • Apply the principle of least privilege to LDAP service accounts used by OpenBao
  • Use UserFilter with explicit attribute constraints to limit the search scope

Threat Intelligence Overview

EPSS Score
0.4%
Top 62% exploitable
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in LDAP

View all
CVE-2016-9299 CRITICAL POC
9.8 Jan 12

The remoting module in Jenkins before 2.32 and LTS before 2.19.3 allows remote attackers to execute arbitrary code via a

CVE-2017-14596 CRITICAL POC
9.8 Sep 20

In Joomla!. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required,

CVE-2017-8790 CRITICAL POC
9.8 May 05

An issue was discovered on Accellion FTA devices before FTA_9_12_180. Rated critical severity (CVSS 9.8), this vulnerabi

CVE-2023-28853 MEDIUM POC
6.5 Apr 04

Mastodon is a free, open-source social network server based on ActivityPub Mastodon allows configuration of LDAP for aut

CVE-2020-36966 MEDIUM POC
6.4 Jan 30

Dolibarr 11.0.3 contains a persistent cross-site scripting vulnerability in LDAP synchronization settings that allows at

CVE-2025-36556 MEDIUM POC
6.1 Jan 20

A reflected cross-site scripting (xss) vulnerability exists in the ldapUser functionality of MedDream PACS Premium 7.3.6

CVE-2026-23906 CRITICAL
9.8 Feb 10

Authentication bypass in Apache Druid versions 0.17.0 through 35.x. Affects all versions prior to 36.0.0 when specific p

CVE-2026-44930 CRITICAL
9.8 May 22

Arbitrary certificate disclosure in Apache CXF's XKMS server lets remote attackers abuse an LDAP injection flaw (CWE-90)

CVE-2024-33868 CRITICAL
9.8 May 14

An issue was discovered in linqi before 1.4.0.1 on Windows. Rated critical severity (CVSS 9.8), this vulnerability is re

CVE-2023-6905 CRITICAL
9.8 Dec 18

A vulnerability, which was classified as problematic, has been found in Jahastech NxFilter 4.3.2.5.jsp?actionFlag=test&i

CVE-2021-43350 CRITICAL
9.8 Nov 11

An unauthenticated Apache Traffic Control Traffic Ops user can send a request with a specially-crafted username to the P

CVE-2026-46619 CRITICAL
9.3 Jun 26

Authentication bypass in Open Identity Platform OpenAM Community Edition (through 16.0.6) lets an unauthenticated remote

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy