OpenAM FreeMarker template injection
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-94.
Summary
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 OpenAM login, 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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| OpenIdentityPlatform | OpenAM | before 15.0.4 | 15.0.4 | Patch available | CNA |
| — | org.openidentityplatform.openam:openam-oauth2 (Maven) | before 15.0.4 | 15.0.4 | Patch available | GHSA-7726-43hg-m23v |
- OpenAM VendorOpenIdentityPlatform Affected before 15.0.4 Fixed in 15.0.4 Patch available CNA
- org.openidentityplatform.openam:openam-oauth2 (Maven) Vendor— Affected before 15.0.4 Fixed in 15.0.4 Patch available GHSA-7726-43hg-m23v
CPE names CISA-ADP · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:openidentityplatform:openam:*:*:*:*:*:*:*:* | — | — | OpenIdentityPlatform |
- cpe:2.3:a:openidentityplatform:openam:*:*:*:*:*:*:*:* Versions — — ·OpenIdentityPlatform
Remediation
- Fix · CNA OpenAM (OpenIdentityPlatform) Fixed in 15.0.4
- Fix · GHSA-7726-43hg-m23v org.openidentityplatform.openam:openam-oauth2 (Maven) Fixed in 15.0.4 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-41667
- 2026-10-03 Alias added: GHSA-7726-43hg-m23v
References
More OpenIdentityPlatform vulnerabilities
- TI-2025-20332 OpenDJ Denial of Service (Dos) using alias loop CVSS 4.0HIGH 8.7
- TI-2026-25836 Pre-Authentication Remote Code Execution via `jato.clientSession` Deserialization in OpenAM CVSS 4.0CRITICAL 9.3
- TI-2026-86693 Session token disclosure in OpenAM notification WebSocket CVSS 4.0CRITICAL 10.0
- TI-2026-86692 Authentication bypass in OpenAM SAML login accepts unsigned assertions CVSS 4.0CRITICAL 9.3
- TI-2026-86691 Privilege escalation in OpenAM via self-registration attribute bypass CVSS 4.0CRITICAL 9.3
- TI-2026-86685 Unbounded Java deserialization in OpenAM enables denial of service CVSS 4.0HIGH 8.7
Sources
- CVE-2024-41667 · CVE Program
- CVE-2024-41667 · NVD
- FIRST EPSS
- GHSA-7726-43hg-m23v · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences