A Critical Keycloak Flaw Could Let Attackers Reset Any Password and Take Over Entire Identity Systems + Video

Listen to this Post

Featured Image
Identity platforms are designed to answer one of the most important questions in modern computing: who are you, and what are you allowed to access? When that security boundary fails, the consequences can spread far beyond a single application or account. A newly disclosed critical vulnerability in Keycloak demonstrates exactly why identity infrastructure deserves the same level of protection as the systems it controls.

Red Hat and the Keycloak project have released security updates for CVE-2026-18963, a critical vulnerability that could allow an unauthenticated remote attacker to reset the password of another user and potentially take control of arbitrary accounts, including administrative accounts. With a CVSS score of 9.1, the flaw represents a serious risk for organizations that rely on Keycloak as the authentication gateway for internal applications, cloud services, APIs, customer portals, and administrative environments.

The vulnerability is particularly concerning because the attacker does not need an existing account, user interaction, or the victim’s password. Instead, the weakness affects the password recovery process itself. Under vulnerable conditions, a specially crafted request can interfere with the reset-credentials authentication flow and move the process directly toward a password update without requiring the normal email-based action token.

For organizations running identity infrastructure, this is the kind of vulnerability that demands immediate attention. If an attacker can take control of an administrative identity, the attack may no longer be limited to Keycloak. The identity provider can become a gateway into everything connected behind it.

The Vulnerability: A Password Reset Flow That Can Lose Its Security Boundary

CVE-2026-18963 has been classified as CWE-640, Weak Password Recovery Mechanism for Forgotten Password. Red Hat assigned the flaw a critical CVSS score of 9.1 because exploitation can potentially occur remotely and without authentication or user interaction.

The root of the issue is described as improper state validation within the reset-credentials authentication flow. In simple terms, Keycloak normally maintains a controlled sequence when a user requests a password reset. The user initiates the recovery process, receives an action token through an authorized channel such as email, and then uses that token to continue the password reset.

The vulnerable flow can allegedly be manipulated through a specially crafted request.

According to the published technical description, the authentication session can transition directly to the password update stage. The action token that would normally provide proof that the person requesting the reset controls the associated email channel is not required during the vulnerable path.

That changes the security model dramatically.

A password reset mechanism is supposed to verify that the person changing the password has control over a trusted recovery channel. If the workflow can reach the password update phase without completing that verification, the recovery system itself becomes the attack surface.

Why Account Takeover Is So Dangerous in an Identity Platform

The potential impact of CVE-2026-18963 extends beyond an ordinary user account compromise.

Keycloak is widely deployed as an identity and access management platform. It can manage authentication, single sign-on, federation, authorization, OpenID Connect, OAuth-based access, SAML integrations, and administrative identities.

That means a successful account takeover could have a cascading effect.

If an attacker resets the password of a standard user, they may gain access to the applications and resources assigned to that account. If they reset the password of a privileged administrator, the consequences could be considerably more severe.

Administrative access may allow an attacker to modify authentication settings, create or manipulate users, alter identity-provider configurations, change client settings, register malicious applications, or establish persistence inside the identity environment.

This is why identity systems must be treated as high-value infrastructure.

A compromised web server may expose one application. A compromised identity provider can potentially expose many.

The Attack Does Not Require User Interaction

One of the reasons Red Hat classified the vulnerability as critical is the lack of user interaction required for exploitation.

The victim does not necessarily need to click a phishing link.

They do not need to open a malicious attachment.

They do not need to approve a login notification.

They may not even know that the password recovery process has been triggered until after their account has been compromised.

The attacker begins with a crafted request targeting the vulnerable reset-credentials process. If the affected configuration allows the authentication state to be manipulated as described, the attacker could move toward resetting another user’s password without possessing the legitimate recovery token.

That makes patching especially important because defensive controls based only on user awareness cannot protect against a server-side authentication flaw.

Which Keycloak Versions Are Fixed?

Upstream Keycloak users are advised to upgrade to version 26.7.2, which was released on August 19, 2026.

Red Hat customers running the Red Hat build of Keycloak should apply the relevant updates for the supported streams.

The fixed releases include:

Red Hat Build of Keycloak 26.4

