CVE-2024-41667: OpenAM FreeMarker template injection
8.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.97152%
CWE
Published
7/25/2024
Updated
7/25/2024
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| org.openidentityplatform.openam:openam-oauth2 | maven | <= 15.0.3 | 15.0.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the getCustomLoginUrlTemplate method which constructs a FreeMarker Template object using user-controlled loginUrlTemplateString. The pre-patch implementation lacked TemplateClassResolver.SAFER_RESOLVER configuration, allowing attackers to inject templates that resolve dangerous classes. The commit fix explicitly adds this security measure, confirming this as the vulnerable entry point. The CWE-94 classification and reproduction steps demonstrating RCE via template injection further validate() this analysis.