# CVE-2021-3461: Keycloak insufficient session expiration

- Severity: High 7.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2022-04-01T22:17:45.000Z
- Modified: 2026-06-17T04:05:08.897Z
- Also known as: GHSA-cm29-6wx7-p874
- Weaknesses: CWE-613
- Assigned by: redhat

## Description

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].

(As written by CVE List.)

## Affected

- keycloak: rh-sso7-keycloak 9.0.13
- org.keycloak:keycloak-parent (Maven): before 14.0.0
- redhat keycloak: 9.0.13
- redhat single_sign-on: 7.0; 7.4; 7.4.7

## Every score

- GitHub: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- NVD: CVSS:2.0 3.3 Low `AV:L/AC:M/Au:N/C:P/I:P/A:N`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1941565> (issue-tracking, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3461> (advisory)
- <https://github.com/keycloak/keycloak/issues/11203> (web)

## Sources

- CVE List: [CVE-2021-3461](https://www.cve.org/CVERecord?id=CVE-2021-3461), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-cm29-6wx7-p874](https://github.com/advisories/GHSA-cm29-6wx7-p874), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2021-3461](https://nvd.nist.gov/vuln/detail/CVE-2021-3461), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3461 · Whole record: https://cve.day/CVE-2021-3461.json · Rebuilt by cve.day 2026-11-25T22:58:07.330Z