Deployments are unaffected from operator bundle 26.4.15-1.

The updated rhbk/keycloak-rhel9 and rhbk/keycloak-rhel9-operator container images are unaffected from version 26.4-23.

Organizations should verify both the Keycloak deployment and the supporting operator and container components because identity platforms are often deployed through automated Kubernetes or OpenShift workflows.

Red Hat Build of Keycloak 26.6

Deployments are unaffected from operator bundle 26.6.6-1.

The corresponding Keycloak and operator container images are unaffected from version 26.6-12.

Administrators should confirm the exact image versions running in production rather than assuming that a recently updated deployment automatically contains the security fix.

Upstream Keycloak 26.7.2

The upstream project fixed CVE-2026-18963 in Keycloak 26.7.2.

The release included fixes for multiple security issues, demonstrating how quickly identity platforms can accumulate complex security problems as authentication flows, federation features, protocol support, and administrative functionality continue to expand.

For organizations maintaining custom Keycloak deployments, upgrading upstream packages should be treated as a priority security operation.

Red Hat Issued Multiple Security Errata

Red Hat released four errata on August 18, 2026:

RHSA-2026:56519

RHSA-2026:56520

RHSA-2026:56523

RHSA-2026:56524

The advisories cover standalone packages and containerized deployments across the affected Red Hat build of Keycloak streams.

This is important because modern enterprise identity infrastructure is not always deployed as a traditional standalone server. Many organizations operate Keycloak through containers, Kubernetes operators, OpenShift environments, and automated deployment pipelines.

Patching only one layer may not be enough.

Security teams should verify the running application version, operator version, container image version, deployment manifests, and any automation that could redeploy an older vulnerable image.

The Temporary Mitigation Is Simple, but Operationally Expensive

Organizations that cannot immediately install the security update have a temporary mitigation: disable the Forgot password functionality.

In the Red Hat build of Keycloak administration console, the setting can be found under:

Realm settings → Login → Forgot password

The setting must be disabled for every affected realm.

This mitigation removes the vulnerable password recovery functionality from the exposed authentication flow, reducing the attack surface until the software can be upgraded.

However, disabling password recovery has an obvious operational cost.

Users who forget their passwords may need to contact administrators or use alternative recovery procedures. In a large organization, this could increase support requests and create additional pressure on identity management teams.

Still, between temporary inconvenience and the possibility of unauthorized account takeover, disabling the feature may be the safer short-term decision for vulnerable environments.

Identity Security Depends on Every Step of the Authentication Flow

Authentication security is not only about strong passwords.

It is not only about multi-factor authentication.

It is not only about encryption.

Security also depends on whether every state transition inside an authentication workflow is properly validated.

Password reset systems are particularly sensitive because they intentionally provide a mechanism for changing credentials without knowing the existing password.

That mechanism must therefore introduce a different form of trust verification.

Usually, that verification comes from control of an email inbox, a signed token, a recovery code, an administrator-approved process, or another trusted channel.

If an attacker can bypass the mechanism that proves control over that channel, the entire password recovery workflow becomes a shortcut around the original authentication system.

That is why weaknesses classified under CWE-640 can become so dangerous.

The feature intended to help users regain access can become the feature that gives attackers access instead.

A Security Researcher Previously Warned About

The Keycloak ecosystem has received increased security attention following other recently disclosed flaws.

Security researcher Enzo Mongin, who previously discussed a separate Keycloak access-control vulnerability, highlighted the broader implications of compromising an identity platform.

The concern is straightforward.

An identity provider often sits in front of multiple services.

Once an attacker gains control over a powerful identity account, they may not need to exploit every application individually. Authentication relationships can provide access across the environment.

Single sign-on is convenient because users authenticate once.

From an

A single compromised administrator account could become more useful than compromising several isolated application accounts.

Keycloak 26.7.2 Also Fixed Another Account Takeover Risk

CVE-2026-18963 was one of eight CVE identifiers addressed in Keycloak 26.7.2.

The same release also addressed CVE-2026-15571, involving a predictable account-linking hash that could enable account takeover through a malicious OpenID Connect client.

The presence of multiple account-related vulnerabilities in the same release should remind administrators that identity infrastructure must be continuously monitored.

