{"id":"GHSA-6mwx-4547-5vc9","revision":null,"records":[{"revision":"1d27e76511db4de8b755103986381b39","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-55770","aliases":[],"title":"OpenBao: LDAPi ldaputil (wrong escape func)","description":"OpenBao is an open source identity-based secrets management system. Prior to 2.5.5, OpenBao used EscapeLDAPValue, an RFC 4514 distinguished-name escaping function, where RFC 4515 LDAP search-filter escaping was required in sdk/helper/ldaputil/client.go GetUserDN. With the LDAP authentication backend configured for an Active Directory UPNDomain path or UserDN and UserAttr binding, an attacker-controlled username containing filter metacharacters could alter the search predicate and select a different directory entry because EscapeLDAPValue does not neutralize the characters handled by ldap.EscapeFilter. A resulting token could be associated with another LDAP identity and gain access to secrets, policies, or modification capabilities assigned to that identity. This issue is fixed in version 2.5.5.","state":0,"publishedAt":"2026-09-15T15:44:35.898+00:00","modifiedAt":"2026-09-17T11:59:03.495+00:00","affected":[{"ecosystem":"Vendor product","name":"openbao","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"openbao\",\n                    \"product\": \"openbao\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 2.5.5\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","score":6.8,"severity":"MEDIUM"}],"references":["https://github.com/openbao/openbao/security/advisories/GHSA-6mwx-4547-5vc9","https://github.com/openbao/openbao/pull/3306","https://github.com/openbao/openbao/pull/3313","https://github.com/openbao/openbao/commit/10b7825c714c1ef25b6c3c1c2cd6ecd8747c0659","https://github.com/openbao/openbao/commit/8077f96bdc02137b0a072146b6f9ca11c96c549c","https://github.com/openbao/openbao/releases/tag/v2.5.5","https://github.com/openbao/openbao/releases/tag/v2.6.0"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-55770","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-55770","identifiers":["CVE-2026-55770"]},"retained":false,"historicalAffected":[]},{"revision":"15abb1b55cd54549bc2c3d00dcb7cb40","observedAt":"2026-11-11T14:04:29.495+00:00","statement":{"source":"euvd","id":"EUVD-2026-78683","aliases":["CVE-2026-55770","GHSA-6mwx-4547-5vc9"],"title":"OpenBao is an open source identity-based secrets management system. Prior to 2.5.5, OpenBao used EscapeLDAPValue, an RFC 4514 distinguished-name escaping function, where RFC 4515 LDAP search-filter escaping was required in sdk/helper/ldaput…","description":"OpenBao is an open source identity-based secrets management system. Prior to 2.5.5, OpenBao used EscapeLDAPValue, an RFC 4514 distinguished-name escaping function, where RFC 4515 LDAP search-filter escaping was required in sdk/helper/ldaputil/client.go GetUserDN. With the LDAP authentication backend configured for an Active Directory UPNDomain path or UserDN and UserAttr binding, an attacker-controlled username containing filter metacharacters could alter the search predicate and select a different directory entry because EscapeLDAPValue does not neutralize the characters handled by ldap.EscapeFilter. A resulting token could be associated with another LDAP identity and gain access to secrets, policies, or modification capabilities assigned to that identity. This issue is fixed in version 2.5.5.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","score":6.8,"severity":null}],"references":["https://github.com/openbao/openbao/security/advisories/GHSA-6mwx-4547-5vc9","https://github.com/openbao/openbao/pull/3306","https://github.com/openbao/openbao/pull/3313","https://github.com/openbao/openbao/commit/10b7825c714c1ef25b6c3c1c2cd6ecd8747c0659","https://github.com/openbao/openbao/commit/8077f96bdc02137b0a072146b6f9ca11c96c549c","https://github.com/openbao/openbao/releases/tag/v2.5.5","https://github.com/openbao/openbao/releases/tag/v2.6.0"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-78683","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Sep 15, 2026, 3:44:35 PM","dateUpdated":"Sep 17, 2026, 11:59:03 AM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-78683","identifiers":["EUVD-2026-78683","CVE-2026-55770","GHSA-6mwx-4547-5vc9"]},"retained":false,"historicalAffected":[]},{"revision":"322dfa41add44040958412113d330b36","observedAt":"2026-10-25T14:19:05.298+00:00","statement":{"source":"nvd","id":"CVE-2026-55770","aliases":[],"title":"OpenBao is an open source identity-based secrets management system. Prior to 2.5.5, OpenBao used EscapeLDAPValue, an RFC 4514 distinguished-name escaping function, where RFC 4515 LDAP search-filter escaping was required in sdk/helper/ldaput…","description":"OpenBao is an open source identity-based secrets management system. Prior to 2.5.5, OpenBao used EscapeLDAPValue, an RFC 4514 distinguished-name escaping function, where RFC 4515 LDAP search-filter escaping was required in sdk/helper/ldaputil/client.go GetUserDN. With the LDAP authentication backend configured for an Active Directory UPNDomain path or UserDN and UserAttr binding, an attacker-controlled username containing filter metacharacters could alter the search predicate and select a different directory entry because EscapeLDAPValue does not neutralize the characters handled by ldap.EscapeFilter. A resulting token could be associated with another LDAP identity and gain access to secrets, policies, or modification capabilities assigned to that identity. This issue is fixed in version 2.5.5.","state":0,"publishedAt":"2026-09-15T16:17:15.763+00:00","modifiedAt":"2026-09-29T19:06:32.333+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","score":6.8,"severity":"MEDIUM"}],"references":["https://github.com/openbao/openbao/commit/10b7825c714c1ef25b6c3c1c2cd6ecd8747c0659","https://github.com/openbao/openbao/commit/8077f96bdc02137b0a072146b6f9ca11c96c549c","https://github.com/openbao/openbao/pull/3306","https://github.com/openbao/openbao/pull/3313","https://github.com/openbao/openbao/releases/tag/v2.5.5","https://github.com/openbao/openbao/releases/tag/v2.6.0","https://github.com/openbao/openbao/security/advisories/GHSA-6mwx-4547-5vc9"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-55770","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-90"],"productCriteria":[],"sourceDates":{"published":"2026-09-15T16:17:15.763","lastModified":"2026-09-29T19:06:32.333"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-55770","identifiers":["CVE-2026-55770"]},"retained":false,"historicalAffected":[]},{"revision":"67cc8e03473543cd824aef689f0cd1b6","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-6mwx-4547-5vc9","aliases":["BIT-openbao-2026-55770","CVE-2026-55770","GO-2026-5182"],"title":"OpenBao: LDAPi ldaputil (wrong escape func)","description":"## 1. Description\n\n### Component\n\n`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.\n\n### Root Cause\n\nThe 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()`:\n\n```go\n// Line 191 — UPN Domain path\nbindDN = fmt.Sprintf(\"%s@%s\", EscapeLDAPValue(username), cfg.UPNDomain)\n\n// Line 193 — User DN path\nbindDN = fmt.Sprintf(\"%s=%s,%s\", cfg.UserAttr, EscapeLDAPValue(username), cfg.UserDN)\n```\n\nThe 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.\n\nLDAP **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.\n\nThe 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.\n\n### Exploitation Mechanics\n\n```\nUsername: alice)(objectClass=*\n↓ EscapeLDAPValue (no-op — no DN special chars)\nalice)(objectClass=*\n↓ fmt.Sprintf(\"(&(objectClass=user)(sAMAccountName=%s))\", escapedUsername)\n(&(objectClass=user)(sAMAccountName=alice)(objectClass=*))\n                              ^^ injection point\n```\n\nThe filter `(&(objectClass=user)(sAMAccountName=alice)(objectClass=*))` is logically equivalent to:\n- `sAMAccountName=alice` AND `objectClass=user` AND `objectClass=*`\n\nSince 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.\n\n### Preconditions\n\n- LDAP authentication backend must be configured\n- Directory must be Active Directory (UPNDomain path) or use UserDN/UserAttr binding\n- Attacker controls the `username` field at login time\n\n## 2. Proof of Concept\n\n```bash\n# Login with LDAP injection payload as username\ncurl -k -X POST \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"username\": \"alice)(sAMAccountName=*\",\n    \"password\": \"anything\"\n  }' \\\n  https://localhost:8200/v1/auth/ldap/login/admin\n\n# LDAP filter constructed:\n# (&(objectClass=user)(sAMAccountName=alice)(sAMAccountName=*))\n#                   injection ──────────^\n# The filter matches the first user with objectClass=user\n# If the LDAP server returns admin's entry first, the token\n# is bound to the admin entity, inheriting all admin policies\n```\n\nThe 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.\n\n## 3. Impact\n\n| Impact | Detail |\n|--------|--------|\n| **Confidentiality** | Token bound to a different LDAP user (e.g., admin) grants access to all secrets and policies belonging to that entity |\n| **Integrity** | Ability to modify secrets, write policies, or configure backends as the impersonated user |\n| **Availability** | Low direct impact, but administrative access enables disabling or misconfiguring the entire OpenBao instance |\n\n**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`.\n\n### Why This Is High Severity\n\nThe 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.\n\n## 4. Remediation\n\n### Primary Fix: Use ldap.EscapeFilter\n\nReplace `EscapeLDAPValue` with `ldap.EscapeFilter` in both filter construction paths:\n\n```go\nimport \"github.com/go-ldap/ldap/v3\"\n\n// Line 191 — UPN Domain path\nbindDN = fmt.Sprintf(\"%s@%s\", ldap.EscapeFilter(username), cfg.UPNDomain)\n\n// Line 193 — User DN path\nbindDN = fmt.Sprintf(\"%s=%s,%s\", cfg.UserAttr, ldap.EscapeFilter(username), cfg.UserDN)\n```\n\n`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`.\n\n### Audit: All Call Sites\n\nReview all usages of `EscapeLDAPValue` across the codebase to ensure none are used in filter context:\n\n```bash\ngrep -rn \"EscapeLDAPValue\" /root/cve-audit/openbao/\n```\n\n### Defense-in-Depth\n\n- Apply the principle of least privilege to LDAP service accounts used by OpenBao\n- Use `UserFilter` with explicit attribute constraints to limit the search scope","state":0,"publishedAt":"2026-06-19T21:42:01+00:00","modifiedAt":"2026-09-25T14:25:54.748422+00:00","affected":[{"ecosystem":"Go","name":"github.com/openbao/openbao","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.1.0"},{"kind":"last_affected","version":"2.5.4"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/openbao/openbao","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.0.0-20260617104213-10b7825c714c"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/openbao/openbao/security/advisories/GHSA-6mwx-4547-5vc9","https://github.com/openbao/openbao/pull/3306","https://github.com/openbao/openbao/commit/10b7825c714c1ef25b6c3c1c2cd6ecd8747c0659","https://github.com/openbao/openbao","https://github.com/openbao/openbao/releases/tag/v2.5.5"],"sourceUrl":"https://github.com/advisories/GHSA-6mwx-4547-5vc9","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-6mwx-4547-5vc9","identifiers":["GHSA-6mwx-4547-5vc9","BIT-openbao-2026-55770","CVE-2026-55770","GO-2026-5182"]},"retained":false,"historicalAffected":[]},{"revision":"6bf990b0fc3444829054e76ee562862f","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2026-5182","aliases":["BIT-openbao-2026-55770","CVE-2026-55770","GHSA-6mwx-4547-5vc9"],"title":"OpenBao: LDAPi ldaputil (wrong escape func) in github.com/openbao/openbao","description":"OpenBao: LDAPi ldaputil (wrong escape func) in github.com/openbao/openbao","state":0,"publishedAt":"2026-06-25T18:43:15+00:00","modifiedAt":"2026-09-25T14:25:54.748422+00:00","affected":[{"ecosystem":"Go","name":"github.com/openbao/openbao","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.0.0-20260617104213-10b7825c714c"},{"kind":"introduced","version":"0.1.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/openbao/openbao/security/advisories/GHSA-6mwx-4547-5vc9","https://github.com/openbao/openbao/commit/10b7825c714c1ef25b6c3c1c2cd6ecd8747c0659","https://github.com/openbao/openbao/pull/3306","https://github.com/openbao/openbao/releases/tag/v2.5.5"],"sourceUrl":"https://osv.dev/vulnerability/GO-2026-5182","license":"OSV · upstream source license applies","key":"osv:GO-2026-5182","identifiers":["GO-2026-5182","BIT-openbao-2026-55770","CVE-2026-55770","GHSA-6mwx-4547-5vc9"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-12T06:54:08.8081877+00:00","complete":true,"records":1779,"lastAttemptAt":"2026-11-12T06:54:08.8081877+00:00","lastSuccessAt":"2026-11-12T06:54:09.4926633+00:00","error":null,"lastVerifiedAt":"2026-11-12T06:54:09.4926642+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-64752486c567b55b31fb0d7225f5222bcd0019564ac0ac5f0649e242c7b19299-031557bd84075d0efeb8f81d38e7e201c5767c1ec5ad4deb9375464dfdb790d3","complete":true,"records":424595,"lastAttemptAt":"2026-11-12T06:53:59.6712569+00:00","lastSuccessAt":"2026-11-12T06:53:59.6124706+00:00","error":null,"lastVerifiedAt":"2026-11-12T06:53:59.6712569+00:00","snapshotPublishedAt":"2026-11-12T06:27:50+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-570328139368428ca550af1570d01579","complete":true,"records":13760,"lastAttemptAt":"2026-11-12T06:55:06.9273282+00:00","lastSuccessAt":"2026-11-12T06:55:06.923+00:00","error":null,"lastVerifiedAt":"2026-11-12T06:55:06.923+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13813,"expectedIdentifiers":13813,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-12T06:54:08.8081877+00:00","complete":true,"records":1097,"lastAttemptAt":"2026-11-12T06:54:08.8081877+00:00","lastSuccessAt":"2026-11-12T06:54:09.7509822+00:00","error":null,"lastVerifiedAt":"2026-11-12T06:54:09.7509833+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-5bd6a0be90c14da3820334c987af617f","complete":true,"records":13760,"lastAttemptAt":"2026-11-12T06:54:37.2126404+00:00","lastSuccessAt":"2026-11-12T06:54:37.209+00:00","error":null,"lastVerifiedAt":"2026-11-12T06:54:37.209+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13813,"expectedIdentifiers":13813,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-3562b6c78fd1bd0f0b55daf66a0926ae24f65e462df7f6d928caad458fc696bf","complete":true,"records":9947,"lastAttemptAt":"2026-11-12T06:54:07.7500838+00:00","lastSuccessAt":"2026-11-11T04:27:43.6877707+00:00","error":null,"lastVerifiedAt":"2026-11-12T06:54:07.7500838+00:00","snapshotPublishedAt":"2026-11-11T03:32:46+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-456002455e0ab94bb92c95476d4e6d175c104cd594749982afd96c893728ecbc","complete":true,"records":2010,"lastAttemptAt":"2026-11-12T06:54:05.0323741+00:00","lastSuccessAt":"2026-11-11T02:36:58.1276999+00:00","error":null,"lastVerifiedAt":"2026-11-12T06:54:05.0323741+00:00","snapshotPublishedAt":"2026-11-11T01:17:51+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-baa8362b4daf9e5f39d5563775a55935e7b442c0735d33274a921579ce4a0d66","complete":true,"records":3093,"lastAttemptAt":"2026-11-12T06:54:08.5688182+00:00","lastSuccessAt":"2026-11-11T13:00:02.5446881+00:00","error":null,"lastVerifiedAt":"2026-11-12T06:54:08.5688182+00:00","snapshotPublishedAt":"2026-11-11T12:47:47+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-eb5176d73e87a862c4cae7484f3fd31f7d170139114b3e99e25926d661f6435b","complete":true,"records":231700,"lastAttemptAt":"2026-11-12T06:54:05.6319464+00:00","lastSuccessAt":"2026-11-12T05:58:39.2691741+00:00","error":null,"lastVerifiedAt":"2026-11-12T06:54:05.6319464+00:00","snapshotPublishedAt":"2026-11-12T05:48:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}