---
id: CVE-2024-4540
title: A flaw was found in Keycloak in OAuth 2.0 Pushed Authorization Requests (PAR)
summary: >-
  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…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'
cwe:
  - CWE-312
published: '2024-06-03'
updated: '2026-10-09'
sourceUpdated: '2026-10-09T17:16:39.943'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-4540'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2024:3566'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:3567'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:3568'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:3570'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:3572'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:3573'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:3574'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:3575'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:3576'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/security/cve/CVE-2024-4540'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2279303'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:3566'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2024:3567'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2024:3568'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2024:3570'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2024:3572'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2024:3573'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2024:3574'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2024:3575'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2024:3576'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/security/cve/CVE-2024-4540'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2279303'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-4540.json
  - url: 'https://www.cve.org/CVERecord?id=CVE-2024-4540'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-4540'
tags:
  - nvd
  - csaf
  - vex
  - red-hat
  - cve.org
epss: 0.00551
epssPercentile: 0.45893
ingestedAt: '2026-10-09T18:07:39.401Z'
vendor: Red Hat
product: Red Hat build of Keycloak 22
affected:
  - single_sign_on_7_6_for_rhel_7_server
  - middleware_containers_for_openshift
  - single_sign_on_7_6_for_rhel 8
  - build_of_keycloak 22
  - build_of_keycloak 24
  - single_sign_on_7_6_for_rhel 9
  - build_of_keycloak
  - single_sign_on 7
patched:
  - single_sign_on_7_6_for_rhel_7_server
  - middleware_containers_for_openshift
  - single_sign_on_7_6_for_rhel 8
  - build_of_keycloak 22
  - build_of_keycloak 24
  - single_sign_on_7_6_for_rhel 9
  - build_of_keycloak
  - single_sign_on 7
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2024-06-03T16:13:25.347543Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **RHSA-2024:3566** · Red Hat · fixed in: Red Hat Single Sign-On 7.6 for RHEL 7 Server · released 2024-06-03 · [advisory](https://access.redhat.com/errata/RHSA-2024:3566)
- **RHSA-2024:3570** · Red Hat · fixed in: Middleware Containers for OpenShift · released 2024-06-03 · [advisory](https://access.redhat.com/errata/RHSA-2024:3570)
- **RHSA-2024:3567** · Red Hat · fixed in: Red Hat Single Sign-On 7.6 for RHEL 8 · released 2024-06-03 · [advisory](https://access.redhat.com/errata/RHSA-2024:3567)
- **RHSA-2024:3573** · Red Hat · fixed in: Red Hat build of Keycloak 22 · released 2024-06-03 · [advisory](https://access.redhat.com/errata/RHSA-2024:3573)
- **RHSA-2024:3576** · Red Hat · fixed in: Red Hat build of Keycloak 24 · released 2024-06-03 · [advisory](https://access.redhat.com/errata/RHSA-2024:3576)
- **RHSA-2024:3568** · Red Hat · fixed in: Red Hat Single Sign-On 7.6 for RHEL 9 · released 2024-06-03 · [advisory](https://access.redhat.com/errata/RHSA-2024:3568)
- **RHSA-2024:3574** · Red Hat · fixed in: Red Hat Build of Keycloak · released 2024-06-03 · [advisory](https://access.redhat.com/errata/RHSA-2024:3574)
- **RHSA-2024:3572** · Red Hat · fixed in: Red Hat Single Sign-On 7 · released 2024-06-03 · [advisory](https://access.redhat.com/errata/RHSA-2024:3572)
