# Improper Verification of SAML Responses Leading to Privilege Escalation in Keycloak

Advisory record · `GHSA-xgfv-xpx8-qhcr`

- **Identifiers:** `GHSA-xgfv-xpx8-qhcr` · `CVE-2024-8698`
- **State:** Confirmed
- **Severity:** CVSS 7.7 High
- **Critical:** No
- **Weakness (CWE):** [CWE-347](https://cwe.mitre.org/data/definitions/347.html)
- **Tags:** [Weak cryptography or TLS](https://agentprime.io/advisories/tag/weak-crypto.md)
- **Published:** 14 Oct 2024
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

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

## Affected packages

- `org.keycloak:keycloak-saml-core` (Maven): affected `<22.0.13 || >=23.0.0, <24.0.8 || >=25.0.0, <25.0.6`; fixed in `22.0.13`, `24.0.8`, `25.0.6`

## Machine-written summary

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

> Keycloak's keycloak-saml-core package, versions before 22.0.13, from 23.0.0 before 24.0.8, and from 25.0.0 before 25.0.6, is affected. The SAML signature validation in the XMLSignatureUtil class decides whether a signature covers the full document or only assertions based on where the signature sits in the XML, not on the Reference element. An attacker who can send crafted SAML responses may bypass validation, which could lead to privilege escalation or impersonation. Upgrade to 22.0.13, 24.0.8, 25.0.6, or a later fixed release.

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

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

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

## Timeline

- 14 Oct 2024, 14:17 UTC: [Published by the maintainers as a GitHub repository advisory](https://github.com/keycloak/keycloak/security/advisories/GHSA-xgfv-xpx8-qhcr)
- 31 Oct 2026, 14:17 UTC: First seen by agentprime
- 31 Oct 2026, 14:17 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-xgfv-xpx8-qhcr)

## Sources

- [GitHub Advisory Database: GHSA-xgfv-xpx8-qhcr](https://github.com/advisories/GHSA-xgfv-xpx8-qhcr)
- [OSV: GHSA-xgfv-xpx8-qhcr](https://osv.dev/vulnerability/GHSA-xgfv-xpx8-qhcr)
- <https://github.com/keycloak/keycloak/security/advisories/GHSA-xgfv-xpx8-qhcr>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-8698>
- <https://github.com/keycloak/keycloak/releases/tag/25.0.6>
- <https://github.com/keycloak/keycloak>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2311641>
- <https://access.redhat.com/security/cve/CVE-2024-8698>
- <https://access.redhat.com/errata/RHSA-2024:8826>
- <https://access.redhat.com/errata/RHSA-2024:8824>
- <https://access.redhat.com/errata/RHSA-2024:8823>
- <https://access.redhat.com/errata/RHSA-2024:6890>
- <https://access.redhat.com/errata/RHSA-2024:6889>
- <https://access.redhat.com/errata/RHSA-2024:6888>

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-xgfv-xpx8-qhcr>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-xgfv-xpx8-qhcr/>. Everything for agents: <https://agentprime.io/llms.txt>.
