Vulnerabilities in pkg:maven/org.openidentityplatform.openam/openam-core-rest

PACKAGE
Advisory Identifier: GHSA-2vg8-q4c2-5cw3
Advisory Summary

CVE-2026-41573 is a HIGH openam has ldap injection vulnerability (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')) affecting Openam core rest libraries in the Maven ecosystem. The issue involves openam has ldap injection via `_queryid` parameter. Remediation is available by upgrading affected packages to version 16.1.1.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.openidentityplatform.openam/openam-core-rest

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.openidentityplatform.openam/openam-core-rest. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-2vg8-q4c2-5cw3 CVE-2026-41573 HIGH OpenAM has LDAP Injection via `_queryId` Parameter

CVE-2026-41573 at a Glance

CVE Identifier CVE-2026-41573
GHSA Identifier GHSA-2vg8-q4c2-5cw3
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Affected Product Openam core rest
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2026-41573

To remediate this vulnerability, upgrade all affected Openam core rest dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.openidentityplatform.openam:openam-core-rest fixed: 16.1.1
<dependency>
    <groupId>org.openidentityplatform.openam</groupId>
    <artifactId>openam-core-rest</artifactId>
    <version>16.1.1</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.openidentityplatform.openam

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2026-41573, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.openidentityplatform.openam

Analyze the terminal output to locate any version of Openam core rest in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 16.1.1), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.openidentityplatform.openam command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'), where the product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component. In Openam core rest, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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

CVE-2026-41573 Affected Openam core rest Versions

1 component(s)
Fixed Versions:
16.1.1
Product / Package Ecosystem Affected Versions Fixed Version
org.openidentityplatform.openam:openam-core-rest
Maven
< 16.1.1
16.1.1

References

Frequently Asked Questions

What is CVE-2026-41573?
CVE-2026-41573 is a security vulnerability in Openam core rest involving OpenAM has LDAP Injection via `_queryId` Parameter under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection').
Which Openam core rest versions are affected?
Affected versions include releases prior to 16.1.1 across affected packages: org.openidentityplatform.openam:openam-core-rest.
What version fixes CVE-2026-41573?
Upgrading to 16.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is openam-core-rest affected?
Yes, org.openidentityplatform.openam:openam-core-rest is affected in releases prior to 16.1.1. Upgrade your dependency to 16.1.1 or later.
What CWE is associated with CVE-2026-41573?
CVE-2026-41573 is classified under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.).
How can I check Maven dependencies for CVE-2026-41573?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.openidentityplatform.openam'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-2vg8-q4c2-5cw3",
  "modified" : "2026-06-22T19:59:33Z",
  "published" : "2026-06-22T19:59:33Z",
  "aliases" : [ "CVE-2026-41573" ],
  "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\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**",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.openidentityplatform.openam:openam-core-rest"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "16.1.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 16.0.6"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/OpenIdentityPlatform/OpenAM/security/advisories/GHSA-2vg8-q4c2-5cw3"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/OpenIdentityPlatform/OpenAM"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/OpenIdentityPlatform/OpenAM/releases/tag/16.1.1"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-8984-9gww-h52x"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-74" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-06-22T19:59:33Z",
    "nvd_published_at" : null
  }
}