GitHub Advisoryadvisory · Maven
GHSA-2vg8-q4c2-5cw3 OpenAM has LDAP Injection via `_queryId` Parameter
HIGH
Official page ↗
- Aliases
- CVE-2026-41573
- Ecosystem
- Maven
- Packages
- org.openidentityplatform.openam:openam-core-rest
- Severity
- High
- CVSS vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- Weaknesses
- CWE-74, CWE-90
- Reviewed
- 2026-06-22
Affected packages
• Maven org.openidentityplatform.openam:openam-core-rest: < 16.1.1 → fixed in 16.1.1
Description
OpenAM (Open Identity Platform) is an open-source IAM platform providing SSO, OAuth2, SAML, and OpenID Connect capabilities. The CREST REST API layer exposes user query endpoints under `/json/{realm}/users`. In `IdentityResourceV1.queryCollection()`, the HTTP query parameter `_queryId` is passed to a `CrestQuery` object with `escapeQueryId` explicitly set to `false`, bypassing the escape protection introduced as part of the CVE-2021-29156 fix. The unescaped value flows directly to `DJLDAPv3Repo.getFilter()` where it is concatenated into an LDAP filter string without sanitization, enabling authenticated attackers to inject arbitrary LDAP metacharacters for user enumeration and blind LDAP injection.
Affected Endpoint
| Endpoint | Auth Required | Injection Parameter |
|----------|--------------|---------------------|
| `GET /openam/json/{realm}/users?_queryId=` | SSO Token | `_queryId` |
| `GET /openam/json/{realm}/groups?_queryId=` | SSO Token (TBD) | `_queryId` |
Background: CVE-2021-29156
CVE-2021-29156 was a pre-authentication LDAP injection in OpenAM's Webfinger endpoint, where user-supplied input reached `DJLDAPv3Repo.getFilter()` unescaped. The fix introduced the `escapeQueryId` flag in `CrestQuery` (defaulting to `true`) and added `Filter.escapeAssertionValue()` in the filter-building path:
Credit
Discovered by JD-Security SHENYI Team
Related
Alias · CVE (1)
- CVE-2026-41573 Open Access Management (OpenAM) is an access management solution. vulnerability
References
- https://github.com/OpenIdentityPlatform/OpenAM/security/advisories/GHSA-2vg8-q4c2-5cw3 web
- https://nvd.nist.gov/vuln/detail/CVE-2026-41573 advisory
- https://github.com/OpenIdentityPlatform/OpenAM/commit/d3d86c951a4c3c353719b761ea0b4be80f9dd241 web
- https://github.com/OpenIdentityPlatform/OpenAM package
- https://github.com/OpenIdentityPlatform/OpenAM/releases/tag/16.1.1 web
- https://github.com/advisories/GHSA-8984-9gww-h52x advisory