CVE-2024-41667 in Openam products
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 defau...
Affects 1 product from 3 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Openam | — | — |
| Openidentityplatform | Openam | < 15.0.4 |
| Restrict | — | — |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-41667 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-202767-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Published | 2024-07-24 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-94: Code Injection
Attacker injects arbitrary code that is executed by the application process.
Related attack patterns (CAPEC)
CAPEC-35 Leverage Executable Code in Non-Executable Files via CWE-94
CAPEC-77 Manipulating User-Controlled Variables via CWE-94
CAPEC-242 Code Injection via CWE-94
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2024-41667 affects OpenAM versions 15.0.3 and prior, where the `getCustomLoginUrlTemplate` method in RealmOAuth2ProviderSettings.java is vulnerable to template injection. This can lead to remote code execution and compromise of the system. The vulnerability is rated as high severity with a CVSS score of 8.8. A fix is expected in version 15.0.4.
The vulnerability arises from the `getCustomLoginUrlTemplate` method, which allows user input to be used in a FreeMarker template without proper validation. This can lead to template injection, enabling an attacker to execute arbitrary code on the server. The attacker can exploit this vulnerability remotely without requiring user interaction, leading to a high risk of compromise.
Compensating controls AI-drafted, review before use
Implement input validation and sanitization for the `CustomLoginUrlTemplate` parameter to prevent template injection. Additionally, monitor and log access to the affected endpoint to detect potential exploitation attempts.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Questions
What is CVE-2024-41667?
CVE-2024-41667 affects OpenAM versions 15.0.3 and prior, where the `getCustomLoginUrlTemplate` method in RealmOAuth2ProviderSettings.java is vulnerable to template injection. This can lead to remote code execution and compromise of the system. The vulnerability is rated as high severity with a CVSS score of 8.8. A fix is expected in version 15.0.4.
What is the CVSS score for CVE-2024-41667?
CVE-2024-41667 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 4.7%.
Is CVE-2024-41667 actively exploited?
No confirmed active exploitation of CVE-2024-41667 as of 2026-09-25.
How do I remediate CVE-2024-41667?
Priority: HIGH.
What systems are affected by CVE-2024-41667?
CVE-2024-41667 affects Openam; Openidentityplatform Openam; Restrict.
What NERC-CIP standard applies to CVE-2024-41667?
NERC CIP CIP-007 CIP-007-R2: This CVE violates CIP-007-R2 because it allows unauthorized access to the system through a template injection vulnerability, which can lead to the compromise of critical assets and the execution of unauthorized commands.
What IEC 62443 requirement maps to CVE-2024-41667?
IEC 62443 SR 7.6: This CVE maps to SR 7.6 because it involves a vulnerability in the input validation of a web application, which can lead to remote code execution and compromise of the system. Proper input validation and sanitization are essential to prevent such attacks.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Openam","product":"EDS-518A","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.