Keycloak: exposure of sensitive information in pushed authorization requests (par) kc_restart cookie
Summary
| CVE | CVE-2024-4540 |
|---|---|
| State | PUBLISHED |
| Assigner | redhat |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2024-06-03 16:15:08 UTC |
| Updated | 2026-10-09 17:16:39 UTC |
| Description | A flaw was found in Keycloak in OAuth 2.0 Pushed Authorization Requests (PAR). Client-provided parameters were found to be included in plain text in the KC_RESTART cookie returned by the authorization server's HTTP response to a `request_uri` authorization request, possibly leading to an information disclosure vulnerability. |
Risk And Classification
Primary CVSS: v3.1 7.5 HIGH from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS: 0.005510000 probability, percentile 0.444600000 (date 2026-10-11)
Problem Types: CWE-312 | CWE-312 Cleartext Storage of Sensitive Information
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 7.5 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| 3.1 | CNA | CVSS | 7.5 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
NoneAvailability
NoneCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Red Hat | Red Hat Build Of Keycloak | Not specified | Not specified |
| CNA | Red Hat | Red Hat Build Of Keycloak | Not specified | Not specified |
| CNA | Red Hat | Red Hat Build Of Keycloak 22 | unaffected 22.0.11-2 * rpm | Not specified |
| CNA | Red Hat | Red Hat Build Of Keycloak 22 | unaffected 22-15 * rpm | Not specified |
| CNA | Red Hat | Red Hat Build Of Keycloak 22 | unaffected 22-18 * rpm | Not specified |
| CNA | Red Hat | Red Hat Build Of Keycloak 24 | unaffected 24.0.5-2 * rpm | Not specified |
| CNA | Red Hat | Red Hat Build Of Keycloak 24 | unaffected 24-10 * rpm | Not specified |
| CNA | Red Hat | Red Hat Build Of Keycloak 24 | unaffected 24-10 * rpm | Not specified |
| CNA | Red Hat | Red Hat Single Sign-On 7 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Single Sign-On 7.6 For RHEL 7 | unaffected 0:18.0.14-1.redhat_00001.1.el7sso * rpm | Not specified |
| CNA | Red Hat | Red Hat Single Sign-On 7.6 For RHEL 8 | unaffected 0:18.0.14-1.redhat_00001.1.el8sso * rpm | Not specified |
| CNA | Red Hat | Red Hat Single Sign-On 7.6 For RHEL 9 | unaffected 0:18.0.14-1.redhat_00001.1.el9sso * rpm | Not specified |
| CNA | Red Hat | RHEL-8 Based Middleware Containers | unaffected 7.6-49 * rpm | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| access.redhat.com/errata/RHSA-2024:3566 | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | |
| access.redhat.com/errata/RHSA-2024:3568 | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | |
| bugzilla.redhat.com/show_bug.cgi | af854a3a-2127-422b-91ae-364da2661108 | bugzilla.redhat.com | |
| access.redhat.com/errata/RHSA-2024:3573 | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | |
| access.redhat.com/errata/RHSA-2024:3575 | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | |
| access.redhat.com/errata/RHSA-2024:3576 | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | |
| access.redhat.com/errata/RHSA-2024:3574 | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | |
| access.redhat.com/errata/RHSA-2024:3572 | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | |
| access.redhat.com/errata/RHSA-2024:3570 | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | |
| access.redhat.com/security/cve/CVE-2024-4540 | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | |
| access.redhat.com/errata/RHSA-2024:3567 | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Red Hat would like to thank Manuel Schallar for reporting this issue. (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2024-05-06T00:00:00.000Z | Reported to Red Hat. |
| CNA | 2024-06-03T00:00:00.000Z | Made public. |
Workarounds
CNA: Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
There are currently no legacy QID mappings associated with this CVE.