CVE-2024-41667
JSON

8.8high

OpenAM FreeMarker template injection

Severity
8.8high CVSS:3.1 by GitHub_M
Exploit likelihood
3.54% (higher than 89% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-7726-43hg-m23v

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.

Affected

Product or packageVersionsReported by
OpenIdentityPlatform OpenAM< 15.0.4, before 15.0.4CVE List
org.openidentityplatform.openam:openam-oauth2 (Maven)before 15.0.4GitHub Advisory Database

All scores

GitHub_M8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-94

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

GitHub Advisory Database

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 PingOne Advanced Identity Cloud login page,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.

NVD (es)

OpenAM es una solución de gestión de acceso abierto. En las versiones 15.0.3 y anteriores, el método `getCustomLoginUrlTemplate` en RealmOAuth2ProviderSettings.java es vulnerable a la inyección de plantillas debido al uso de la entrada del usuario. Aunque el desarrollador tenía la intención de implementar una URL personalizada para manejar el inicio de sesión para anular la página de inicio de sesión predeterminada de PingOne Advanced Identity Cloud, no restringieron la `CustomLoginUrlTemplate`, lo que permitió configurarla libremente. La confirmación fcb8432aa77d5b2e147624fe954cb150c568e0b8 introduce `TemplateClassResolver.SAFER_RESOLVER` para deshabilitar la resolución de clases comúnmente explotadas en la inyección de plantillas de FreeMarker. Al momento de la publicación, se espera que esta solución forme parte de la versión 15.0.4.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-41667 changed 2024-08-06CVE Terms of Use
GitHub Advisory DatabaseGHSA-7726-43hg-m23v changed 2026-09-10CC-BY-4.0
NVDCVE-2024-41667 changed 2026-06-17Public domain