Skip to content
Fencer Vulns
high 7.1

CVE-2021-3461 json

Keycloak insufficient session expiration

published 2022-04-01 4 y ago modified 2026-06-17 4 mo ago also GHSA-cm29-6wx7-p874 , EUVD-2022-1709

cvss
7.1
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.3%
EPSS 0.3% chance of exploitation in 30 days, percentile 22%
public exploits
0
none known

Summary

A flaw was found in keycloak where keycloak may fail to logout user session if the logout request comes from external SAML identity provider and Principal Type is set to Attribute [Name].

Patch / fix

  • maven org.keycloak:keycloak-parent 14.0.0
  • rh-sso7-keycloak red hat single sign on 7 9.0.13-1.redhat_00006.1.el8sso
  • rh-sso7-keycloak-server red hat single sign on 7 9.0.13-1.redhat_00006.1.el8sso
  • rh-sso7-keycloak red hat single sign on 7 9.0.13-1.redhat_00006.1.el7sso
  • rh-sso7-keycloak-server red hat single sign on 7 9.0.13-1.redhat_00006.1.el7sso
  • rh-sso7-keycloak red hat single sign on 7 9.0.13-1.redhat_00006.1.el6sso
  • rh-sso7-keycloak-server red hat single sign on 7 9.0.13-1.redhat_00006.1.el6sso

red hat advisories RHSA-2021:2065RHSA-2021:2064RHSA-2021:2063

  • keycloak Arch Linux 13.0.1-1

arch linux advisories AVG-1994

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2021-3461 updated cvss 7.1

keycloak: Backchannel logout not working when Principal Type is set to Attribute Name for external SAML IDP

  • Red Hat Single Sign-On 7.4 for RHEL 6 Server rh-sso7-keycloak 9.0.13-1.redhat_00006.1.el6sso, rh-sso7-keycloak-server 9.0.13-1.redhat_00006.1.el6sso
    fixed: vendor fix RHSA-2021:2063
  • Red Hat Single Sign-On 7.4 for RHEL 7 Server rh-sso7-keycloak 9.0.13-1.redhat_00006.1.el7sso, rh-sso7-keycloak-server 9.0.13-1.redhat_00006.1.el7sso
    fixed: vendor fix RHSA-2021:2064
  • Red Hat Single Sign-On 7.4 for RHEL 8 rh-sso7-keycloak 9.0.13-1.redhat_00006.1.el8sso, rh-sso7-keycloak-server 9.0.13-1.redhat_00006.1.el8sso
    fixed: vendor fix RHSA-2021:2065
  • Red Hat Single Sign-On 7.4.7
    fixed: vendor fix RHSA-2021:2070
  • Red Hat Decision Manager 7 keycloak keycloak Red Hat Fuse 7 keycloak keycloak Red Hat Integration Camel K 1 keycloak keycloak Red Hat OpenShift Application Runtimes keycloak keycloak Red Hat Process Automation 7 keycloak keycloak Red Hat support for Spring Boot keycloak keycloak
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

0.30% chance of exploitation in the next 30 days, higher than 22% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.1 7.1 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
NVD 2.0 3.3 AV:L/AC:M/Au:N/C:P/I:P/A:N
GitHub 3.1 7.1 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Affected packages

ecosystem package affected fixed in
maven org.keycloak:keycloak-parent
<14.0.0
14.0.0

Affected products

  • n/a keycloak

Classification

Weakness
  • CWE-613 DEPRECATED: Insufficient Session Expiration

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.