CVE-2024-41667: OpenAM FreeMarker template injection
OpenAM is an open access management solution. In versions 15.0.3 and prior, the getCustomLoginUrlTemplate method in RealmOAuth2ProviderSettings.java is vulnerable to template injection due to its usage of user input.
Published Jul 25, 2024
Affected packages
org.openidentityplatform.openam:openam-oauth2
- Ecosystem
- Maven
- Affected
- <= 15.0.3
- Fixed in
- 15.0.4
- Check
mvn dependency:tree -Dincludes=org.openidentityplatform.openam:openam-oauth2
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
OpenAM is an open access management solution. In versions 15.0.3 and prior, the getCustomLoginUrlTemplate method in RealmOAuth2ProviderSettings.java is vulnerable to template injection due to its usage of user input. Although the developer intended to implement a custom URL for handling login to override the default PingOne Advanced Identity Cloud login page,they did not restrict the CustomLoginUrlTemplate, allowing it to be set freely. Commit fcb8432aa77d5b2e147624fe954cb150c568e0b8 introduces TemplateClassResolver.SAFER_RESOLVER to disable the resolution of commonly exploited classes in FreeMarker template injection. As of time of publication, this fix is expected to be part of version 15.0.4.
Credited to AfterSnows.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2026-62280
OpenAM Reflected XSS in the OAuth2/OIDC `wap` consent page
medium6.1Jul 24, 2026CVE-2026-47426
OpenAM OAuth Client Impersonation via JWKS Resolver Cache
high7.1Jun 29, 2026CVE-2026-48717
OpenAM OAuth Authorization Bypass via PKCE Challenge
medium4.9Jun 29, 2026CVE-2026-46498
OpenAM Arbitrary OAuth Token Minting via Push Registration
high7.1Jun 25, 2026CVE-2026-44203
OpenAM has pre-auth Reflected XSS in OAuth2 / OIDC response_mode=form_post via state parameter (FormPostResponse.ftl)
high8.3Jun 22, 2026CVE-2025-64099
OpenAM: Using arbitrary OIDC requested claims values in id_token and user_info is allowed
high8.1Nov 12, 2025
