CyberSecBulletin
CVE-2026-9704NVD status: Modified

Red Hat build of Keycloak 26.4: Improper Validation of Specified Quantity in Input

CVE-2026-9704 is a high-severity improper validation of specified quantity in input vulnerability in Red Hat build of Keycloak 26.4 from Red Hat, with a CVSS 3.1 base score of 8.8 out of 10. It can be exploited remotely over the network by an attacker with a low-privileged account, without any action from a user. There is no confirmed exploitation so far. EPSS estimates a 0.32% chance of exploitation within 30 days, which is low compared with other CVEs.

Next patch cycle

High severity with no evidence of exploitation so far.

What to do

  1. Check which version of Red Hat build of Keycloak 26.4 you run against the affected versions below, and install the vendor's latest release.
  2. Read the advisory on access.redhat.com for workarounds and exact fixed builds.

Affected products and versions

VendorProductAffected versionsFixed in
Red HatRed Hat build of Keycloak 26.4Not specified in the recordNot stated
Red HatRed Hat build of Keycloak 26.4.13Not specified in the recordNot stated
Red HatRed Hat build of Keycloak 26.6Not specified in the recordNot stated
Red HatRed Hat build of Keycloak 26.6.3Not specified in the recordNot stated
Red HatBuild Of KeycloakNot specified in the recordNot stated

Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.

How the severity score breaks down

Attack vector
NetworkCan be exploited remotely over a network, including the internet.
Attack complexity
LowNo special conditions are needed; the attack works reliably.
Privileges required
LowA basic user account is enough.
User interaction
NoneNo action by a victim is required.
Scope
UnchangedImpact stays within the vulnerable component.
Confidentiality
HighAll data handled by the component can be read.
Integrity
HighData or code can be modified at will.
Availability
HighThe component can be taken down completely.

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. Scored by NVD.

Scoring systemScoreSeverityScored by
CVSS 3.16.8MediumCNA (redhat.com)
CVSS 3.18.8HighNVD

Official description

A flaw was found in Keycloak. An authenticated user with low privileges can exploit this vulnerability by sending an oversized subject_token JSON Web Token (JWT) to the TokenEndpoint. When the token exceeds a 4000-character limit, it is silently dropped, causing the system to fall back to client credentials. This allows the user to gain the permissions of the client's service account, leading to privilege escalation.

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

The underlying weakness: Improper Validation of Specified Quantity in Input

The product receives input that is expected to specify a quantity (such as size or length), but it does not validate or incorrectly validates that the quantity has the required properties.

More Improper Validation of Specified Quantity in Input vulnerabilities (CWE-1284)

Timeline

  1. CVE record published.
  2. CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: total).
  3. Record last changed materially (score, affected products, status or references).

References

Other vulnerabilities in Red Hat build of Keycloak 26.4

All Red Hat build of Keycloak 26.4 vulnerabilities

Recent Improper Validation of Specified Quantity in Input vulnerabilities

Spotted an error? Tell us.