Red Hat Keycloak before version 2.5.1 has an implementation of HMAC verification for JWS tokens that uses a method that runs in non-constant
Red Hat Keycloak before version 2.5.1 has an implementation of HMAC verification for JWS tokens that uses a method that runs in non-constant time, potentially leaving the application vulnerable to timing attacks.
- Published
- Mar 12, 2018
- Updated
- Jun 16, 2026
- EPSS
- 2.0% · 80th percentile
- CWE
- CWE-200
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
24
Monitor
Low priority for now.
- CVSS
- 23 / 40 · 5.9 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 2.0%
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| redhat | keycloak | cpe:2.3:a:redhat:keycloak |
| redhat | single sign on | cpe:2.3:a:redhat:single_sign_on |
| redhat | enterprise linux server | cpe:2.3:o:redhat:enterprise_linux_server |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- redhat keycloakbefore 2.5.1
- redhat single sign on7.1
- redhat single sign on7.2
Versions reported by the vendor
Affected version ranges reported by the assigning authority (redhat). Independent of NVD's CPE analysis and usually ahead of it.
Red Hat, Inc. keycloak
- 2.5.1affected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Maven | org.keycloak:keycloak-core | before 2.5.1 | 2.5.1 |
| Red Hat:red_hat_single_sign_on:7::el6 | rh-sso7 | before 0:1-2.jbcs.el6 | 0:1-2.jbcs.el6 |
| Red Hat:red_hat_single_sign_on:7::el6 | rh-sso7-freemarker | before 0:2.3.23-1.redhat_2.2.jbcs.el6 | 0:2.3.23-1.redhat_2.2.jbcs.el6 |
| Red Hat:red_hat_single_sign_on:7::el6 | rh-sso7-javapackages-tools | before 0:3.4.1-5.15.3.jbcs.el6 | 0:3.4.1-5.15.3.jbcs.el6 |
| Red Hat:red_hat_single_sign_on:7::el6 | rh-sso7-keycloak | before 0:2.5.5-2.Final_redhat_1.1.jbcs.el6 | 0:2.5.5-2.Final_redhat_1.1.jbcs.el6 |
| Red Hat:red_hat_single_sign_on:7::el6 | rh-sso7-keycloak-server | before 0:2.5.5-2.Final_redhat_1.1.jbcs.el6 | 0:2.5.5-2.Final_redhat_1.1.jbcs.el6 |
| Red Hat:red_hat_single_sign_on:7::el6 | rh-sso7-libunix-dbus-java | before 0:0.8.0-2.jbcs.el6 | 0:0.8.0-2.jbcs.el6 |
| Red Hat:red_hat_single_sign_on:7::el6 | rh-sso7-libunix-dbus-java-debuginfo | before 0:0.8.0-2.jbcs.el6 | 0:0.8.0-2.jbcs.el6 |
| Red Hat:red_hat_single_sign_on:7::el6 | rh-sso7-libunix-dbus-java-devel | before 0:0.8.0-2.jbcs.el6 | 0:0.8.0-2.jbcs.el6 |
| Red Hat:red_hat_single_sign_on:7::el6 | rh-sso7-liquibase | before 0:3.4.1-2.redhat_2.1.jbcs.el6 | 0:3.4.1-2.redhat_2.1.jbcs.el6 |
| Red Hat:red_hat_single_sign_on:7::el6 | rh-sso7-liquibase-core | before 0:3.4.1-2.redhat_2.1.jbcs.el6 | 0:3.4.1-2.redhat_2.1.jbcs.el6 |
| Red Hat:red_hat_single_sign_on:7::el6 | rh-sso7-python-javapackages | before 0:3.4.1-5.15.3.jbcs.el6 | 0:3.4.1-5.15.3.jbcs.el6 |
| Red Hat:red_hat_single_sign_on:7::el6 | rh-sso7-runtime | before 0:1-2.jbcs.el6 | 0:1-2.jbcs.el6 |
| Red Hat:red_hat_single_sign_on:7::el6 | rh-sso7-twitter4j | before 0:4.0.4-1.redhat_3.1.jbcs.el6 | 0:4.0.4-1.redhat_3.1.jbcs.el6 |
| Red Hat:red_hat_single_sign_on:7::el6 | rh-sso7-twitter4j-core | before 0:4.0.4-1.redhat_3.1.jbcs.el6 | 0:4.0.4-1.redhat_3.1.jbcs.el6 |
| Red Hat:red_hat_single_sign_on:7::el6 | rh-sso7-zxing | before 0:3.2.1-1.redhat_4.1.jbcs.el6 | 0:3.2.1-1.redhat_4.1.jbcs.el6 |
| Red Hat:red_hat_single_sign_on:7::el6 | rh-sso7-zxing-core | before 0:3.2.1-1.redhat_4.1.jbcs.el6 | 0:3.2.1-1.redhat_4.1.jbcs.el6 |
| Red Hat:red_hat_single_sign_on:7::el6 | rh-sso7-zxing-javase | before 0:3.2.1-1.redhat_4.1.jbcs.el6 | 0:3.2.1-1.redhat_4.1.jbcs.el6 |
| Red Hat:red_hat_single_sign_on:7::el7 | rh-sso7 | before 0:1-2.jbcs.el7 | 0:1-2.jbcs.el7 |
| Red Hat:red_hat_single_sign_on:7::el7 | rh-sso7-freemarker | before 0:2.3.23-1.redhat_2.2.jbcs.el7 | 0:2.3.23-1.redhat_2.2.jbcs.el7 |
| Red Hat:red_hat_single_sign_on:7::el7 | rh-sso7-javapackages-tools | before 0:3.4.1-5.15.3.jbcs.el7 | 0:3.4.1-5.15.3.jbcs.el7 |
| Red Hat:red_hat_single_sign_on:7::el7 | rh-sso7-keycloak | before 0:2.5.5-2.Final_redhat_1.1.jbcs.el7 | 0:2.5.5-2.Final_redhat_1.1.jbcs.el7 |
| Red Hat:red_hat_single_sign_on:7::el7 | rh-sso7-keycloak-server | before 0:2.5.5-2.Final_redhat_1.1.jbcs.el7 | 0:2.5.5-2.Final_redhat_1.1.jbcs.el7 |
| Red Hat:red_hat_single_sign_on:7::el7 | rh-sso7-libunix-dbus-java | before 0:0.8.0-2.jbcs.el7 | 0:0.8.0-2.jbcs.el7 |
+11
Same product
redhat: all recordsOther highest-scoring records for the same primary product.
- CVE-2020-10770A flaw was found in Keycloak before 13.0.0, where it is possible to force the server to call out an unverified URL using the OIDC parameter 42Plan
- CVE-2022-1245A privilege escalation flaw was found in the token exchange feature of keycloak.39Monitor
- CVE-2019-14910A vulnerability was found in keycloak 7.x, when keycloak is configured with LDAP user federation and StartTLS is used instead of SSL/TLS fro39Monitor
- CVE-2022-3782keycloak: path traversal via double URL encoding.38Monitor
- CVE-2021-20195A flaw was found in keycloak in versions before 13.0.0.38Monitor
- CVE-2019-14837A flaw was found in keycloack before version 8.0.0.37Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Maven:org.keycloak:keycloak-core | 2.5.1 | Package registry (OSV) |
| red hat:rh-sso7 | 0:1-2.jbcs.el6 · Red Hat:red_hat_single_sign_on:7::el6 | Package registry (OSV) |
| red hat:rh-sso7-freemarker | 0:2.3.23-1.redhat_2.2.jbcs.el6 · Red Hat:red_hat_single_sign_on:7::el6 | Package registry (OSV) |
| red hat:rh-sso7-javapackages-tools | 0:3.4.1-5.15.3.jbcs.el6 · Red Hat:red_hat_single_sign_on:7::el6 | Package registry (OSV) |
| red hat:rh-sso7-keycloak | 0:2.5.5-2.Final_redhat_1.1.jbcs.el6 · Red Hat:red_hat_single_sign_on:7::el6 | Package registry (OSV) |
| red hat:rh-sso7-keycloak-server | 0:2.5.5-2.Final_redhat_1.1.jbcs.el6 · Red Hat:red_hat_single_sign_on:7::el6 | Package registry (OSV) |
| red hat:rh-sso7-libunix-dbus-java | 0:0.8.0-2.jbcs.el6 · Red Hat:red_hat_single_sign_on:7::el6 | Package registry (OSV) |
| red hat:rh-sso7-libunix-dbus-java-debuginfo | 0:0.8.0-2.jbcs.el6 · Red Hat:red_hat_single_sign_on:7::el6 | Package registry (OSV) |
| red hat:rh-sso7-libunix-dbus-java-devel | 0:0.8.0-2.jbcs.el6 · Red Hat:red_hat_single_sign_on:7::el6 | Package registry (OSV) |
| red hat:rh-sso7-liquibase | 0:3.4.1-2.redhat_2.1.jbcs.el6 · Red Hat:red_hat_single_sign_on:7::el6 | Package registry (OSV) |
| red hat:rh-sso7-liquibase-core | 0:3.4.1-2.redhat_2.1.jbcs.el6 · Red Hat:red_hat_single_sign_on:7::el6 | Package registry (OSV) |
| red hat:rh-sso7-python-javapackages | 0:3.4.1-5.15.3.jbcs.el6 · Red Hat:red_hat_single_sign_on:7::el6 | Package registry (OSV) |
| red hat:rh-sso7-runtime | 0:1-2.jbcs.el6 · Red Hat:red_hat_single_sign_on:7::el6 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- Special conditions such as timing or configuration are required.
If successful
- Confidentiality
- high · data can be read
- Integrity
- none
- Availability
- none
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- None
- Availability impact
- None
Weakness class (CWE)
CWE-200 · Exposure of Sensitive Information to an Unauthorized ActorCVSS vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
nvd-primary
Root cause
The extension requests broader permissions than its function needs and sends the data it collects out for purposes beyond its stated function.
The bug in code
The whole CWE-200 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
{ "permissions": ["tabs", "<all_urls>"], "background": { "service_worker": "analytics.js" }}Fixed
{ "permissions": ["activeTab"], "host_permissions": ["https://yildiz.example/*"]}Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- ExcavationCAPEC-116likelihood: High · Medium
- Subverting Environment Variable ValuesCAPEC-13likelihood: High · Very High
- FootprintingCAPEC-169likelihood: High · Very Low
- Exploiting Trust in ClientCAPEC-22likelihood: High · High
- FingerprintingCAPEC-224likelihood: High · Very Low
- ICMP Echo Request PingCAPEC-285likelihood: Medium · Low
- TCP SYN ScanCAPEC-287Low
- Enumerate Mail Exchange (MX) RecordsCAPEC-290Low
ATT&CK techniques
- System Service DiscoveryT1007
- System Network Configuration DiscoveryT1016
- Remote System DiscoveryT1018
- System Owner/User DiscoveryT1033
- Masquerading: Match Legitimate Name or LocationT1036.005
- Network Service ScanningT1046
- System Network Connections DiscoveryT1049
- Process DiscoveryT1057
- Permission Groups DiscoveryT1069
- System Information DiscoveryT1082
- File and Directory DiscoveryT1083
- Account DiscoveryT1087
- Multi-Factor Authentication InterceptionT1111
- Peripheral Device DiscoveryT1120
- System Time DiscoveryT1124
- Access Token Manipulation:Token Impersonation/TheftT1134.001
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- access.redhat.com/errata/RHSA-2017:0872
- rhn.redhat.com/errata/RHSA-2017-0876.html
- www.securityfocus.com/bid/97393
- www.securitytracker.com/id/1038180
- access.redhat.com/errata/RHSA-2017:0873
- bugzilla.redhat.com/show_bug.cgi?id=1412376
Vendor advisories and official records. Exploit/PoC links are deliberately left out.