CVE-2026-62379
OpenAM: Unauthenticated Remote Code Execution via Class.forName in AuthXMLUtils.createCustomCallback
Description
Summary
A pre-authentication remote code execution vulnerability affects OpenAM. The
remote authentication endpoint (/authservice, PLL) accepts an XML element
that names an arbitrary Java class, which the server then loads and
instantiates without validation. On a default configuration this is reachable
without authentication and allows an attacker to run code on the server.
Impact
Unauthenticated remote code execution / full server compromise on any OpenAM instance with default settings.
Affected
All releases up to and including 16.1.1 (the defect predates the Open Identity Platform fork).
Remediation
Upgrade to 16.1.2. The fix resolves the class named in a <CustomCallback>
element without running its static initialisers and rejects it unless it
implements DSAMECallbackInterface, and it constrains deserialisation of the
serialised Subject value to a class allowlist.
Interim mitigation
If you cannot upgrade immediately:
- Restrict or block external network access to
/authservice. This is the only reliable mitigation. - Optionally, block PLL requests carrying a
<CustomCallback className="...">element at the reverse proxy or WAF. That element is only produced for customDSAMECallbackInterfacecallbacks, so most deployments never send it — confirm against your own traffic before enforcing. - Enabling
sunRemoteAuthSecurityEnableddoes not mitigate this issue. The remote-auth security token is checked inAuthXMLHandler.processAuthXMLRequest, which runs only afterAuthXMLRequest.parseXMLhas already parsed the request and instantiated the class named in the<CustomCallback className="...">element. Do not rely on it as a substitute for upgrading or for network restriction.
Credit
Vulnerability discovered by Zhixi "Jace" Sun of ASM/VI at TikTok. Correction of the interim mitigation guidance contributed by @BarakSrour.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.openidentityplatform.openam » openam-core | < 16.1.2 | 16.1.2 |
Blast radius
6% of the dependent artifacts (3) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 1,201 |
| 2 hops | 472 |
Most used dependents
- org.openidentityplatform.openam » openam-rest13 usages
- org.openidentityplatform.openam » openam-entitlements8 usages
- org.openidentityplatform.openam » OpenFM7 usages
- org.openidentityplatform.openam » openam-common-sts5 usages
- org.openidentityplatform.openam » openam-core-rest5 usages
- org.openidentityplatform.openam » openam-scripting5 usages
- org.openidentityplatform.openam » openam-oauth24 usages
- org.openidentityplatform.openam » openam-audit-configuration3 usages
- org.openidentityplatform.openam » openam-auth-fr-oath3 usages
- org.openidentityplatform.openam » openam-auth-scripted3 usages
- org.openidentityplatform.openam » openam-jaxrpc-schema3 usages
- org.openidentityplatform.openam » openam-notifications-integration3 usages
- org.openidentityplatform.openam » openam-restlet3 usages
- org.openidentityplatform.openam » openam-server-only3 usages
- org.openidentityplatform.openam » openam-cli-impl2 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
| Package | OpenIdentityPlatform/OpenAM | github.com |
| Web | OpenIdentityPlatform/OpenAM advisory GHSA-wg5r-wc3x-39vc | github.com |
| Web | OpenIdentityPlatform/OpenAM commit edcf968 | github.com |
| Web | OpenIdentityPlatform/OpenAM release 16.1.2 | github.com |
