CVE-2026-41573
OpenAM has LDAP Injection via `_queryId` Parameter
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 escapeQueryIdexplicitly 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=<INJECTION> | SSO Token | _queryId |
| GET /openam/json/{realm}/groups?_queryId=<INJECTION> | 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
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.openidentityplatform.openam » openam-core-rest | < 16.1.1 | 16.1.1 |
Blast radius
10% of the dependent artifacts (1) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 200 |
| 2 hops | 158 |
Most used dependents
- org.openidentityplatform.openam » openam-auth-fr-oath3 usages
- org.openidentityplatform.openam » openam-server-only3 usages
- org.openidentityplatform.openam » openam-cli-impl2 usages
- org.openidentityplatform.openam » openam-uma2 usages
- org.openidentityplatform.openam » openam-auth-push1 usages
- org.openidentityplatform.openam » openam-distribution-ssoadmintools1 usages
- org.openidentityplatform.openam » openam-server1 usages
- org.openidentityplatform.openam » openam-upgrade1 usages
- org.openidentityplatform.openam » openam-distribution-kit0 usages
- org.openidentityplatform.openam » openam-doc-services-ref0 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2026-41573 | nvd.nist.gov |
| Advisory | GitHub advisory GHSA-8984-9gww-h52x | github.com |
| Package | OpenIdentityPlatform/OpenAM | github.com |
| Web | OpenIdentityPlatform/OpenAM advisory GHSA-2vg8-q4c2-5cw3 | github.com |
| Web | OpenIdentityPlatform/OpenAM commit d3d86c9 | github.com |
| Web | OpenIdentityPlatform/OpenAM release 16.1.1 | github.com |
