# OpenAM FreeMarker template injection

Advisory record · `GHSA-7726-43hg-m23v`

- **Identifiers:** `GHSA-7726-43hg-m23v` · `CVE-2024-41667`
- **State:** Confirmed
- **Severity:** CVSS 8.8 High
- **Critical:** No
- **Weakness (CWE):** [CWE-94](https://cwe.mitre.org/data/definitions/94.html)
- **Tags:** [Code injection](https://agentprime.io/advisories/tag/code-injection.md)
- **Published:** 25 Jul 2024
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 25 Jul 2024, 14:15 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `org.openidentityplatform.openam:openam-oauth2` (Maven): affected `<15.0.4`; fixed in `15.0.4`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> OpenAM's openam-oauth2 Maven package (Maven org.openidentityplatform.openam:openam-oauth2) is affected in versions before 15.0.4. The custom login URL template setting in RealmOAuth2ProviderSettings is not restricted, so user-supplied input is processed as a FreeMarker template, enabling template injection. The source gives few details on the required access or the resulting impact. Upgrade to version 15.0.4, which is the listed fixed version.

Written 2 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 8.8 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.035, the 89th percentile, on 14 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:17 UTC: First seen by agentprime
- 31 Oct 2026, 14:17 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-7726-43hg-m23v)

## Sources

- [GitHub Advisory Database: GHSA-7726-43hg-m23v](https://github.com/advisories/GHSA-7726-43hg-m23v)
- [OSV: GHSA-7726-43hg-m23v](https://osv.dev/vulnerability/GHSA-7726-43hg-m23v)
- <https://github.com/OpenIdentityPlatform/OpenAM/security/advisories/GHSA-7726-43hg-m23v>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-41667>
- <https://github.com/OpenIdentityPlatform/OpenAM/commit/fcb8432aa77d5b2e147624fe954cb150c568e0b8>
- <https://github.com/OpenIdentityPlatform/OpenAM>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-7726-43hg-m23v>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-7726-43hg-m23v/>. Everything for agents: <https://agentprime.io/llms.txt>.
