{"id":"CVE-2026-33439","aliases":["CVE-2026-33439","GHSA-2cqq-rpvq-g5qj"],"related":[],"kind":"vulnerability","state":"published","title":"Pre-Authentication Remote Code Execution via `jato.clientSession` Deserialization in OpenAM","summary":"Open Access Management (OpenAM) is an access management solution. Prior to 16.0.6, OpenIdentityPlatform OpenAM is vulnerable to pre-authentication Remote Code Execution (RCE) via unsafe Java deserialization of the jato.clientSession HTTP parameter. This bypasses the WhitelistObjectInputStream mitigation that was applied to the jato.pageSession parameter after CVE-2021-35464. An unauthenticated attacker can achieve arbitrary command execution on the server by sending a crafted serialized Java object as the jato.clientSession GET/POST parameter to any JATO ViewBean endpoint whose JSP contains <jato:form> tags (e.g., the Password Reset pages). This vulnerability is fixed in 16.0.6.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Open Access Management (OpenAM) is an access management solution. Prior to 16.0.6, OpenIdentityPlatform OpenAM is vulnerable to pre-authentication Remote Code Execution (RCE) via unsafe Java deserialization of the jato.clientSession HTTP parameter. This bypasses the WhitelistObjectInputStream mitigation that was applied to the jato.pageSession parameter after CVE-2021-35464. An unauthenticated attacker can achieve arbitrary command execution on the server by sending a crafted serialized Java object as the jato.clientSession GET/POST parameter to any JATO ViewBean endpoint whose JSP contains <jato:form> tags (e.g., the Password Reset pages). This vulnerability is fixed in 16.0.6.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nOpenIdentityPlatform OpenAM 16.0.5 (and likely earlier versions) is vulnerable to pre-authentication Remote Code Execution (RCE) via unsafe Java deserialization of the `jato.clientSession` HTTP parameter. This bypasses the `WhitelistObjectInputStream` mitigation that was applied to the `jato.pageSession` parameter after CVE-2021-35464.\n\nAn unauthenticated attacker can achieve arbitrary command execution on the server by sending a crafted serialized Java object as the `jato.clientSession` GET/POST parameter to any JATO ViewBean endpoint whose JSP contains `<jato:form>` tags (e.g., the Password Reset pages).\n\n---\n\n## Vulnerability Details\n\n### Background\n\nCVE-2021-35464 identified that the `jato.pageSession` HTTP parameter was deserialized without class filtering, allowing pre-auth RCE.\n\nOpenIdentityPlatform OpenAM mitigated this by introducing `WhitelistObjectInputStream` in `ConsoleViewBeanBase.deserializePageAttributes()`, which restricts `jato.pageSession` deserialization to a hardcoded whitelist of ~40 safe classes.\n\nHowever, the JATO framework contains a **second deserialization entry point** — `jato.clientSession` — handled by `ClientSession.deserializeAttributes()`. This code path was **not patched** and still uses the unfiltered `Encoder.deserialize()` → `ApplicationObjectInputStream`, which performs `ObjectInputStream.readObject()` with no class whitelist.\n\n### Root Cause\n\n```\nClientSession.deserializeAttributes()\n  → Encoder.deserialize()\n    → ApplicationObjectInputStream.readObject()  // VULNERABLE — no whitelist\n```\n\nThe `ClientSession` object is instantiated in `RequestContextImpl.getClientSession()` with the raw `jato.clientSession` parameter value from the HTTP request. Deserialization is triggered during JSP rendering when `<jato:form>` tags invoke `getClientSession()` → `hasAttributes()` → `getEncodedString()` → `isValid()` → `ensureAttributes()` → `deserializeAttributes()`.\n\n### Affected Code\n\n**File:** `com/iplanet/jato/ClientSession.java`\n```java\nprotected ClientSession(RequestContext context) {\n    this.encodedSessionString =\n        context.getRequest().getParameter(\"jato.clientSession\");\n}\n\nprotected void deserializeAttributes() {\n    if (this.encodedSessionString != null\n        && this.encodedSessionString.trim().length() > 0) {\n        this.setAttributes(\n            (Map) Encoder.deserialize(\n                Encoder.decodeHttp64(this.encodedSessionString), false)\n        );\n    }\n}\n```\n\n### Gadget Chain\n\nThe exploit uses classes bundled in the OpenAM WAR:\n\n```\nPriorityQueue.readObject()                        [java.util — JDK]\n  → heapify() → siftDown() → comparator.compare()\n    → Column$ColumnComparator.compare()            [openam-core-16.0.5.jar]\n      → Column.getProperty()\n        → PropertyUtils.getObjectPropertyValue()   [openam-core-16.0.5.jar]\n          → Method.invoke(TemplatesImpl, \"getOutputProperties\")\n            → TemplatesImpl.getOutputProperties()  [xalan-2.7.3.jar]\n              → newTransformer() → defineTransletClasses()\n                → TransletClassLoader.defineClass(_bytecodes)\n                  → _class[_transletIndex].newInstance()\n                    → EvilTranslet.<clinit>()      [attacker bytecode]\n                      → Runtime.getRuntime().exec(cmd)\n```\n\n---\n\n## Impact\n\n- **Pre-authentication** — no credentials or session tokens required\n- **Remote Code Execution** — arbitrary OS commands as the application server user\n- Full server compromise, lateral movement, data exfiltration\n- Affects any deployment with at least one accessible JATO endpoint whose JSP renders `<jato:form>` tags (e.g., Password Reset pages)\n\n---\n\n## Tested Environment\n\n- OpenIdentityPlatform OpenAM 16.0.5 (official release WAR from GitHub)\n- Apache Tomcat 10.1.52\n- Java 21.0.7 (Oracle JDK)\n- macOS / Linux (aarch64)\n- Also verified on `openidentityplatform/openam:latest` Docker image (Java 25)\n\n## Affected Versions\n\n- OpenIdentityPlatform OpenAM 16.0.5 (confirmed on both Docker and bare-metal Tomcat)\n- Likely all versions that left `ClientSession.deserializeAttributes()` unpatched\n\n---\n\n## Remediation\n\n1. Apply `WhitelistObjectInputStream` filtering to `ClientSession.deserializeAttributes()`, matching the mitigation already applied to `ConsoleViewBeanBase.deserializePageAttributes()`\n2. Audit all callers of `Encoder.deserialize()` for user-controlled input\n3. Consider adding a JVM-wide JEP 290 deserialization filter as defense-in-depth\n\n---\n\n## References\n\n- CVE-2021-35464 — Pre-auth RCE in ForgeRock OpenAM (PortSwigger Research)\n- https://portswigger.net/research/pre-auth-rce-in-forgerock-openam-cve-2021-35464\n- CWE-502: Deserialization of Untrusted Data\n\n---\n\n## Credit\n\nThis finding was discovered by **Rahul Maini and Hacktron AI** while auditing OpenIdentityPlatform OpenAM. Hacktron AI is our white-box pentest solution, designed to deliver high-accuracy results with minimal false positives.\n\n---\n\n## Disclosure Policy\n\nThis bug is subject to a 90-day disclosure deadline. If a fix for this issue is made available to users before the end of the 90-day deadline, this bug report will become public on the day that the fix was made available or an earlier or later date if agreed by both parties. Otherwise, this bug report will become public at the deadline.\n\nIf another researcher discloses the proof-of-concept before any deadlines, we reserve the right to publish our findings.\n\nThe details of this bug may be privately disclosed to vulnerable parties, including but not limited to Hacktron AI's customers.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Open Access Management (OpenAM) es una solución de gestión de acceso. Antes de la versión 16.0.6, OpenIdentityPlatform OpenAM es vulnerable a la Ejecución Remota de Código (RCE) de pre-autenticación a través de deserialización Java insegura del parámetro HTTP jato.clientSession. Esto elude la mitigación WhitelistObjectInputStream que se aplicó al parámetro jato.pageSession después de CVE-2021-35464. Un atacante no autenticado puede lograr la ejecución arbitraria de comandos en el servidor enviando un objeto Java serializado manipulado como el parámetro GET/POST jato.clientSession a cualquier punto final JATO ViewBean cuyo JSP contiene etiquetas <jato:form> (por ejemplo, las páginas de Restablecimiento de Contraseña). Esta vulnerabilidad está corregida en la versión 16.0.6.","source":"nvd"}],"published":"2026-04-07T15:45:50.000Z","modified":"2026-07-24T23:10:00.563Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":9.3,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":9.3,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-502"],"affected":[{"ranges":[{"version":"< 16.0.6","status":"affected"}],"vendor":"OpenIdentityPlatform","product":"OpenAM","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"16.0.6"}],"ecosystem":"Maven","package":"org.openidentityplatform.openam:openam","purl":"pkg:maven/org.openidentityplatform.openam/openam","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"16.0.6"}],"vendor":"openidentityplatform","product":"openam","cpe":"cpe:2.3:a:openidentityplatform:openam:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/OpenIdentityPlatform/OpenAM/security/advisories/GHSA-2cqq-rpvq-g5qj","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33439","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/OpenIdentityPlatform/OpenAM/commit/014007c63cacc834cc795a89fac0e611aebc4a32","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/OpenIdentityPlatform/OpenAM","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/OpenIdentityPlatform/OpenAM/releases/tag/16.0.6","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-04-08T16:11:05.727Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-33439","url":"https://www.cve.org/CVERecord?id=CVE-2026-33439","licence":"CVE Terms of Use","modified":"2026-04-08T16:14:49.293Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2cqq-rpvq-g5qj","url":"https://github.com/advisories/GHSA-2cqq-rpvq-g5qj","licence":"CC-BY-4.0","modified":"2026-04-07T22:31:24.474Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-33439","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33439","licence":"Public domain","modified":"2026-07-24T23:10:00.563Z"}],"updatedAt":"2026-11-25T22:59:18.175Z","epss":{"score":0.0861,"percentile":0.95851,"date":"2026-11-30T12:00:22.000Z"}}