Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-4366

MEDIUM 5.8EPSS 31%

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

Mitigation

  • Vendor 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.

Who should check

  • Anyone running Red Hat build of Keycloak 26.4 all versions
  • Anyone running Red Hat build of Keycloak 26.4.12 (versions: see the vendor advisory)
  • Anyone running Red Hat Build of Keycloak all versions
  • Anyone running Red Hat JBoss Enterprise Application Platform 8 all versions
  • Anyone running Red Hat JBoss Enterprise Application Platform Expansion Pack all versions
  • Anyone running Red Hat Single Sign-On 7 all versions

Vulnerability facts

Affected
Red Hat build of Keycloak 26.4 all versions; Red Hat build of Keycloak 26.4 all versions; Red Hat build of Keycloak 26.4 all versions; Red Hat build of Keycloak 26.4.12; Red Hat Build of Keycloak all versions; Red Hat Build of Keycloak all versions; Red Hat JBoss Enterprise Application Platform 8 all versions; Red Hat JBoss Enterprise Application Platform Expansion Pack all versions; Red Hat Single Sign-On 7 all versions
Fixed in
No fix listed yet
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
5.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Changed (impact reaches other components)
  • Confidentiality impact: Low
  • Integrity impact: None
  • Availability impact: None
EPSS
0.45% chance of exploitation in 30 days (percentile 31, 2026-11-26)
CWE
CWE-918
Published
Modified

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 and fixed versions

Package / productAffectedFixedSource
Red Hat build of Keycloak 26.4all versions—cvelist
Red Hat build of Keycloak 26.4all versions—cvelist
Red Hat build of Keycloak 26.4all versions—cvelist
Red Hat build of Keycloak 26.4.12——cvelist
Red Hat Build of Keycloakall versions—cvelist
Red Hat Build of Keycloakall versions—cvelist
Red Hat JBoss Enterprise Application Platform 8all versions—cvelist
Red Hat JBoss Enterprise Application Platform Expansion Packall versions—cvelist
Red Hat Single Sign-On 7all versions—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-4366. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-4366.md
Affected: Red Hat build of Keycloak 26.4 all versions; Red Hat build of Keycloak 26.4 all versions; Red Hat build of Keycloak 26.4 all versions; Red Hat build of Keycloak 26.4.12; Red Hat Build of Keycloak all versions; Red Hat Build of Keycloak all versions; Red Hat JBoss Enterprise Application Platform 8 a…
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for Red Hat build of Keycloak 26.4, Red Hat build of Keycloak 26.4.12, Red Hat Build of Keycloak, Red Hat JBoss Enterprise Application Platform 8, Red Hat JBoss Enterprise Application Platform Expansion Pack, Red Hat Single Sign-On 7: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-4366 being exploited?

There is no confirmed exploitation: CVE-2026-4366 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.45% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-4366?

Medium: CVSS 5.8 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2026-4366?

Red Hat build of Keycloak 26.4 all versions; Red Hat build of Keycloak 26.4 all versions; Red Hat build of Keycloak 26.4 all versions; Red Hat build of Keycloak 26.4.12; Red Hat Build of Keycloak all versions; Red Hat Build of Keycloak all versions; Red Hat JBoss Enterprise Application Platform 8 all versions; Red Hat JBoss Enterprise Application Platform Expansion Pack all versions; Red Hat Single Sign-On 7 all versions.

Is there a fix for CVE-2026-4366?

No fixed version is listed in the sources yet. Vendor 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.

How do I check if I'm affected by CVE-2026-4366?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors