{"answers":{"affected":"6 open source packages ship an affected version, including org.keycloak:keycloak-saml-core.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-8698 exists.","fix":"Upgrade org.keycloak:keycloak-saml-core to a fixed version for your release line: 22.0.13, 24.0.8 or 25.0.6.","what":"CVE-2024-8698 is a high-severity authentication bypass vulnerability in Red Hat RHEL-8 based Middleware Containers, published on 19 Sep 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-8698 and fix it if it is affected.\n\nWhat it is: CVE-2024-8698 is a high-severity authentication bypass vulnerability in Red Hat RHEL-8 based Middleware Containers, published on 19 Sep 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-8698 exists.\n\nAffected packages and fixed versions:\n- org.keycloak:keycloak-saml-core (Maven): affected all versions; fixed in 22.0.13\n- org.keycloak:keycloak-saml-core (Maven): affected all versions; fixed in 22.0.13\n- org.keycloak:keycloak-saml-core (Maven): affected from 23.0.0; fixed in 24.0.8\n- org.keycloak:keycloak-saml-core (Maven): affected from 23.0.0; fixed in 24.0.8\n- org.keycloak:keycloak-saml-core (Maven): affected from 25.0.0; fixed in 25.0.6\n- org.keycloak:keycloak-saml-core (Maven): affected from 25.0.0; fixed in 25.0.6\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-8698/ (Markdown: https://insights.sbomify.com/CVE-2024-8698/index.md)","id":"CVE-2024-8698","markdown":"https://insights.sbomify.com/CVE-2024-8698/index.md","name":"CVE-2024-8698","record":{"aliases":["GHSA-xgfv-xpx8-qhcr"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["privilege_escalation","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Keycloak SAML library","requires_auth":"low_privilege","summary":"Attackers can bypass SAML signature validation to escalate privileges or impersonate users in Keycloak deployments.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[],"cvss":{"score":7.7,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2024-10-10","github_poc":1,"max_poc_stars":6,"metasploit":0,"nuclei":1,"refs":[{"date":"2024-10-10T11:50:07Z","kind":"github_poc","ref":"https://github.com/huydoppaz/CVE-2024-8698-POC","stars":6,"title":"i'm noob with saml and keycloak . J4f"},{"date":null,"kind":"nuclei","ref":"http/cves/2024/CVE-2024-8698.yaml","stars":null,"title":"Keycloak - SAML Core Package Signature Validation Flaw"}],"tier":"weaponised"},"has_fix":true,"headline":"Keycloak-saml-core: improper verification of saml responses leading to privilege escalation in keycloak","id":"CVE-2024-8698","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"auth_bypass","year":"2024"},"n_packages":6,"n_references":14,"next":{"headline":"Z-Downloads \u003c 1.11.5 - Admin+ Arbitrary File Upload","id":"CVE-2024-8699"},"packages":[{"ecosystem":"Maven","fixed":["22.0.13"],"introduced":["0"],"last_affected":[],"package":"org.keycloak:keycloak-saml-core","purl":null,"source":"GHSA-xgfv-xpx8-qhcr"},{"ecosystem":"Maven","fixed":["22.0.13"],"introduced":["0"],"last_affected":[],"package":"org.keycloak:keycloak-saml-core","purl":"pkg:maven/org.keycloak/keycloak-saml-core","source":"GHSA-xgfv-xpx8-qhcr"},{"ecosystem":"Maven","fixed":["24.0.8"],"introduced":["23.0.0"],"last_affected":[],"package":"org.keycloak:keycloak-saml-core","purl":null,"source":"GHSA-xgfv-xpx8-qhcr"},{"ecosystem":"Maven","fixed":["24.0.8"],"introduced":["23.0.0"],"last_affected":[],"package":"org.keycloak:keycloak-saml-core","purl":"pkg:maven/org.keycloak/keycloak-saml-core","source":"GHSA-xgfv-xpx8-qhcr"},{"ecosystem":"Maven","fixed":["25.0.6"],"introduced":["25.0.0"],"last_affected":[],"package":"org.keycloak:keycloak-saml-core","purl":null,"source":"GHSA-xgfv-xpx8-qhcr"},{"ecosystem":"Maven","fixed":["25.0.6"],"introduced":["25.0.0"],"last_affected":[],"package":"org.keycloak:keycloak-saml-core","purl":"pkg:maven/org.keycloak/keycloak-saml-core","source":"GHSA-xgfv-xpx8-qhcr"}],"prev":{"headline":"Code injection in Docker Desktop","id":"CVE-2024-8696"},"products":["RHEL-8 based Middleware Containers","Red Hat Build of Keycloak","Red Hat JBoss Enterprise Application Platform 8","Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8","Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9","Red Hat Single Sign-On 7","Red Hat Single Sign-On 7.6 for RHEL 7","Red Hat Single Sign-On 7.6 for RHEL 8","Red Hat Single Sign-On 7.6 for RHEL 9","Red Hat build of Keycloak 22","Red Hat build of Keycloak 24"],"published":"2024-09-19","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-04","vendors":["Red Hat"]},"summary":"Attackers can bypass SAML signature validation to escalate privileges or impersonate users in Keycloak deployments.","url":"https://insights.sbomify.com/CVE-2024-8698/"}