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

Status: published. Published: 2026-03-18. Updated: 2026-11-26.

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.

## Remediation

- 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

- Red Hat / Red Hat build of Keycloak 26.4 (rhbk/keycloak-operator-bundle): ≥ 26.4.12-1; < * (unaffected, rpm). Source: CNA: redhat
- Red Hat / Red Hat build of Keycloak 26.4 (rhbk/keycloak-rhel9): ≥ 26.4-17; < * (unaffected, rpm). Source: CNA: redhat
- Red Hat / Red Hat build of Keycloak 26.4 (rhbk/keycloak-rhel9-operator): ≥ 26.4-17; < * (unaffected, rpm). Source: CNA: redhat
- Red Hat / Red Hat build of Keycloak 26.4.12: Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Build of Keycloak (rhbk/keycloak-operator-bundle): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Build of Keycloak (rhbk/keycloak-rhel9-operator): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat JBoss Enterprise Application Platform 8 (keycloak-services): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat JBoss Enterprise Application Platform Expansion Pack (keycloak-services): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Single Sign-On 7 (keycloak-services): Version range not reported. Source: CNA: redhat

## Severity and prioritization

- CVSS 3.1: 5.8 (medium); CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N; source: CNA: redhat

- CISA KEV: No listing in collected sources

- EPSS: 0.45% as of 2026-11-26; percentile 31.40%

- SSVC: exploitation none; automatable yes; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-918

## Exploit evidence

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

## References

- https://access.redhat.com/errata/RHSA-2026:19596 (CNA: redhat; vendor-advisory, x_refsource_REDHAT)

- https://access.redhat.com/errata/RHSA-2026:19597 (CNA: redhat; vendor-advisory, x_refsource_REDHAT)

- https://access.redhat.com/security/cve/CVE-2026-4366 (CNA: redhat; vdb-entry, x_refsource_REDHAT)

- https://bugzilla.redhat.com/show_bug.cgi?id=2448543 (CNA: redhat; issue-tracking, x_refsource_REDHAT)

## Provenance

- CNA: redhat: https://www.cve.org/CVERecord?id=CVE-2026-4366; retrieved 2026-11-26; source updated 2026-11-26

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-4366; retrieved 2026-11-26; source updated Not reported

Revision: 422a7127c290268a0b90f214939a92bce8cfae3f4f7f29dd46a89f4fbc35063f

Canonical: https://y2.dev/cve/CVE-2026-4366

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.