CVE-2024-8698
Keycloak-saml-core: improper verification of saml responses leading to privilege escalation in keycloak
Public exploit available. Not confirmed exploited in the wild yet. A vendor fix is available.
What to do
The vendor has published a fix. Version details are below where the sources state them.
What it is
From the CVE record
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.
In plain language
No plain-language summary for this CVE yet.
Exploitation
Where each signal puts this CVE on the scale from published to confirmed exploited.
- CISA KEV
Not in the catalog. CISA has not confirmed exploitation.
- Public exploits
1 source with a proof of concept or module.
Exploit links, PoCs and Metasploit modules after sign-in- EPSS
2.0% chance of exploitation activity in the next 30 days, which ranks it in the 80th percentile of scored CVEs.
Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.
Lifecycle
The patch came 449 days before any public exploit.
- Patch availableworkaround available, record updated
- OpenVAS check added
- EPSS band changehigh → low
- Public exploit / PoCsource: github-poc
- Nuclei check added
- Patch availableworkaround available, record updated
Affected products
- Red Hat Single Sign-OnOperating Systems / linux-distro
- Red Hat JBoss Enterprise Application PlatformOperating Systems / linux-distro
- Red Hat Build of KeycloakOperating Systems / linux-distro
- Red Hat build of Keycloak 22Security Products / identity-access-mgmt
- Red Hat build of Keycloak 24Operating Systems / linux-distro
- Red Hat JBoss Enterprise Application Platform 8Enterprise Software / itsm-monitoring
- Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8Enterprise Software / itsm-monitoring
- Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9Enterprise Software / itsm-monitoring
And 7 more affected products. See all after sign-in
Technical detail
CVSS 3.1 vector
Open in the CVSS calculatorCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L
Scored 7.7 by NVD.
How it is reached
- Attack Vector NetworkExploitable remotely over the network without any special conditions
- Attack Complexity HighRequires specific conditions like a race condition or non-default configuration
- Privileges Required LowRequires basic user-level privileges
- User Interaction NoneNo user interaction needed — fully automated exploitation
Scope
- Scope ChangedThe exploit can affect other components (e.g. sandbox escape, host compromise from VM)
Impact if exploited
- Confidentiality HighTotal information disclosure — all data in the component is compromised
- Integrity LowData modification is possible but limited in scope or consequence
- Availability LowReduced performance or intermittent disruption of service
Weaknesses
ATT&CK techniques
Mapped from the weaknesses above (CWE to ATT&CK), not observed in attacks.
Sources
References in the record
- advisories.gitlab.com/pkg/maven/org.keycloak/keycloak-saml-core/CVE-2024-8698/&
- github.com/advisories/GHSA-4xx7-2cx3-x473&
- github.com/keycloak/keycloak&
And 25 more references. See all after sign-in
Watch the software you run.
My Stack ranks new CVEs for your products by real-world exploitation, so the next serious one reaches you without reading every advisory.
We'll flag the next CVE, public exploit or patch for Red Hat Single Sign-On, not every advisory. This one: public exploit.
A free account adds
- The full version matrix and every affected product
- Exploit links, proofs of concept and Metasploit modules
- Email alerts for the products you watch
- The same data over REST API, MCP and CLI