CVE-2024-41667

High

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.

SeverityHigh
CVSS8.8
Exploit probability—
ProductOrg.openidentityplatform.openam:openam-oauth2
PublishedJul 24, 2024
First seenJul 24, 2024

How to fix

Update
  • org.openidentityplatform.openam:openam-oauth215.0.4 or later

Affected products

ProductAffected versionsFixed in
org.openidentityplatform.openam:openam-oauth2Mavenv < 15.0.415.0.4

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2024-41667 · Org.openidentityplatform.openam:openam-oauth2 · Dark Radar