Authentication protocols are complicated.

Account linking is complicated.

Federation is complicated.

Password recovery is complicated.

Every one of these systems contains trust boundaries, tokens, sessions, redirects, callbacks, and state transitions that must be handled correctly.

A small validation mistake can become a major security problem when it affects the system responsible for deciding who can access everything else.

Previous Keycloak Updates Also Addressed Multiple Security Issues

Just two weeks before version 26.7.2, Keycloak 26.7.1 addressed twelve CVEs.

Among the issues were vulnerabilities involving SAML identity-provider-initiated broker logins and a dynamic client registration policy that could allow role forgery through user property mappers.

This pattern illustrates an important reality.

Identity software is constantly evolving.

New authentication standards, integrations, administrative capabilities, cloud deployment models, and enterprise requirements add more functionality. More functionality often means more complexity, and more complexity creates additional opportunities for security mistakes.

Organizations should therefore avoid treating identity infrastructure as something that can be deployed once and forgotten.

It requires continuous patching and security review.

Some Deployments May Not Be Exposed

Univention stated on August 20 that its Nubus platform was not affected because the forgotten-password feature is not activated in its Keycloak deployments.

That provides an important lesson for defenders.

Feature exposure matters.

A vulnerability can exist in software without necessarily being reachable in every deployment. If the vulnerable functionality is disabled, the practical attack surface may be reduced or eliminated.

However, administrators should not assume they are safe without verifying their configuration.

They should inspect each realm individually.

A single realm with the forgotten-password feature enabled may represent a different risk profile from another realm where the feature is disabled.

The exact scope of exploitability across different reset-credentials flow configurations was not clearly established in the available information.

Exploitation Has Not Been Confirmed

As of August 24, 2026, there is no confirmed evidence that CVE-2026-18963 has been exploited in the wild.

No verified public exploit has been identified in the information provided for this report.

That does not reduce the urgency of patching.

Critical authentication vulnerabilities often become more attractive to attackers after public technical information becomes available. Once researchers and threat actors understand the affected code path, exploitation attempts may become easier to reproduce.

The period between disclosure and patch deployment is frequently the most dangerous time.

Organizations that patch early reduce the opportunity for attackers to weaponize publicly available information against known vulnerable targets.

Product Status Requires Careful Verification

The vulnerability record and related product references have undergone revisions.

Early information listed Red Hat Single Sign-On 7 as unaffected and referenced the Red Hat JBoss Enterprise Application Platform Expansion Pack as affected. Later revisions narrowed the visible product list, while other vulnerability databases may display incomplete or truncated information.

This creates a practical problem for defenders.

Do not rely on a single vulnerability database entry.

Security teams should verify their exact deployment against the vendor’s current security advisory, installed packages, container image tags, and supported product lifecycle information.

A vulnerability record is useful, but production inventory is more important.

The question administrators need to answer is not simply, “Does this CVE exist?”

The more important question is, “Is this exact software instance, version, configuration, realm, and authentication flow exposed to it?”

Immediate Action: Check Your Keycloak Environment

Administrators should begin by identifying every Keycloak deployment.

This includes standalone servers, Kubernetes deployments, OpenShift environments, container images, development clusters, staging systems, disaster recovery environments, and forgotten test instances.

Security incidents often begin with the system that nobody remembered was still running.

After identifying the deployments, teams should check the installed versions and compare them against the fixed releases.

They should also determine whether the Forgot password feature is enabled in every realm.

If an immediate upgrade is not possible, disabling the feature can provide a temporary reduction in exposure.

However, mitigation should not become a permanent substitute for patching.

Deep Analysis

The following Linux and container-oriented commands can help administrators begin investigating a Keycloak environment. Commands should be adapted to the organization’s deployment architecture and change-management procedures.

Check the Local Keycloak Version

/opt/keycloak/bin/kc.sh --version

If Keycloak is installed in a different directory, administrators can locate the installation:

sudo find / -type f -name kc.sh 2>/dev/null

Then check the version:

/path/to/kc.sh --version

Check Running Keycloak Processes

ps aux | grep -i keycloak

For a cleaner result:

pgrep -a -f keycloak

