Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS03NzI2LTQzaGctbTIzds4AA-Hy

OpenAM FreeMarker template injection

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.

Permalink: https://github.com/advisories/GHSA-7726-43hg-m23v
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS03NzI2LTQzaGctbTIzds4AA-Hy
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: about 1 month ago
Updated: about 1 month ago


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

Identifiers: GHSA-7726-43hg-m23v, CVE-2024-41667
References: Repository: https://github.com/OpenIdentityPlatform/OpenAM
Blast Radius: 2.6

Affected Packages

maven:org.openidentityplatform.openam:openam-oauth2
Dependent packages: 5
Dependent repositories: 2
Downloads:
Affected Version Ranges: <= 15.0.3
Fixed in: 15.0.4
All affected versions: 14.5.2, 14.5.3, 14.5.4, 14.6.1, 14.6.2, 14.6.3, 14.6.4, 14.6.5, 14.6.6, 14.7.0, 14.7.1, 14.7.2, 14.7.3, 14.7.4, 14.8.1, 14.8.2, 14.8.3, 14.8.4, 15.0.0, 15.0.1, 15.0.2, 15.0.3
All unaffected versions: 15.0.4