highVulnerability

CVE-2026-41573

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=<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**

Properties

ghsa_id
GHSA-2vg8-q4c2-5cw3
summary
OpenAM has LDAP Injection via `_queryId` Parameter
severity
high
cve_id
CVE-2026-41573
is_ghsa_only
false
ghsa_published
2026-06-22T19:59:33Z
source_url
https://github.com/advisories/GHSA-2vg8-q4c2-5cw3
ghsa_updated
2026-06-22T19:59:36Z

Related Entities (4)

HAS_WEAKNESS (1)

[Weakness]Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

REPORTED_BY (1)

[Source]GitHub Advisory Database

AFFECTS (1)

[Software]maven/org.openidentityplatform.openam:openam-core-rest

VULNERABLE_TO (1)

[Software]maven/org.openidentityplatform.openam:openam-core-rest

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-41573 — Ninja Signal Threat Intelligence | Ninja Signal