This can help identify unexpected or forgotten standalone instances.

Inspect Running Containers

For Docker-based deployments:

docker ps --format "table {{.Names}}    {{.Image}}  {{.Status}}"

To inspect the exact image:

docker inspect <container_name> --format '{{.Config.Image}}'

Inspect Kubernetes Deployments

Administrators can search for Keycloak workloads:

kubectl get pods -A | grep -i keycloak

Then inspect the deployed image:

kubectl get deployment -A -o jsonpath='{range .items[]}{.metadata.namespace}{"  "}{.metadata.name}{"    "}{.spec.template.spec.containers[].image}{"
"}{end}' | grep -i keycloak

Review Operator Resources

For environments using an operator:

kubectl get operators -A | grep -i keycloak

Administrators can also inspect custom resources:

kubectl get keycloaks -A

The exact resource names may differ depending on the deployed operator version.

Identify Exposed Authentication Endpoints

Security teams can inspect externally exposed services:

kubectl get svc -A | grep -i keycloak

For a specific namespace:

kubectl get ingress -n <namespace>

The goal is to understand whether password recovery endpoints are reachable from the public internet or restricted to internal networks.

Search Logs for Password Reset Activity

Administrators can inspect recent logs for password reset activity:

journalctl -u keycloak --since "7 days ago" | grep -i "reset|forgot|password"

For containers:

docker logs <container_name> 2>&1 | grep -i "reset|forgot|password"

For Kubernetes:

kubectl logs -n <namespace> <pod_name> --since=168h | grep -i "reset|forgot|password"

Unusual spikes in recovery activity, repeated requests against multiple accounts, or suspicious transitions should be investigated.

Review Realm Configuration

Administrators should review every realm instead of checking only the primary realm.

Where administrative APIs and appropriate credentials are available, configuration can be exported or inspected for password recovery settings.

The central defensive question is simple:

Is the forgotten-password functionality enabled anywhere it does not absolutely need to be?

If the answer is yes and the environment remains vulnerable, that realm should be prioritized for mitigation or patching.

Monitor for Unexpected Administrative Changes

Security teams should also review authentication and administrative events:

grep -RniE "admin|password|reset|credential" /var/log/keycloak/ 2>/dev/null | tail -n 200

Organizations should correlate suspicious events with identity provider logs, reverse proxy logs, SIEM alerts, and account activity records.

A password reset followed immediately by an administrative login should be treated as a high-priority investigation.

Verify the Upgrade

After applying updates, confirm the running version:

/opt/keycloak/bin/kc.sh --version

For container environments:

docker inspect <container_name> --format '{{.Config.Image}}'

For Kubernetes:

kubectl get pods -n <namespace> -o wide

A successful package upgrade does not guarantee that the old container has stopped running. Always verify the actual running workload.

What Undercode Say:

CVE-2026-18963 is a reminder that identity security failures can be more dangerous than ordinary application vulnerabilities.

The affected component is not simply another service running in the environment.

Keycloak may be responsible for deciding who is trusted across multiple systems.

That makes a weakness in password recovery a potential infrastructure-level problem.

The CVSS score of 9.1 reflects more than a theoretical software bug.

The dangerous element is the combination of remote reachability, lack of authentication, and the possibility of taking over arbitrary accounts.

Attackers generally look for the shortest path to valuable access.

A vulnerable password reset flow could become exactly that path.

The attacker does not necessarily need to steal credentials.

They may not need to deploy malware.

They may not need to convince a victim to click anything.

If the authentication workflow itself can be manipulated, the identity platform may perform the most valuable part of the attack for them.

This is why state validation deserves more attention in authentication security.

Developers often focus heavily on cryptography and token signing.

Those controls are important.

But a perfectly signed token provides little protection if an application can accidentally reach a privileged state without requiring that token.

Authentication flows should be treated as strict state machines.

Every transition must have a reason.

Every transition must verify its prerequisites.

A password update should never become reachable simply because a request claims that the previous validation step occurred.

The server must independently confirm that the required authorization state exists.

Another important issue is the centralization of modern identity infrastructure.

Single sign-on improves usability.

It reduces password fatigue.

It simplifies administration.

But centralization also concentrates risk.

