Public vulnerability disclosure

CVE-2026-4366

Keycloak-services: blind server-side request forgery (ssrf) via http redirect handling in keycloak

publishedCWE-918

A flaw was identified in Keycloak, an identity and access management solution, where it improperly follows HTTP redirects when processing certain client configuration requests. This behavior allows an attacker to trick the server into making unintended requests to internal or restricted resources. As a result, sensitive internal services such as cloud metadata endpoints could be accessed. This issue may lead to information disclosure and enable attackers to map internal network infrastructure.

Technical severity5.8 mediumCVSS 3.1 · CNA: redhat
Published2026-03-18Source updated 2026-11-26
Collected2026-11-262 attributed sources

Fixes and workarounds

Workaround

To mitigate this vulnerability, restrict the outbound network access of the Keycloak instance. Configure firewall rules to prevent the Keycloak server from initiating connections to internal network segments, especially to well-known cloud metadata service IP addresses such as `169.254.169.254`. For example, on Red Hat Enterprise Linux, you can use `firewalld` to add a rich rule: `sudo firewall-cmd --permanent --zone=public --add-rich-rule='rule family="ipv4" destination address="169.254.169.254" reject'` `sudo firewall-cmd --reload` This may impact other services if they legitimately rely on accessing these internal IPs. Additionally, ensure that any configured `sector_identifier_uri` values are thoroughly validated to only point to trusted, external URLs that do not perform redirects to internal resources.

Source: CNA: redhat

Affected products and versions

Affected products, source version ranges and reporting authorities
ProductVersionsAuthority
Red Hat build of Keycloak 26.4
Red Hat
rhbk/keycloak-operator-bundle
https://catalog.redhat.com/software/containers/
≥ 26.4.12-1; < * (unaffected, rpm)
Other versions: affected
CNA: redhat
Red Hat build of Keycloak 26.4
Red Hat
rhbk/keycloak-rhel9
https://catalog.redhat.com/software/containers/
≥ 26.4-17; < * (unaffected, rpm)
Other versions: affected
CNA: redhat
Red Hat build of Keycloak 26.4
Red Hat
rhbk/keycloak-rhel9-operator
https://catalog.redhat.com/software/containers/
≥ 26.4-17; < * (unaffected, rpm)
Other versions: affected
CNA: redhat
Red Hat build of Keycloak 26.4.12
Red Hat
https://access.redhat.com/downloads/content/package-browser/
Range not reported
Other versions: unaffected
CNA: redhat
Red Hat Build of Keycloak
Red Hat
rhbk/keycloak-operator-bundle
https://access.redhat.com/downloads/content/package-browser/
Range not reported
Other versions: affected
CNA: redhat
Red Hat Build of Keycloak
Red Hat
rhbk/keycloak-rhel9-operator
https://access.redhat.com/downloads/content/package-browser/
Range not reported
Other versions: affected
CNA: redhat
Red Hat JBoss Enterprise Application Platform 8
Red Hat
keycloak-services
https://access.redhat.com/jbossnetwork/restricted/listSoftware.html
Range not reported
Other versions: affected
CNA: redhat
Red Hat JBoss Enterprise Application Platform Expansion Pack
Red Hat
keycloak-services
https://access.redhat.com/jbossnetwork/restricted/listSoftware.html
Range not reported
Other versions: affected
CNA: redhat
Red Hat Single Sign-On 7
Red Hat
keycloak-services
https://access.redhat.com/downloads/content/package-browser/
Range not reported
Other versions: affected
CNA: redhat

Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.

CVSS assessments

CVSS scores, vectors and reporting authorities
Version / scoreVectorAuthority
3.1 / 5.8
medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:NCNA: redhat

Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

References

For agents and automation

Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.

Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.

Endpoints and access details

https://api.y2.dev/api/v2/cyber/cves
https://api.y2.dev/api/v2/cyber/cves/{cveId}

A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.

For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.

Agent access JSON · OpenAPI · CVE API guide