{"schema":"threatline.record/2","record":{"id":"CVE-2026-41573","aliases":["GHSA-2vg8-q4c2-5cw3"],"summary":"OpenAM has LDAP Injection via `_queryId` Parameter","details":"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.\n\n## Affected Endpoint\n\n| Endpoint | Auth Required | Injection Parameter |\n|----------|--------------|---------------------|\n| `GET /openam/json/{realm}/users?_queryId=<INJECTION>` | SSO Token | `_queryId` |\n| `GET /openam/json/{realm}/groups?_queryId=<INJECTION>` | SSO Token (TBD) | `_queryId` |\n\n## Background: CVE-2021-29156\n\nCVE-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:\n\n## Credit\n\nDiscovered by **JD-Security SHENYI Team**","categories":["Libraries & packages"],"product":"org.openidentityplatform.openam:openam-core-rest","vendor":"OpenIdentityPlatform","ecosystem":"maven","affected_ranges":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-2vg8-q4c2-5cw3","source_modified_at":"2026-10-28T15:26:06Z","fetched_at":"2026-10-28T15:55:58.673066Z","package":{"ecosystem":"maven","name":"org.openidentityplatform.openam:openam-core-rest"},"range":"<= 16.0.6"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-41573","source_modified_at":"2026-09-15T12:41:34.659Z","fetched_at":"2026-10-28T15:55:58.673066Z","product":"OpenAM","vendor":"OpenIdentityPlatform","versions":[{"version":"< 16.1.1","status":"affected"}],"defaultStatus":null},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-2vg8-q4c2-5cw3","source_modified_at":"2026-10-28T15:45:09.869312821Z","fetched_at":"2026-10-28T15:55:58.673066Z","package":{"name":"org.openidentityplatform.openam:openam-core-rest","ecosystem":"Maven","purl":"pkg:maven/org.openidentityplatform.openam/openam-core-rest"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"16.1.1"}]}],"versions":["14.5.2","14.5.3","14.5.4","14.6.1","14.6.2","14.6.3","14.6.4","14.6.5","14.6.6","14.7.0","14.7.1","14.7.2","14.7.3","14.7.4","14.8.1","14.8.2","14.8.3","14.8.4","15.0.0","15.0.1","15.0.2","15.0.3","15.0.4","15.1.0","15.1.1","15.1.2","15.1.3","15.1.4","15.1.5","15.1.6","15.2.0","15.2.1","15.2.2","16.0.1","16.0.2","16.0.3","16.0.4","16.0.5","16.0.6","16.1.0"]}],"fixed_versions":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-2vg8-q4c2-5cw3","source_modified_at":"2026-10-28T15:26:06Z","fetched_at":"2026-10-28T15:55:58.673066Z","package":{"ecosystem":"maven","name":"org.openidentityplatform.openam:openam-core-rest"},"version":"16.1.1"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-2vg8-q4c2-5cw3","source_modified_at":"2026-10-28T15:45:09.869312821Z","fetched_at":"2026-10-28T15:55:58.673066Z","package":{"name":"org.openidentityplatform.openam:openam-core-rest","ecosystem":"Maven","purl":"pkg:maven/org.openidentityplatform.openam/openam-core-rest"},"version":"16.1.1"}],"cvss":8.7,"severity":"High","kev":{"listed":false},"epss":{"probability":0.00496,"percentile":0.42432,"score_date":"2026-10-28"},"published_at":"2026-09-15T09:55:47.049Z","modified_at":"2026-10-28T15:45:09.869312821Z","provenance":[{"source":"GitHub Advisory Database","url":"https://github.com/advisories/GHSA-2vg8-q4c2-5cw3","fetched_at":"2026-10-28T15:55:58.673066Z","source_modified_at":"2026-10-28T15:26:06Z"},{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-41573","fetched_at":"2026-10-28T15:55:58.673066Z","source_modified_at":"2026-09-15T12:41:34.659Z"},{"source":"OSV","url":"https://osv.dev/vulnerability/GHSA-2vg8-q4c2-5cw3","fetched_at":"2026-10-28T15:55:58.673066Z","source_modified_at":"2026-10-28T15:45:09.869312821Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-41573","fetched_at":"2026-10-28T15:55:58.673066Z","source_modified_at":"2026-10-28"}],"sources":["GitHub Advisory Database","CVE List","OSV","EPSS"],"references":[{"source":"CVE List","url":"https://github.com/OpenIdentityPlatform/OpenAM/security/advisories/GHSA-2vg8-q4c2-5cw3","tags":["x_refsource_CONFIRM"]},{"source":"CVE List","url":"https://github.com/OpenIdentityPlatform/OpenAM/releases/tag/16.1.1","tags":["x_refsource_MISC"]},{"url":"https://github.com/advisories/GHSA-8984-9gww-h52x","source":"GitHub Advisory Database"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41573","source":"GitHub Advisory Database"},{"source":"CVE List","url":"https://github.com/OpenIdentityPlatform/OpenAM/commit/d3d86c951a4c3c353719b761ea0b4be80f9dd241","tags":["x_refsource_MISC"]},{"url":"https://github.com/advisories/GHSA-2vg8-q4c2-5cw3","source":"GitHub Advisory Database"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial","assessed_at":"2026-09-15T12:41:12.866342Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"ecosystem","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-28T15:45:09.869312821Z","content_hash":"b5d6b0487c2ce63c9dc64be3f942f4b28f43b44e8cf58e01c56181533180976a"}}
