{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2024-8698",
        "assignerOrgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
        "state": "PUBLISHED",
        "assignerShortName": "redhat",
        "dateReserved": "2024-09-11T12:55:53.092Z",
        "datePublished": "2024-09-19T15:48:18.464Z",
        "dateUpdated": "2024-09-19T19:49:18.681Z"
    },
    "containers": {
        "cna": {
            "title": "Keycloak-saml-core: improper verification of saml responses leading to privilege escalation in keycloak",
            "metrics": [
                {
                    "other": {
                        "content": {
                            "value": "Important",
                            "namespace": "https://access.redhat.com/security/updates/classification/"
                        },
                        "type": "Red Hat severity rating"
                    }
                },
                {
                    "cvssV3_1": {
                        "attackComplexity": "HIGH",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "LOW",
                        "baseScore": 7.7,
                        "baseSeverity": "HIGH",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "LOW",
                        "privilegesRequired": "LOW",
                        "scope": "CHANGED",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L",
                        "version": "3.1"
                    },
                    "format": "CVSS"
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "affected": [
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat Build of Keycloak",
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "defaultStatus": "unaffected",
                    "cpes": [
                        "cpe:/a:redhat:build_keycloak:22"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat Build of Keycloak",
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "defaultStatus": "unaffected",
                    "packageName": "org.keycloak/keycloak-saml-core",
                    "cpes": [
                        "cpe:/a:redhat:build_keycloak:24"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat build of Keycloak 22",
                    "collectionURL": "https://catalog.redhat.com/software/containers/",
                    "packageName": "rhbk/keycloak-operator-bundle",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "22.0.13-1",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:build_keycloak:22::el9"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat build of Keycloak 22",
                    "collectionURL": "https://catalog.redhat.com/software/containers/",
                    "packageName": "rhbk/keycloak-rhel9",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "22-18",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:build_keycloak:22::el9"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat build of Keycloak 22",
                    "collectionURL": "https://catalog.redhat.com/software/containers/",
                    "packageName": "rhbk/keycloak-rhel9-operator",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "22-21",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:build_keycloak:22::el9"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat build of Keycloak 24",
                    "collectionURL": "https://catalog.redhat.com/software/containers/",
                    "packageName": "rhbk/keycloak-operator-bundle",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "24.0.8-1",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:build_keycloak:24::el9"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat build of Keycloak 24",
                    "collectionURL": "https://catalog.redhat.com/software/containers/",
                    "packageName": "rhbk/keycloak-rhel9",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "24-17",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:build_keycloak:24::el9"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat build of Keycloak 24",
                    "collectionURL": "https://catalog.redhat.com/software/containers/",
                    "packageName": "rhbk/keycloak-rhel9-operator",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "24-17",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:build_keycloak:24::el9"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat Single Sign-On 7",
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "defaultStatus": "unaffected",
                    "packageName": "org.keycloak/keycloak-saml-core",
                    "cpes": [
                        "cpe:/a:redhat:red_hat_single_sign_on:7.6"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat Single Sign-On 7.6 for RHEL 7",
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "packageName": "rh-sso7-keycloak",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "0:18.0.18-1.redhat_00001.1.el7sso",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:red_hat_single_sign_on:7.6::el7"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat Single Sign-On 7.6 for RHEL 8",
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "packageName": "rh-sso7-keycloak",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "0:18.0.18-1.redhat_00001.1.el8sso",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:red_hat_single_sign_on:7.6::el8"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat Single Sign-On 7.6 for RHEL 9",
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "packageName": "rh-sso7-keycloak",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "0:18.0.18-1.redhat_00001.1.el9sso",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:red_hat_single_sign_on:7.6::el9"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "RHEL-8 based Middleware Containers",
                    "collectionURL": "https://catalog.redhat.com/software/containers/",
                    "packageName": "rh-sso-7/sso76-openshift-rhel8",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "7.6-54",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:rhosemc:1.0::el8"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat Build of Keycloak",
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "packageName": "org.keycloak/keycloak-saml-core-public",
                    "defaultStatus": "affected",
                    "cpes": [
                        "cpe:/a:redhat:build_keycloak:"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat JBoss Enterprise Application Platform 8",
                    "collectionURL": "https://access.redhat.com/jbossnetwork/restricted/listSoftware.html",
                    "packageName": "org.keycloak/keycloak-saml-core",
                    "defaultStatus": "affected",
                    "cpes": [
                        "cpe:/a:redhat:jboss_enterprise_application_platform:8"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat JBoss Enterprise Application Platform 8",
                    "collectionURL": "https://access.redhat.com/jbossnetwork/restricted/listSoftware.html",
                    "packageName": "org.keycloak/keycloak-saml-core-public",
                    "defaultStatus": "affected",
                    "cpes": [
                        "cpe:/a:redhat:jboss_enterprise_application_platform:8"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat Single Sign-On 7",
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "packageName": "org.keycloak/keycloak-saml-core-public",
                    "defaultStatus": "affected",
                    "cpes": [
                        "cpe:/a:redhat:red_hat_single_sign_on:7"
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://access.redhat.com/errata/RHSA-2024:6878",
                    "name": "RHSA-2024:6878",
                    "tags": [
                        "vendor-advisory",
                        "x_refsource_REDHAT"
                    ]
                },
                {
                    "url": "https://access.redhat.com/errata/RHSA-2024:6879",
                    "name": "RHSA-2024:6879",
                    "tags": [
                        "vendor-advisory",
                        "x_refsource_REDHAT"
                    ]
                },
                {
                    "url": "https://access.redhat.com/errata/RHSA-2024:6880",
                    "name": "RHSA-2024:6880",
                    "tags": [
                        "vendor-advisory",
                        "x_refsource_REDHAT"
                    ]
                },
                {
                    "url": "https://access.redhat.com/errata/RHSA-2024:6882",
                    "name": "RHSA-2024:6882",
                    "tags": [
                        "vendor-advisory",
                        "x_refsource_REDHAT"
                    ]
                },
                {
                    "url": "https://access.redhat.com/errata/RHSA-2024:6886",
                    "name": "RHSA-2024:6886",
                    "tags": [
                        "vendor-advisory",
                        "x_refsource_REDHAT"
                    ]
                },
                {
                    "url": "https://access.redhat.com/errata/RHSA-2024:6887",
                    "name": "RHSA-2024:6887",
                    "tags": [
                        "vendor-advisory",
                        "x_refsource_REDHAT"
                    ]
                },
                {
                    "url": "https://access.redhat.com/errata/RHSA-2024:6888",
                    "name": "RHSA-2024:6888",
                    "tags": [
                        "vendor-advisory",
                        "x_refsource_REDHAT"
                    ]
                },
                {
                    "url": "https://access.redhat.com/errata/RHSA-2024:6889",
                    "name": "RHSA-2024:6889",
                    "tags": [
                        "vendor-advisory",
                        "x_refsource_REDHAT"
                    ]
                },
                {
                    "url": "https://access.redhat.com/errata/RHSA-2024:6890",
                    "name": "RHSA-2024:6890",
                    "tags": [
                        "vendor-advisory",
                        "x_refsource_REDHAT"
                    ]
                },
                {
                    "url": "https://access.redhat.com/security/cve/CVE-2024-8698",
                    "tags": [
                        "vdb-entry",
                        "x_refsource_REDHAT"
                    ]
                },
                {
                    "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2311641",
                    "name": "RHBZ#2311641",
                    "tags": [
                        "issue-tracking",
                        "x_refsource_REDHAT"
                    ]
                },
                {
                    "url": "https://github.com/keycloak/keycloak/blob/main/saml-core/src/main/java/org/keycloak/saml/processing/core/util/XMLSignatureUtil.java#L415"
                }
            ],
            "datePublic": "2024-09-19T15:12:00+00:00",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-347",
                            "description": "Improper Verification of Cryptographic Signature",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "x_redhatCweChain": "CWE-347: Improper Verification of Cryptographic Signature",
            "workarounds": [
                {
                    "lang": "en",
                    "value": "Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability."
                }
            ],
            "timeline": [
                {
                    "lang": "en",
                    "time": "2024-09-10T00:00:00+00:00",
                    "value": "Reported to Red Hat."
                },
                {
                    "lang": "en",
                    "time": "2024-09-19T15:12:00+00:00",
                    "value": "Made public."
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "Red Hat would like to thank Tanner Emek for reporting this issue."
                }
            ],
            "providerMetadata": {
                "orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
                "shortName": "redhat",
                "dateUpdated": "2024-09-19T19:49:18.681Z"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-09-19T17:28:59.153864Z",
                                "id": "CVE-2024-8698",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-09-19T17:57:06.522Z"
                }
            }
        ]
    }
}