SecurityContext

CVE-2024-41667: OpenAM - Template Injection

  • Cve: CVE-2024-41667
  • Name: OpenAM - 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.
  • Impact: Attackers can execute arbitrary templates, potentially leading to remote code execution or information disclosure.
  • Remediation: Update to the latest version of OpenAM that addresses this vulnerability or apply the relevant security patches.
  • Vulnerability type: template_injection
  • Vulnerability impact: information_disclosure
  • Requirement type: user_interaction
  • Requirements: Attacker needs to provide malicious user input
  • Labels source: projectdiscovery
  • Severity: high
  • 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
  • Epss score: 0.03536
  • Epss percentile: 0.89472
  • Assignee: [email protected]
  • Published at: 2024-07-24T18:15:05Z
  • Age in days: 853
  • Modified at: 2026-06-17T07:48:00Z
  • Patch available: yes
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-41667
  • Nvd status: deferred
  • Checked, none or zero: known exploited entries, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-94Improper Control of Generation of Code

Nuclei templates

IdUrl
CVE-2024-41667https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-41667.yaml

References

UrlSourceTags
https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-41667.yamlnuclei_templateNuclei Template
https://github.com/OpenIdentityPlatform/OpenAM/commit/fcb8432aa77d5b2e147624fe954cb150c568e0b8nvd
https://github.com/OpenIdentityPlatform/OpenAM/security/advisories/GHSA-7726-43hg-m23vnvd

Products

ProductAffectedPlatform boundSourcesUrl
openidentityplatform:openam< 15.0.4nocna_alias_text/v1/products/openidentityplatform/openam

Projects

RepositoryLink kindsIndexedUrl
OpenIdentityPlatform/OpenAMcommit, fix, package, security_advisoryyes/v1/repositories/OpenIdentityPlatform/OpenAM

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 177
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, initial access since, hackerone reports

Nuclei template