CVE-2021-35464 — ForgeRock Access Management (AM) Core Server Remote Code Execution Vulnerability

CVE-2021-35464

ForgeRock Access Management — Pre-Authentication Java Deserialization RCE via /ccversion/ Endpoints, Exploited in Ransomware and Espionage Campaigns

What is ForgeRock Access Management?

ForgeRock Access Management (AM) is an enterprise identity and access management (IAM) platform deployed by large organizations — including financial institutions, healthcare providers, telecoms, and government agencies — to provide single sign-on (SSO), multi-factor authentication, and federation services. ForgeRock AM acts as the authentication gateway for all protected applications in an organization; compromising it grants the ability to forge authentication tokens for any user in the system, impersonate administrators, and gain access to all SSO-protected applications. ForgeRock AM is a successor/fork of OpenAM (originally from Sun Microsystems/Oracle).

Overview

CVE-2021-35464 is a pre-authentication Java deserialization remote code execution vulnerability (CWE-502) in ForgeRock Access Management Core Server. Three specific endpoints — /ccversion/Version, /ccversion/Masthead, and /ccversion/ButtonFrame — accept serialized Java objects without authentication and deserialize them without adequate type validation. An attacker can send a crafted serialized Java object (using ysoserial-style gadget chains) to any of these endpoints and achieve code execution on the ForgeRock AM server. This was exploited by ransomware operators and suspected nation-state actors.

Affected Versions

Product Vulnerable Fixed
ForgeRock AM 6.x Yes Patch available
ForgeRock AM 6.5.x Yes 6.5.5 patch
ForgeRock AM 7.0.x Yes 7.0.2 patch
ForgeRock AM 7.1+ Fixed N/A

Technical Details

The three vulnerable endpoints in ForgeRock AM handle browser-compatibility and version detection functions that predate the current authentication architecture. They were designed to be publicly accessible (no login required) but still process Java object input:

  • Root cause: Insecure deserialization (CWE-502) — the endpoints deserialize incoming data using Java's ObjectInputStream without restricting allowed types
  • Vulnerable endpoints: /ccversion/Version, /ccversion/Masthead, /ccversion/ButtonFrame
  • Exploitation: Attacker crafts a serialized Java object using a gadget chain (e.g., Commons Collections, Commons BeanUtils) that triggers OS command execution during deserialization
  • Authentication required: None — the endpoints are publicly accessible
  • Execution context: Code executes as the ForgeRock AM application server process — often a highly privileged account managing enterprise authentication

Discovery

Discovered by security researcher Shubham Shah and others examining legacy ForgeRock AM endpoint security. The endpoints inherited vulnerable deserialization patterns from the OpenSSO/OpenAM codebase.

Exploitation Context

Confirmed exploitation by ransomware operators and nation-state actors. ForgeRock AM is deployed primarily in high-value enterprise environments — financial institutions, government agencies, healthcare organizations — making it a priority target. Compromising the authentication gateway enables silent access to all SSO-protected applications without triggering user authentication alerts.

Remediation

  1. Upgrade ForgeRock AM to version 7.1 or later, or apply the available patches for 6.5.x and 7.0.x
  2. If immediate patching is not possible, apply the ForgeRock-provided workaround: restrict access to the /ccversion/ URL path via web server or WAF rules
  3. Review ForgeRock AM access logs for POST requests to /ccversion/ endpoints from unexpected sources
  4. Audit all SSO-protected applications for unauthorized access that may have occurred during the exploitation window
  5. Rotate ForgeRock AM administrative credentials and review federation trust relationships
  6. Consider deploying a WAF to block Java deserialization attack patterns (Base64-encoded aced0005 serialized object headers) against all application server endpoints

Key Details

PropertyValue
CVE ID CVE-2021-35464
Vendor / Product ForgeRock — Access Management (AM)
NVD Published2021-07-22
NVD Last Modified2025-11-05
CVSS 3.1 Score9.8
CVSS 3.1 VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
SeverityCRITICAL
CWE CWE-502 find similar ↗
CISA KEV Added2021-11-03
CISA KEV Deadline2021-11-17
Known Ransomware Use ⚠️ Yes

CVSS 3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Required Action

CISA BOD 22-01 Deadline: 2021-11-17. Apply updates per vendor instructions.

Timeline

DateEvent
2021-06-28ForgeRock releases AM 7.1.0 and patches for earlier versions
2021-07-22CVE published
2021-08Public proof-of-concept published; mass exploitation begins
2021-11-03Added to CISA Known Exploited Vulnerabilities catalog
2021-11-17CISA BOD 22-01 remediation deadline

References

ResourceType
ForgeRock Advisory — CVE-2021-35464 Vendor Advisory
NVD — CVE-2021-35464 Vulnerability Database
CISA KEV Catalog Entry US Government