CVE-2025-64099: OpenAM Using Arbitrary OIDC Requested Claims Vulnerability
HIGHCVE-2025-64099 is a HIGH using arbitrary oidc requested claims vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting OpenAM libraries in the Maven ecosystem. The issue involves using arbitrary oidc requested claims values in id_token and user_info is allowed. Remediation is available by upgrading affected packages to version 16.0.3.
CVE-2025-64099 at a Glance
How to Fix CVE-2025-64099
To remediate this vulnerability, upgrade all affected OpenAM dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.openidentityplatform.openam</groupId>
<artifactId>openam-oauth2</artifactId>
<version>16.0.3</version>
</dependency>
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-2025-64099, 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 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 16.0.3), 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-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In OpenAM, 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
CVE-2025-64099 Affected OpenAM Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.openidentityplatform.openam:openam-oauth2
|
Maven |
< 16.0.3
|
16.0.3
|
References
Frequently Asked Questions
What is CVE-2025-64099?
Which OpenAM versions are affected?
What version fixes CVE-2025-64099?
Is openam-oauth2 affected?
What CWE is associated with CVE-2025-64099?
How can I check Maven dependencies for CVE-2025-64099?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-39hr-239p-fhqc",
"modified" : "2025-11-15T03:12:52Z",
"published" : "2025-11-12T21:27:22Z",
"aliases" : [ "CVE-2025-64099" ],
"summary" : "OpenAM: Using arbitrary OIDC requested claims values in id_token and user_info is allowed ",
"details" : "### Summary\nIf the \"claims_parameter_supported\" parameter is activated, it is possible through the \"oidc-claims-extension.groovy\" script, to inject the value of choice into a claim contained in the id_token or in the user_info.\nAuthorization function requests do not prevent a claims parameter containing a JSON file to be injected. This JSON file allows users to customize claims returned by the \"id_token\" and \"user_info\" files.\nThis allows for a very wide range of vulnerabilities depending on how clients use claims. For example, if some clients rely on an email field to identify a user, users can choose to entera any email address, and therefore assume any chosen identity.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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/E:U"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.openidentityplatform.openam:openam-oauth2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "16.0.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/OpenIdentityPlatform/OpenAM/security/advisories/GHSA-39hr-239p-fhqc"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-64099"
}, {
"type" : "WEB",
"url" : "https://github.com/OpenIdentityPlatform/OpenAM/commit/4254b34b2b8b4867f2e7fccfac73904213d48510"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/OpenIdentityPlatform/OpenAM"
}, {
"type" : "WEB",
"url" : "https://github.com/OpenIdentityPlatform/OpenAM/releases/tag/16.0.3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-74", "CWE-94" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-11-12T21:27:22Z",
"nvd_published_at" : "2025-11-12T19:15:38Z"
}
}