ModerateCVSS 6.0CVE-2026-104197GHSA-6jpj-522x-53vv

CVE-2026-104197OpenAM: arbitrary class loading and instantiation via the entitlement applications REST endpoint

OpenAM instantiates caller-supplied Java class names from the entitlement applications REST endpoint before checking the extension interface, giving delegated admins denial of service.

OpenIdentityPlatform/OpenAM ·Java ·903 ★ ·Published 18 Sep 2026 ·4 min read

OpenAM resolves Java class names supplied through its entitlement applications REST endpoint, runs their static initialisers and constructors, then checks whether they implement the expected extension interface. Releases up to 16.1.2 work in that order. The flaw is tracked as GHSA-6jpj-522x-53vv and CVE-2026-104197, rated Moderate at CVSS 6.0.

01Background: policy sets configured by class name

OpenAM, from OpenIdentityPlatform/OpenAM, is a Java identity and access management server. Its entitlement service stores policy sets, called applications in the product and in the advisory. An application can declare extension points, and each extension point is supplied as a fully qualified Java class name instead of as data. Administrators edit those names through the REST surface under /json/{realm}/applications.

Nothing unusual there. Java policy engines work this way: point an application at a class that implements a condition, a subject or a similar hook, and the server instantiates it from the deployed classpath. Safety comes from the order of operations. Resolve the class, confirm it implements the expected interface, and only then let the JVM run its code.

OpenAM before 16.1.3 reverses that order. The string from the request body goes to the class loader, the class is statically initialised and constructed, and the interface check runs afterwards. Delegated administration is a standard feature of the product, so the second role in that sequence is not always an operator of the JVM. A domain administrator allowed to manage policy sets gains the ability to reach code the JVM owns.

02Root cause: instantiation before the interface check

The bug is a trust-boundary failure, not a parsing bug. Caller input selects which class the server loads, no allow-list restricts the name to entitlement types, and no assignability test runs before the object exists. MITRE assigns CWE-470, Use of Externally-Controlled Input to Select Classes or Code.

Two JVM mechanisms fire on the chosen class. Loading it runs the static initialiser; instantiating it runs a public no-argument constructor. A class therefore needs two properties to be reachable: it sits on the server classpath, and it exposes a public no-argument constructor. Entitlement code is optional. Nothing in the feature's intent limits the set of classes an attacker can name.

The sequencing produces a second problem. The side effect happens while the request body is processed, ahead of request validation. OpenAM can reject the request afterwards and still have executed the static initialiser and the constructor. An HTTP 400 response does not mean the attempt failed.

The advisory shipped ahead of the fixed release so operators could apply workarounds, and its technical details stay withheld until 16.1.3 is available. This write-up stays at the level of the published description.

03Attack path and the privilege gate

The endpoint is not reachable anonymously. The request needs a valid session whose principal may modify entitlement applications in the target domain. That means the top-level administrator, or a delegated administrator holding RealmAdmin, PolicyAdmin or ApplicationModifyAccess. Ordinary end users never touch this code path.

Delivery is a create or update against the applications collection or a named application, /json/{realm}/applications and /json/{realm}/applications/{name}, with a class name placed in one of the extension-point fields. OpenAM resolves the name against its own classpath inside the server JVM and runs the static initialiser and constructor with the privileges of the OpenAM process.

The privilege gate holds severity at Moderate. An attacker needs credentials that already confer administrative capability over a domain. What changes is the reach of that capability: a principal trusted to edit policy configuration, and audited for exactly that, can trigger arbitrary class initialisation inside the identity provider's process.

04Impact: denial of service, with an unresolved escalation question

Denial of service is the demonstrated outcome. Pick a class whose static initialiser or constructor blocks, allocates without limit or throws from a static block, and the JVM goes down. When the identity provider goes down, every application that depends on it for authentication and authorisation goes down with it.

Escalation to code execution depends on which classes sit on the server classpath. The advisory states that this has not been demonstrated and that the possibility cannot be excluded. The CVSS vector matches that uncertainty: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:H. Network reachability, low complexity, high privileges required, no user interaction, unchanged scope, low confidentiality and integrity impact, high availability impact. PR:H encodes the administrative requirement, A:H the reliable outage.

05Affected versions

PackageAffectedPatchedSeverity
org.openidentityplatform.openam:openam-entitlements (Maven)<= 16.1.216.1.3Moderate (6.0)

Every OpenAM release up to and including 16.1.2 is affected. The fix ships in 16.1.3.

06Remediation and interim workarounds

Upgrade to OpenAM 16.1.3. Until that release is deployed, the advisory recommends cutting exposure at three layers, then watching what remains.

  • Restrict the endpoint. At the reverse proxy or firewall, allow POST and PUT requests to /json/.../applications and /json/.../applications/{name}, for every domain path, only from the administrative network or the hosts that manage policy sets. Block them everywhere else.
  • Review delegated privileges. In every domain, check which users and groups hold RealmAdmin, PolicyAdmin or ApplicationModifyAccess and strip the privilege from anyone who does not manage policy sets. Only the top-level administrator and those subjects reach the affected code.
  • Protect the top-level administrator account. It always holds the privilege. Keep its credentials out of scripts and shared tooling, and restrict where it may log in from.
  • Monitor. Alert on POST and PUT requests to the applications endpoint from unexpected sources, including requests answered with HTTP 400. A failed attempt still leaves that trace.

07References

AG
Arthur Gurunlian @Buggs777

Vulnerability researcher working on application security, reverse engineering and fuzzing. I find, verify and responsibly disclose bugs in widely used open-source software.