One identity platform can become a single point of failure for an entire organization.

The more applications connected to Keycloak, the greater the potential impact of a successful compromise.

This means organizations should classify identity providers as crown-jewel infrastructure.

They should receive rapid patching.

They should have strong logging.

They should be monitored continuously.

Administrative accounts should be separated from ordinary user accounts whenever possible.

Multi-factor authentication should protect privileged access.

Password recovery functionality should be enabled only when operationally necessary.

Organizations should also consider how quickly they can disable risky authentication features during an emergency.

The existence of a temporary mitigation is valuable.

But emergency mitigation procedures should be documented before a critical CVE appears.

A security team should not be discovering its realm configuration for the first time during an active incident.

The uncertainty surrounding the exact exploitability conditions is also important.

Not every enabled feature necessarily produces identical exposure.

Different realms may use customized authentication flows.

Different deployments may have additional controls.

However, uncertainty is not a reason to delay action.

The safest approach is to identify vulnerable versions, inspect every realm, reduce exposure, and install the fixed release.

There is another lesson here for vulnerability management.

A database entry alone is never enough.

Security teams must understand the actual environment.

Package inventory matters.

Container inventory matters.

Operator versions matter.

Configuration matters.

Internet exposure matters.

An organization can have the same software as another organization while facing a completely different level of risk because the deployment architecture is different.

For Keycloak administrators, the most important response is therefore not panic.

It is disciplined verification.

Find every instance.

Check every version.

Inspect every realm.

Disable the vulnerable feature where necessary.

Patch the software.

Verify the running workloads.

Monitor authentication activity after the update.

The broader cybersecurity lesson is even more significant.

Attackers increasingly target the systems that control access rather than attacking every protected service individually.

Identity providers, authentication gateways, federation services, and administrative platforms are becoming strategic targets.

Defending the front door is no longer enough.

Organizations must also defend the system that manufactures the keys.

✅ Confirmed: The article states that Red Hat and the Keycloak project released fixes for CVE-2026-18963, with upstream Keycloak 26.7.2 and updated Red Hat build releases identified as fixed versions.

✅ Confirmed: The vulnerability is described as a critical password recovery weakness involving improper state validation, with potential impact including unauthorized password resets and account takeover.

❌ Not established: The available information does not confirm that the vulnerability has been exploited in the wild, and it does not clearly establish whether every realm with forgotten-password functionality enabled is exploitable under every configuration.

Prediction

(+1) Keycloak administrators and enterprise identity teams are likely to accelerate patching of authentication infrastructure as CVE-2026-18963 demonstrates how a weakness in password recovery can potentially become an account takeover path.

Security vendors and enterprise defenders may increase monitoring of password-reset endpoints and abnormal authentication state transitions.

More organizations may review whether password recovery features are necessary across every realm and tenant.

Public technical analysis of the vulnerability could increase the risk of exploitation attempts against organizations that delay updates.

Older container images, forgotten test environments, and unmanaged identity servers may become the most attractive targets because they are more likely to remain unpatched.

The most important prediction is simple: identity infrastructure will continue to attract attackers because compromising the system that controls access can be far more valuable than compromising a single application.

▶️ Related Video (76% Match):

🕵️‍📝Let’s dive deep and fact‑check.

🎓 Live Courses & Certifications:

Join Undercode Academy for Verified Certifications

🚀 Request a Custom Project:

Secure, high-velocity infrastructure and disruptive technological engineering. Contact our engineering team for high-tier development and proprietary systems:
[email protected]
💎 Smart Architecture | 🛡️ Secure by Design | ⭐ Trusted by Thousands

References:

Reported By: thehackernews.com
Extra Source Hub (Possible Sources for article):
https://www.digitaltrends.com
Wikipedia
OpenAi & Undercode AI

Image Source:

Unsplash
Undercode AI DI v2

🔐JOIN OUR CYBER WORLD [ CVE News • HackMonitor • UndercodeNews ]

💬 Whatsapp | 💬 Telegram

📢 Follow UndercodeNews & Stay Tuned:

𝕏 formerly Twitter 🐦 | @ Threads | 🔗 Linkedin | 🦋BlueSky | 🐘Mastodon | 📺Youtube