{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-41667","id":"CVE-2024-41667","title":"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","descriptionLong":"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.","published":"2024-07-24T17:29:58.564Z","updated":"2026-10-28T10:42:00.866377080Z","reserved":"2024-07-18T15:21:47.485Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["OpenIdentityPlatform OpenAM"],"affectedProducts":[{"vendor":"OpenIdentityPlatform","product":"OpenAM","defaultStatus":null,"versions":[{"version":"< 15.0.4","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"org.openidentityplatform.openam:openam-oauth2","purl":"pkg:maven/org.openidentityplatform.openam/openam-oauth2","ranges":["<15.0.4"],"fixed":["15.0.4"],"advisory":"GHSA-7726-43hg-m23v"}],"cwes":["CWE-94"],"aliases":["GHSA-7726-43hg-m23v"],"references":[{"url":"https://github.com/OpenIdentityPlatform/OpenAM/security/advisories/GHSA-7726-43hg-m23v","tags":["x_refsource_CONFIRM","x_transferred","advisory","web"]},{"url":"https://github.com/OpenIdentityPlatform/OpenAM/commit/fcb8432aa77d5b2e147624fe954cb150c568e0b8","tags":["x_refsource_MISC","x_transferred","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/41xxx/CVE-2024-41667.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41667","tags":["advisory"]},{"url":"https://github.com/OpenIdentityPlatform/OpenAM","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.03536,"epssPercentile":0.89515,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-41667","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41667","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-41667","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-7726-43hg-m23v","ok":true,"note":"GHSA-7726-43hg-m23v"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-41667","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}