WaratekVRT Sign in

CVE-2024-8698

Severity7.7 High CVSS 3.1
Fixed in22.0.13, 24.0.8, 25.0.6
WeaknessCWE-347
Published19 Sep 2024
Updated4 Aug 2026

Description

A flaw exists in the SAML signature validation method within the Keycloak XMLSignatureUtil class. The method incorrectly determines whether a SAML signature is for the full document or only for specific assertions based on the position of the signature in the XML document, rather than the Reference element used to specify the signed element. This flaw allows attackers to create crafted responses that can bypass the validation, potentially leading to privilege escalation or impersonation attacks.

Exploitation status

Working exploit published

A reviewed exploit catalogue lists ready-to-run exploit code for this CVE.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment exploitation: none
  • Indexed PoC 2 indexed Published artifacts you can open, in GitHub PoC, Nuclei; first seen 2024-10-10.
  • EPSS 2.0% chance in 30 days
IndexArtifactStarsFirst seen
GitHub PoC i'm noob with saml and keycloak . J4f 6 2024-10-10
Nuclei Keycloak - SAML Core Package Signature Validation Flaw

Waratek protection

Mitigation candidate

A kind of vulnerability Waratek's rules address, with exploit code published or exploitation reported. No rule exists and none is planned yet. The decision below says what we found to build a rule from.

  • Protection none
  • Action unverified
  • Review automated Inferred
  • Record active
Decided by A reference pointing at the upstream fix: a commit, a PR, a Red Hat bug
Finding A Red Hat Bugzilla ticket (https://bugzilla.redhat.com/show_bug.cgi?id=2311641) tracks the fix. That makes this CVE a candidate for an ARMR patch rule. No rule exists and none is scheduled: whether one can be derived depends on reading the upstream change the ticket links.
Candidate fix https://bugzilla.redhat.com/show_bug.cgi?id=2311641 : a Red Hat bug: the triage, which links onward to the fix

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.keycloak:keycloak-saml-core 0 22.0.13 unbounded
org.keycloak:keycloak-saml-core 23.0.0 24.0.8 unbounded
org.keycloak:keycloak-saml-core 25.0.0 25.0.6 unbounded

Products and versions

1 product, 3 version entries
SourceVendorProductSchemeAffected versions
osv org.keycloak keycloak-saml-core generic < 22.0.13 · ≥ 23.0.0 and < 24.0.8 · ≥ 25.0.0 and < 25.0.6

References

URLTags
https://bugzilla.redhat.com/show_bug.cgi?id=2311641 bugzilla
https://github.com/keycloak/keycloak/security/advisories/GHSA-xgfv-xpx8-qhcr WEB
https://github.com/keycloak/keycloak/releases/tag/25.0.6 WEB
https://github.com/keycloak/keycloak PACKAGE
https://access.redhat.com/security/cve/CVE-2024-8698 WEB
https://access.redhat.com/errata/RHSA-2024:8826 WEB
https://access.redhat.com/errata/RHSA-2024:8824 WEB
https://access.redhat.com/errata/RHSA-2024:8823 WEB
https://access.redhat.com/errata/RHSA-2024:6890 WEB
https://access.redhat.com/errata/RHSA-2024:6889 WEB

Timeline

Published2024-09-19By the CVE Program.
NVD record modified2026-08-04NVD's own last-modified date for this record.