CVE-2024-8698
Keycloak-saml-core: improper verification of saml responses leading to privilege escalation in keycloak
Check your servers for CVE-2024-8698
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-8698 affects keycloak-saml-core-public, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- changed: the damage reaches other components, such as the host of a container or other users
- Impact
- confidentiality high, integrity low, availability low: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 2.03%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 81.6% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 19 Sep 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-347 Improper Verification of Cryptographic Signature
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
keycloak
package
keycloak |
affected before 25.0.5
Other versions: unaffected
|
| Red Hat Build of Keycloak |
unaffected the record does not list versions
|
|
Red Hat Build of Keycloak
package
keycloak-saml-core |
unaffected the record does not list versions
|
|
Red Hat build of Keycloak 22
package
rhbk/keycloak-operator-bundle |
unaffected 22.0.13-1 and later
Other versions: affected
|
|
Red Hat build of Keycloak 22
package
rhbk/keycloak-rhel9 |
unaffected 22-18 and later
Other versions: affected
|
|
Red Hat build of Keycloak 22
package
rhbk/keycloak-rhel9-operator |
unaffected 22-21 and later
Other versions: affected
|
|
Red Hat build of Keycloak 24
package
rhbk/keycloak-operator-bundle |
unaffected 24.0.8-1 and later
Other versions: affected
|
|
Red Hat build of Keycloak 24
package
rhbk/keycloak-rhel9 |
unaffected 24-17 and later
Other versions: affected
|
|
Red Hat build of Keycloak 24
package
rhbk/keycloak-rhel9-operator |
unaffected 24-17 and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8
package
keycloak-saml-core-public |
unaffected the record does not list versions
|
|
Red Hat JBoss Enterprise Application Platform 8
package
org.keycloak-keycloak-parent |
unaffected the record does not list versions
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-activemq-artemis |
unaffected 0:2.33.0-1.redhat_00015.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-activemq-artemis-native |
unaffected 1:2.0.0-2.redhat_00005.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-aesh-extensions |
unaffected 0:1.8.0-2.redhat_00001.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-aesh-readline |
unaffected 0:2.2.0-2.redhat_00001.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-apache-commons-codec |
unaffected 0:1.16.1-2.redhat_00007.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-apache-commons-collections |
unaffected 0:3.2.2-28.redhat_2.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-apache-commons-io |
unaffected 0:2.15.1-1.redhat_00001.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-apache-commons-lang |
unaffected 0:3.14.0-2.redhat_00006.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-apache-cxf |
unaffected 0:4.0.5-1.redhat_00001.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-artemis-native |
unaffected 1:2.0.0-2.redhat_00005.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-artemis-wildfly-integration |
unaffected 0:2.0.1-1.redhat_00002.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-asyncutil |
unaffected 0:0.1.0-2.redhat_00010.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-aws-java-sdk |
unaffected 0:1.12.284-2.redhat_00002.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-cryptacular |
unaffected 0:1.2.5-2.redhat_00001.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-eap-product-conf-parent |
unaffected 0:800.4.0-1.GA_redhat_00001.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-fastinfoset |
unaffected 0:2.1.0-4.redhat_00001.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-hibernate |
unaffected 0:6.2.31-1.Final_redhat_00002.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-hibernate-validator |
unaffected 0:8.0.1-3.Final_redhat_00001.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-hppc |
unaffected 0:0.8.1-2.redhat_00001.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-insights-java-client |
unaffected 0:1.1.3-1.redhat_00001.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-jakarta-servlet-jsp-jstl-api |
unaffected 0:3.0.1-1.redhat_00001.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-jboss-cert-helper |
unaffected 0:1.1.3-1.redhat_00001.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-jboss-logging |
unaffected 0:3.5.3-1.Final_redhat_00001.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-jctools |
unaffected 0:4.0.2-1.redhat_00001.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-jgroups |
unaffected 0:5.3.10-1.Final_redhat_00001.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-log4j |
unaffected 0:2.22.1-1.redhat_00002.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-narayana |
unaffected 0:6.0.3-1.Final_redhat_00001.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-nimbus-jose-jwt |
unaffected 0:9.37.3-1.redhat_00001.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-objectweb-asm |
unaffected 0:9.6.0-1.redhat_00002.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-pem-keystore |
unaffected 0:2.3.0-1.redhat_00001.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-resteasy-extensions |
unaffected 0:2.0.1-3.Final_redhat_00001.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-resteasy-spring |
unaffected 0:3.0.1-2.Final_redhat_00001.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-saaj-impl |
unaffected 0:3.0.4-1.redhat_00001.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-shibboleth-java-support |
unaffected 0:8.0.0-6.redhat_00001.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-slf4j |
unaffected 0:2.0.16-1.redhat_00001.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-snakeyaml |
unaffected 0:2.2.0-1.redhat_00001.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
package
eap8-wildfly |
unaffected 0:8.0.4-2.GA_redhat_00005.1.el8eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-activemq-artemis |
unaffected 0:2.33.0-1.redhat_00015.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-activemq-artemis-native |
unaffected 1:2.0.0-2.redhat_00005.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-aesh-extensions |
unaffected 0:1.8.0-2.redhat_00001.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-aesh-readline |
unaffected 0:2.2.0-2.redhat_00001.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-apache-commons-codec |
unaffected 0:1.16.1-2.redhat_00007.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-apache-commons-collections |
unaffected 0:3.2.2-28.redhat_2.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-apache-commons-io |
unaffected 0:2.15.1-1.redhat_00001.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-apache-commons-lang |
unaffected 0:3.14.0-2.redhat_00006.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-apache-cxf |
unaffected 0:4.0.5-1.redhat_00001.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-artemis-native |
unaffected 1:2.0.0-2.redhat_00005.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-artemis-wildfly-integration |
unaffected 0:2.0.1-1.redhat_00002.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-asyncutil |
unaffected 0:0.1.0-2.redhat_00010.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-aws-java-sdk |
unaffected 0:1.12.284-2.redhat_00002.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-cryptacular |
unaffected 0:1.2.5-2.redhat_00001.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-eap-product-conf-parent |
unaffected 0:800.4.0-1.GA_redhat_00001.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-fastinfoset |
unaffected 0:2.1.0-4.redhat_00001.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-hibernate |
unaffected 0:6.2.31-1.Final_redhat_00002.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-hibernate-validator |
unaffected 0:8.0.1-3.Final_redhat_00001.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-hppc |
unaffected 0:0.8.1-2.redhat_00001.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-insights-java-client |
unaffected 0:1.1.3-1.redhat_00001.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-jakarta-servlet-jsp-jstl-api |
unaffected 0:3.0.1-1.redhat_00001.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-jboss-cert-helper |
unaffected 0:1.1.3-1.redhat_00001.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-jboss-logging |
unaffected 0:3.5.3-1.Final_redhat_00001.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-jctools |
unaffected 0:4.0.2-1.redhat_00001.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-jgroups |
unaffected 0:5.3.10-1.Final_redhat_00001.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-log4j |
unaffected 0:2.22.1-1.redhat_00002.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-narayana |
unaffected 0:6.0.3-1.Final_redhat_00001.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-nimbus-jose-jwt |
unaffected 0:9.37.3-1.redhat_00001.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-objectweb-asm |
unaffected 0:9.6.0-1.redhat_00002.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-pem-keystore |
unaffected 0:2.3.0-1.redhat_00001.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-resteasy-extensions |
unaffected 0:2.0.1-3.Final_redhat_00001.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-resteasy-spring |
unaffected 0:3.0.1-2.Final_redhat_00001.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-saaj-impl |
unaffected 0:3.0.4-1.redhat_00001.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-shibboleth-java-support |
unaffected 0:8.0.0-6.redhat_00001.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-slf4j |
unaffected 0:2.0.16-1.redhat_00001.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-snakeyaml |
unaffected 0:2.2.0-1.redhat_00001.1.el9eap and later
Other versions: affected
|
|
Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
package
eap8-wildfly |
unaffected 0:8.0.4-2.GA_redhat_00005.1.el9eap and later
Other versions: affected
|
|
Red Hat Single Sign-On 7
package
keycloak-saml-core |
unaffected the record does not list versions
|
|
Red Hat Single Sign-On 7.6 for RHEL 7
package
rh-sso7-keycloak |
unaffected 0:18.0.18-1.redhat_00001.1.el7sso and later
Other versions: affected
|
|
Red Hat Single Sign-On 7.6 for RHEL 8
package
rh-sso7-keycloak |
unaffected 0:18.0.18-1.redhat_00001.1.el8sso and later
Other versions: affected
|
|
Red Hat Single Sign-On 7.6 for RHEL 9
package
rh-sso7-keycloak |
unaffected 0:18.0.18-1.redhat_00001.1.el9sso and later
Other versions: affected
|
|
RHEL-8 based Middleware Containers
package
rh-sso-7/sso76-openshift-rhel8 |
unaffected 7.6-54 and later
Other versions: affected
|
|
Red Hat Build of Keycloak
package
keycloak-saml-core-public |
affected the record does not list versions
|
|
Red Hat Single Sign-On 7
package
keycloak-saml-core-public |
affected the record does not list versions
|
Is my server affected?
Find the installed version of keycloak-saml-core-public and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i keycloak-saml-core-public
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2024-8698 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2024-8698RHEL, Rocky, Alma, Fedora
rpm -q keycloak-saml-core-public
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2024-8698Alpine
apk list --installed | grep -i keycloak-saml-core-publicWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-8698
trivy image --scanners vuln IMAGE | grep CVE-2024-8698
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- RHSA-2024:6878 access.redhat.com · vendor advisory
- RHSA-2024:6879 access.redhat.com · vendor advisory
- RHSA-2024:6880 access.redhat.com · vendor advisory
- RHSA-2024:6882 access.redhat.com · vendor advisory
- RHSA-2024:6886 access.redhat.com · vendor advisory
- RHSA-2024:6887 access.redhat.com · vendor advisory
- RHSA-2024:6888 access.redhat.com · vendor advisory
- RHSA-2024:6889 access.redhat.com · vendor advisory
- RHSA-2024:6890 access.redhat.com · vendor advisory
- RHSA-2024:8823 access.redhat.com · vendor advisory
- RHSA-2024:8824 access.redhat.com · vendor advisory
- RHSA-2024:8826 access.redhat.com · vendor advisory
- https://access.redhat.com/security/cve/CVE-2024-8698 access.redhat.com · vdb entry
- RHBZ#2311641 bugzilla.redhat.com · issue tracking
Source: the record CVE-2024-8698 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse