{"answers":{"affected":"2 open source packages ship an affected version, including org.keycloak:keycloak-services.","exploited":"There is no known exploitation of CVE-2024-4540 in the wild and no public exploit code.","fix":"Upgrade org.keycloak:keycloak-services to 24.0.5 or later.","what":"CVE-2024-4540 is a high-severity vulnerability in Red Hat RHEL-8 based Middleware Containers, published on 3 Jun 2024."},"fix_prompt":"Check this codebase for CVE-2024-4540 and fix it if it is affected.\n\nWhat it is: CVE-2024-4540 is a high-severity vulnerability in Red Hat RHEL-8 based Middleware Containers, published on 3 Jun 2024. \nExploitation: There is no known exploitation of CVE-2024-4540 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.keycloak:keycloak-services (Maven): affected all versions; fixed in 24.0.5\n- org.keycloak:keycloak-services (Maven): affected all versions; fixed in 24.0.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-4540/ (Markdown: https://insights.sbomify.com/CVE-2024-4540/index.md)","id":"CVE-2024-4540","markdown":"https://insights.sbomify.com/CVE-2024-4540/index.md","name":"CVE-2024-4540","record":{"aliases":["GHSA-69fp-7c8p-crjr","RHSA-2024:3566","RHSA-2024:3567","RHSA-2024:3568"],"analysis":null,"analysis_generated_by":null,"assigner":"redhat","cpe":[],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-312","name":"Cleartext Storage of Sensitive Information"}],"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.","ecosystems":["Maven","Red Hat:red_hat_single_sign_on:7.6::el7","Red Hat:red_hat_single_sign_on:7.6::el8","Red Hat:red_hat_single_sign_on:7.6::el9"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Keycloak: exposure of sensitive information in pushed authorization requests (par) kc_restart cookie","id":"CVE-2024-4540","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":null,"year":"2024"},"n_packages":8,"n_references":11,"next":{"headline":"Custom Product List Table \u003c= 3.0.0 - Cross-Site Request Forgery","id":"CVE-2024-4541"},"packages":[{"ecosystem":"Maven","fixed":["24.0.5"],"introduced":["0"],"last_affected":[],"package":"org.keycloak:keycloak-services","purl":null,"source":"GHSA-69fp-7c8p-crjr"},{"ecosystem":"Maven","fixed":["24.0.5"],"introduced":["0"],"last_affected":[],"package":"org.keycloak:keycloak-services","purl":"pkg:maven/org.keycloak/keycloak-services","source":"GHSA-69fp-7c8p-crjr"},{"ecosystem":"Red Hat:red_hat_single_sign_on:7.6::el7","fixed":["0:18.0.14-1.redhat_00001.1.el7sso"],"introduced":["0"],"last_affected":[],"package":"rh-sso7-keycloak","purl":"pkg:rpm/redhat/rh-sso7-keycloak","source":"RHSA-2024:3566"},{"ecosystem":"Red Hat:red_hat_single_sign_on:7.6::el7","fixed":["0:18.0.14-1.redhat_00001.1.el7sso"],"introduced":["0"],"last_affected":[],"package":"rh-sso7-keycloak-server","purl":"pkg:rpm/redhat/rh-sso7-keycloak-server","source":"RHSA-2024:3566"},{"ecosystem":"Red Hat:red_hat_single_sign_on:7.6::el8","fixed":["0:18.0.14-1.redhat_00001.1.el8sso"],"introduced":["0"],"last_affected":[],"package":"rh-sso7-keycloak","purl":"pkg:rpm/redhat/rh-sso7-keycloak","source":"RHSA-2024:3567"},{"ecosystem":"Red Hat:red_hat_single_sign_on:7.6::el8","fixed":["0:18.0.14-1.redhat_00001.1.el8sso"],"introduced":["0"],"last_affected":[],"package":"rh-sso7-keycloak-server","purl":"pkg:rpm/redhat/rh-sso7-keycloak-server","source":"RHSA-2024:3567"},{"ecosystem":"Red Hat:red_hat_single_sign_on:7.6::el9","fixed":["0:18.0.14-1.redhat_00001.1.el9sso"],"introduced":["0"],"last_affected":[],"package":"rh-sso7-keycloak","purl":"pkg:rpm/redhat/rh-sso7-keycloak","source":"RHSA-2024:3568"},{"ecosystem":"Red Hat:red_hat_single_sign_on:7.6::el9","fixed":["0:18.0.14-1.redhat_00001.1.el9sso"],"introduced":["0"],"last_affected":[],"package":"rh-sso7-keycloak-server","purl":"pkg:rpm/redhat/rh-sso7-keycloak-server","source":"RHSA-2024:3568"}],"prev":{"headline":"Allocation of Resources Without Limits or Throttling in GitLab","id":"CVE-2024-4539"},"products":["RHEL-8 based Middleware Containers","Red Hat Build of Keycloak","Red Hat Single Sign-On 7","Red Hat Single Sign-On 7.6 for RHEL 7","Red Hat Single Sign-On 7.6 for RHEL 8","Red Hat Single Sign-On 7.6 for RHEL 9","Red Hat build of Keycloak 22","Red Hat build of Keycloak 24"],"published":"2024-06-03","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-09","vendors":["Red Hat"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2024-4540/"}