CVE-2026-18217

Keycloak-services: keycloak-services: saml http-redirect binding response preserves query string leading to parameter pollution

Published Jul 31, 2026 CVSS 3.1 · 3.4 Low EPSS < 1% KEV · Not listed
Description
A flaw was found in the SAML protocol implementation of Keycloak, an open-source identity and access management solution. The issue occurs when Keycloak handles SAML authentication requests using the HTTP-Redirect binding. If a client is configured with a wildcard redirect URL, an attacker can craft a request that includes malicious parameters. When a user authenticates, Keycloak appends its legitimate response to the attacker's parameters. This can cause some service providers to process the attacker's data instead of the real login information, potentially leading to a user being logged into the wrong account.

Analysis

AI-generated

Technical impact

The vulnerability lies in the SAML HTTP‑Redirect binding handling of Keycloak. When a client is configured to allow a wildcard redirect URL, an attacker can embed malicious query parameters in the authentication request. After the user authenticates, Keycloak concatenates its legitimate SAML response to the attacker‑supplied parameters, and some service providers may process these injected values instead of the authentic login data This can result in a user being logged into the wrong account or having session data overwritten, effectively allowing unauthorized access or confusion over user identity.

Affected Systems

The affected products include Red Hat Build of Keycloak, Red Hat Data Grid 8, Red Hat JBoss Enterprise Application Platform Expansion Pack, and Red Hat Single Sign‑On 7. No specific version numbers were supplied by the CNA, so all installed releases remain potentially vulnerable until further information is released.

Risk and Exploitability

The CVSS score of 3.4 indicates a low severity impact, but the flaw facilitates parameter pollution that can lead to account confusion. The EPSS score is < 1% (0.00193), indicating a very low likelihood of exploitation, and the vulnerability is not listed in the CISA KEV catalog. Based on the description, the likely attack vector is a client‑initiated SAML authentication request using the HTTP‑Redirect binding. The attacker must identify a service provider with a wildcard redirect configuration and craft a request containing malicious query parameters. Successful exploitation would require user interaction to complete authentication and relies on the service provider incorrectly handling the appended parameters.

Remediation

Vendor Workaround

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.


OpenCVE Recommended Actions

  • Restrict redirect URIs to a whitelist of explicit URLs to eliminate wildcard redirects
  • Switch to a different SAML binding such as POST or Artifact, which do not append query strings to the redirect URL
  • Monitor Red Hat security advisories for any official patch or update regarding this issue

Generated by OpenCVE AI on August 3, 2026 at 10:01 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:/a:redhat:build_keycloak: cpe:/a:redhat:build_keycloak:26.4::el9
cpe:/a:redhat:build_keycloak:26.6::el9
References
Type Values Removed Values Added
First Time appeared Redhat build Of Keycloak
Redhat data Grid
Redhat jboss Enterprise Application Platform Expansion Pack
Redhat single Sign On
Vendors & Products Redhat build Of Keycloak
Redhat data Grid
Redhat jboss Enterprise Application Platform Expansion Pack
Redhat single Sign On
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A flaw was found in the SAML protocol implementation of Keycloak, an open-source identity and access management solution. The issue occurs when Keycloak handles SAML authentication requests using the HTTP-Redirect binding. If a client is configured with a wildcard redirect URL, an attacker can craft a request that includes malicious parameters. When a user authenticates, Keycloak appends its legitimate response to the attacker's parameters. This can cause some service providers to process the attacker's data instead of the real login information, potentially leading to a user being logged into the wrong account.
Title Keycloak-services: keycloak-services: saml http-redirect binding response preserves query string leading to parameter pollution
First Time appeared Redhat
Redhat build Keycloak
Redhat jboss Data Grid
Redhat jbosseapxp
Redhat red Hat Single Sign On
Weaknesses CWE-20
CPEs cpe:/a:redhat:build_keycloak:
cpe:/a:redhat:jboss_data_grid:8
cpe:/a:redhat:jbosseapxp
cpe:/a:redhat:red_hat_single_sign_on:7
Vendors & Products Redhat
Redhat build Keycloak
Redhat jboss Data Grid
Redhat jbosseapxp
Redhat red Hat Single Sign On
References
Metrics cvssV3_1

{'score': 3.4, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:L/A:N'}

Weaknesses
  • CWE-20

    Improper Input Validation

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 6, 2026, 5:32 PM
Reserved
Jul 29, 2026, 8:54 AM
Status
Modified
Published
Jul 31, 2026, 8:16 AM
Modified
Nov 6, 2026, 6:18 PM
Severity
Moderate
Public date
Jul 28, 2026, 12:03 PM