CVE-2024-41667

OpenAM FreeMarker template injection

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.

Category

8.8
CVSS
Severity: High
CVSS 3.1 •
EPSS 39.89% Top 5%
Affected: OpenIdentityPlatform OpenAM
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-41667?
CVE-2024-41667 has been scored as a high severity vulnerability.
How to fix CVE-2024-41667?
To fix CVE-2024-41667, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2024-41667 being actively exploited in the wild?
It is possible that CVE-2024-41667 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~40% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-41667?
CVE-2024-41667 affects OpenIdentityPlatform OpenAM.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.