Keycloak-services: blind server-side request forgery (ssrf) via http redirect handling in keycloak
Published Mar 18, 2026
5.8
MEDIUMCVSS 3.1
EPSS 0.39%
Description
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.
Affected products
-
-
- Vendor Red Hat Product Red Hat JBoss Enterprise Application Platform Expansion Pack Defaultaffected
-
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | |||
|---|---|---|---|---|---|---|
| Red Hat | Red Hat Build of Keycloak | affected |
| |||
| Red Hat | Red Hat JBoss Enterprise Application Platform 8 | affected |
| |||
| Red Hat | Red Hat JBoss Enterprise Application Platform Expansion Pack | affected |
| |||
| Red Hat | Red Hat Single Sign-On 7 | affected |
|
- n/a
- 8.0.0
- n/a
- 7.0
No data.
Red Hat build of Keycloak 26.4
rhbk/keycloak-operator-bundle:26.4.12-1
Fixed · RHSA-2026:19597
Red Hat build of Keycloak 26.4
rhbk/keycloak-rhel9-operator:26.4-17
Fixed · RHSA-2026:19597
Red Hat build of Keycloak 26.4
rhbk/keycloak-rhel9:26.4-17
Fixed · RHSA-2026:19597
Red Hat build of Keycloak 26.4.12
n/a
Fixed · RHSA-2026:19596
Red Hat Build of Keycloak
rhbk/keycloak-operator-bundle
Fix deferred
Red Hat Build of Keycloak
rhbk/keycloak-rhel9-operator
Fix deferred
Red Hat JBoss Enterprise Application Platform 8
keycloak-services
Fix deferred
Red Hat JBoss Enterprise Application Platform Expansion Pack
keycloak-services
Fix deferred
Red Hat Single Sign-On 7
keycloak-services
Fix deferred
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat build of Keycloak 26.4 | rhbk/keycloak-operator-bundle:26.4.12-1 | Fixed | RHSA-2026:19597 |
| Red Hat build of Keycloak 26.4 | rhbk/keycloak-rhel9-operator:26.4-17 | Fixed | RHSA-2026:19597 |
| Red Hat build of Keycloak 26.4 | rhbk/keycloak-rhel9:26.4-17 | Fixed | RHSA-2026:19597 |
| Red Hat build of Keycloak 26.4.12 | n/a | Fixed | RHSA-2026:19596 |
| Red Hat Build of Keycloak | rhbk/keycloak-operator-bundle | Fix deferred | n/a |
| Red Hat Build of Keycloak | rhbk/keycloak-rhel9-operator | Fix deferred | n/a |
| Red Hat JBoss Enterprise Application Platform 8 | keycloak-services | Fix deferred | n/a |
| Red Hat JBoss Enterprise Application Platform Expansion Pack | keycloak-services | Fix deferred | n/a |
| Red Hat Single Sign-On 7 | keycloak-services | Fix deferred | n/a |
No package ranges for this CVE.
Remediation
Vendor solution
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.
Red Hat statement
MODERATE impact: Keycloak is vulnerable to a blind Server-Side Request Forgery (SSRF) due to improper handling of HTTP redirects during client configuration. An attacker can exploit this remotely without authentication or user interaction by crafting a `sector_identifier_uri` that redirects to internal resources, potentially leading to information disclosure and internal network reconnaissance.
Red Hat mitigation
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.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
No CVSS v3.0 score for this CVE.
No CVSS v2.0 score for this CVE.
This CVE is not in the KEV list.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
NoneAutomatable
YesTechnical Impact
PartialDecision
n/aAssessed Mar 18, 2026 · SSVC 2.0.3
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
Mar–Oct 2026- EPSS v4
- EPSS v5
Percentile over time
- EPSS v4
- EPSS v5
Table of values (3 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 0.39% (0.00391) | 30.77th | v5 (v2026.06.15) |
| Jun 15, 2026 | 0.23% (0.00228) | 13.33th | v5 (v2026.06.15) |
| Mar 18, 2026 | 0.03% (0.00028) | 7.62th | v4 (v2025.03.14) |
References (6)
- https://access.redhat.com/errata/RHSA-2026:19596 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:19597 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2026-4366 vdb-entryx_refsource_REDHATVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2448543 issue-trackingx_refsource_REDHATIssue TrackingVendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-4366
- https://www.cve.org/CVERecord?id=CVE-2026-4366
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2026:19596 | vendor-advisoryx_refsource_REDHAT | |
| https://access.redhat.com/errata/RHSA-2026:19597 | vendor-advisoryx_refsource_REDHAT | |
| https://access.redhat.com/security/cve/CVE-2026-4366 | vdb-entryx_refsource_REDHATVendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2448543 | issue-trackingx_refsource_REDHATIssue TrackingVendor Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-4366 | ||
| https://www.cve.org/CVERecord?id=CVE-2026-4366 |
Change history (0)
No recorded changes yet.