{"answers":{"affected":"6 open source packages ship an affected version, including org.keycloak:keycloak-services. It affects 6 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-8883 exists.","fix":"Upgrade org.keycloak:keycloak-services to a fixed version for your release line: 22.0.13, 24.0.8 or 25.0.6.","what":"CVE-2024-8883 is a medium-severity vulnerability in Redhat Build of Keycloak, published on 19 Sep 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-8883 and fix it if it is affected.\n\nWhat it is: CVE-2024-8883 is a medium-severity vulnerability in Redhat Build of Keycloak, published on 19 Sep 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-8883 exists.\n\nAffected packages and fixed versions:\n- org.keycloak:keycloak-services (Maven): affected all versions; fixed in 22.0.13\n- org.keycloak:keycloak-services (Maven): affected all versions; fixed in 22.0.13\n- org.keycloak:keycloak-services (Maven): affected from 23.0.0; fixed in 24.0.8\n- org.keycloak:keycloak-services (Maven): affected from 23.0.0; fixed in 24.0.8\n- org.keycloak:keycloak-services (Maven): affected from 25.0.0; fixed in 25.0.6\n- org.keycloak:keycloak-services (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-8883/ (Markdown: https://insights.sbomify.com/CVE-2024-8883/index.md)","id":"CVE-2024-8883","markdown":"https://insights.sbomify.com/CVE-2024-8883/index.md","name":"CVE-2024-8883","record":{"aliases":["GHSA-w8gr-xwp4-r9f7","RHSA-2024:10386"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["data_read","account_takeover"],"network_reachable":"yes","non_default_config":true,"product_category":"Keycloak identity server","requires_auth":"none","summary":"Attackers can redirect users to malicious URLs if specific localhost redirect URIs are configured, exposing authorization codes and enabling session hijacking.","user_interaction":"required","vuln_class":"open_redirect"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"build_of_keycloak","vendor":"redhat"},{"product":"openshift_container_platform","vendor":"redhat"},{"product":"openshift_container_platform_for_ibm_z","vendor":"redhat"},{"product":"openshift_container_platform_for_linuxone","vendor":"redhat"},{"product":"openshift_container_platform_for_power","vendor":"redhat"},{"product":"single_sign-on","vendor":"redhat"}],"cvss":{"score":6.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"description":"A misconfiguration flaw was found in Keycloak. This issue can allow an attacker to redirect users to an arbitrary URL if a 'Valid Redirect URI' is set to http://localhost or http://127.0.0.1, enabling sensitive information such as authorization codes to be exposed to the attacker, potentially leading to session hijacking.","ecosystems":["Maven","Red Hat:jboss_enterprise_application_platform:8.0::el8","Red Hat:jboss_enterprise_application_platform:8.0::el9"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":null,"kind":"nuclei","ref":"http/cves/2024/CVE-2024-8883.yaml","stars":null,"title":"Keycloak - Open Redirect"}],"tier":"weaponised"},"has_fix":true,"headline":"Keycloak: vulnerable redirect uri validation results in open redirec","id":"CVE-2024-8883","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"redhat:build_of_keycloak","products":["redhat:build_of_keycloak","redhat:openshift_container_platform","redhat:single_sign-on"],"type":"open_redirect","year":"2024"},"n_packages":20,"n_references":17,"next":{"headline":"Information disclosure in System Monitor application in Harmony Industrial PC HMIBMO/HMIBMI/HMIPSO/HMIBMP/HMIBMU/HMIPSP/HMIPEP series","id":"CVE-2024-8884"},"packages":[{"ecosystem":"Maven","fixed":["22.0.13"],"introduced":["0"],"last_affected":[],"package":"org.keycloak:keycloak-services","purl":null,"source":"GHSA-w8gr-xwp4-r9f7"},{"ecosystem":"Maven","fixed":["22.0.13"],"introduced":["0"],"last_affected":[],"package":"org.keycloak:keycloak-services","purl":"pkg:maven/org.keycloak/keycloak-services","source":"GHSA-w8gr-xwp4-r9f7"},{"ecosystem":"Maven","fixed":["24.0.8"],"introduced":["23.0.0"],"last_affected":[],"package":"org.keycloak:keycloak-services","purl":null,"source":"GHSA-w8gr-xwp4-r9f7"},{"ecosystem":"Maven","fixed":["24.0.8"],"introduced":["23.0.0"],"last_affected":[],"package":"org.keycloak:keycloak-services","purl":"pkg:maven/org.keycloak/keycloak-services","source":"GHSA-w8gr-xwp4-r9f7"},{"ecosystem":"Maven","fixed":["25.0.6"],"introduced":["25.0.0"],"last_affected":[],"package":"org.keycloak:keycloak-services","purl":null,"source":"GHSA-w8gr-xwp4-r9f7"},{"ecosystem":"Maven","fixed":["25.0.6"],"introduced":["25.0.0"],"last_affected":[],"package":"org.keycloak:keycloak-services","purl":"pkg:maven/org.keycloak/keycloak-services","source":"GHSA-w8gr-xwp4-r9f7"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:8.0::el8","fixed":["0:800.4.1-1.GA_redhat_00001.1.el8eap"],"introduced":["0"],"last_affected":[],"package":"eap8-eap-product-conf-parent","purl":"pkg:rpm/redhat/eap8-eap-product-conf-parent","source":"RHSA-2024:10386"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:8.0::el8","fixed":["0:800.4.1-1.GA_redhat_00001.1.el8eap"],"introduced":["0"],"last_affected":[],"package":"eap8-eap-product-conf-wildfly-ee-feature-pack","purl":"pkg:rpm/redhat/eap8-eap-product-conf-wildfly-ee-feature-pack","source":"RHSA-2024:10386"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:8.0::el8","fixed":["0:8.0.4-3.GA_redhat_00007.1.el8eap"],"introduced":["0"],"last_affected":[],"package":"eap8-wildfly","purl":"pkg:rpm/redhat/eap8-wildfly","source":"RHSA-2024:10386"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:8.0::el8","fixed":["0:8.0.4-3.GA_redhat_00007.1.el8eap"],"introduced":["0"],"last_affected":[],"package":"eap8-wildfly-java-jdk11","purl":"pkg:rpm/redhat/eap8-wildfly-java-jdk11","source":"RHSA-2024:10386"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:8.0::el8","fixed":["0:8.0.4-3.GA_redhat_00007.1.el8eap"],"introduced":["0"],"last_affected":[],"package":"eap8-wildfly-java-jdk17","purl":"pkg:rpm/redhat/eap8-wildfly-java-jdk17","source":"RHSA-2024:10386"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:8.0::el8","fixed":["0:8.0.4-3.GA_redhat_00007.1.el8eap"],"introduced":["0"],"last_affected":[],"package":"eap8-wildfly-java-jdk21","purl":"pkg:rpm/redhat/eap8-wildfly-java-jdk21","source":"RHSA-2024:10386"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:8.0::el8","fixed":["0:8.0.4-3.GA_redhat_00007.1.el8eap"],"introduced":["0"],"last_affected":[],"package":"eap8-wildfly-modules","purl":"pkg:rpm/redhat/eap8-wildfly-modules","source":"RHSA-2024:10386"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:8.0::el9","fixed":["0:800.4.1-1.GA_redhat_00001.1.el9eap"],"introduced":["0"],"last_affected":[],"package":"eap8-eap-product-conf-parent","purl":"pkg:rpm/redhat/eap8-eap-product-conf-parent","source":"RHSA-2024:10386"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:8.0::el9","fixed":["0:800.4.1-1.GA_redhat_00001.1.el9eap"],"introduced":["0"],"last_affected":[],"package":"eap8-eap-product-conf-wildfly-ee-feature-pack","purl":"pkg:rpm/redhat/eap8-eap-product-conf-wildfly-ee-feature-pack","source":"RHSA-2024:10386"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:8.0::el9","fixed":["0:8.0.4-3.GA_redhat_00007.1.el9eap"],"introduced":["0"],"last_affected":[],"package":"eap8-wildfly","purl":"pkg:rpm/redhat/eap8-wildfly","source":"RHSA-2024:10386"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:8.0::el9","fixed":["0:8.0.4-3.GA_redhat_00007.1.el9eap"],"introduced":["0"],"last_affected":[],"package":"eap8-wildfly-java-jdk11","purl":"pkg:rpm/redhat/eap8-wildfly-java-jdk11","source":"RHSA-2024:10386"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:8.0::el9","fixed":["0:8.0.4-3.GA_redhat_00007.1.el9eap"],"introduced":["0"],"last_affected":[],"package":"eap8-wildfly-java-jdk17","purl":"pkg:rpm/redhat/eap8-wildfly-java-jdk17","source":"RHSA-2024:10386"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:8.0::el9","fixed":["0:8.0.4-3.GA_redhat_00007.1.el9eap"],"introduced":["0"],"last_affected":[],"package":"eap8-wildfly-java-jdk21","purl":"pkg:rpm/redhat/eap8-wildfly-java-jdk21","source":"RHSA-2024:10386"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:8.0::el9","fixed":["0:8.0.4-3.GA_redhat_00007.1.el9eap"],"introduced":["0"],"last_affected":[],"package":"eap8-wildfly-modules","purl":"pkg:rpm/redhat/eap8-wildfly-modules","source":"RHSA-2024:10386"}],"prev":{"headline":"Memory corruption in GS1900-48 firmware","id":"CVE-2024-8882"},"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":[{"cvss_score":8.8,"headline":"Keycloak-services: keycloak-services: dcr protocol mapper type-swap policy bypass allows privilege escalation","id":"CVE-2026-15572","kev_date_added":null,"published":"2026-08-05"},{"cvss_score":8.8,"headline":"Keycloak SAML Broken has Authentication Bypass by Primary Weakness","id":"CVE-2026-3047","kev_date_added":null,"published":"2026-03-05"},{"cvss_score":8.1,"headline":"Keycloak-services: keycloak-services: authorization bypass via unnormalized uri matching in pathmatcher","id":"CVE-2026-15573","kev_date_added":null,"published":"2026-08-05"},{"cvss_score":8.1,"headline":"Keycloak-services: keycloak-services: default dcr policy allows role forgery via user property mappers","id":"CVE-2026-16102","kev_date_added":null,"published":"2026-08-05"},{"cvss_score":8.1,"headline":"Org.keycloak/keycloak-quarkus-server: keycloak: unauthorized access via jwt authorization grant with disabled users","id":"CVE-2026-1609","kev_date_added":null,"published":"2026-07-16"},{"cvss_score":8.1,"headline":"Org.keycloak:keycloak-services: keycloak: authentication bypass via jwt algorithm confusion","id":"CVE-2026-11800","kev_date_added":null,"published":"2026-06-25"},{"cvss_score":8.1,"headline":"Keycloak-policy-enforcer: keycloak policy enforcer: authorization bypass via incorrect uri comparison","id":"CVE-2026-9800","kev_date_added":null,"published":"2026-06-25"}],"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":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"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"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-04","vendors":["Red Hat"]},"summary":"Attackers can redirect users to malicious URLs if specific localhost redirect URIs are configured, exposing authorization codes and enabling session hijacking.","url":"https://insights.sbomify.com/CVE-2024-8883/"}