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.
High severity with no evidence of exploitation so far.
What to do
- 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.
- Read the advisory on access.redhat.com for workarounds and exact fixed builds.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Red Hat | Red Hat build of Keycloak 26.4 | Not specified in the record | Not stated |
| Red Hat | Red Hat build of Keycloak 26.4.13 | Not specified in the record | Not stated |
| Red Hat | Red Hat build of Keycloak 26.6 | Not specified in the record | Not stated |
| Red Hat | Red Hat build of Keycloak 26.6.3 | Not specified in the record | Not stated |
| Red Hat | Build Of Keycloak | Not specified in the record | Not 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 system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 6.8 | Medium | CNA (redhat.com) |
| CVSS 3.1 | 8.8 | High | NVD |
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
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Advisories
- access.redhat.com/security/cve/CVE-2026-9704Mitigation
- bugzilla.redhat.com/show_bug.cgi?id=2481877Issue Tracking
Other references
Other vulnerabilities in Red Hat build of Keycloak 26.4
- 7.1 High severity
- 8.0 High severity
- 7.4 High severity
- 8.1 High severity
- 7.4 High severity
- 7.5 High severity
Recent Improper Validation of Specified Quantity in Input vulnerabilities
- 7.5 High severity
- 7.5 High severity
- 7.5 High severity
- 7.5 High severity
- 7.5 High severity
- 8.1 High severity
Spotted an error? Tell us.