We use these services and cookies to improve your user experience. You may opt out if you wish, however, this may limit some features on this site.

Please see our statement on Data Privacy.

Crisp.chat (Helpdesk and Chat)

Ok

THREATINT
PUBLISHED

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.

Reserved 2024-07-18 | Published 2024-07-24 | Updated 2024-08-06 | Assigner GitHub_M


HIGH: 8.8CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Problem types

CWE-94: Improper Control of Generation of Code ('Code Injection')

Product status

< 15.0.4
affected

References

github.com/...OpenAM/security/advisories/GHSA-7726-43hg-m23v

github.com/...ommit/fcb8432aa77d5b2e147624fe954cb150c568e0b8

cve.org (CVE-2024-41667)

nvd.nist.gov (CVE-2024-41667)

Download JSON

Share this page
https://cve.threatint.com/CVE/CVE-2024-41667

Support options

Helpdesk Chat, Email, Knowledgebase
Subscribe to our newsletter to learn more about our work.