Skip to content
Fencer Vulns
high 7.2

CVE-2022-2668 json

Keycloak SAML javascript protocol mapper: Uploading of scripts through admin console

published 2022-08-05 4 y ago modified 2026-06-17 4 mo ago also GHSA-wf7g-7h6h-678v , EUVD-2022-6962

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

Summary

An issue was discovered in Keycloak that allows arbitrary Javascript to be uploaded for the SAML protocol mapper even if the UPLOAD_SCRIPTS feature is disabled

Patch / fix

  • maven org.keycloak:keycloak-parent 19.0.2
  • rh-sso7 red hat single sign on 7.6 1-5.el9sso
  • rh-sso7-runtime red hat single sign on 7.6 1-5.el9sso
  • rh-sso7-keycloak red hat single sign on 7.6 18.0.3-1.redhat_00001.1.el9sso
  • rh-sso7-keycloak-server red hat single sign on 7.6 18.0.3-1.redhat_00001.1.el9sso
  • rh-sso7-javapackages-tools red hat single sign on 7.6 6.0.0-7.el9sso
  • rh-sso7-python3-javapackages red hat single sign on 7.6 6.0.0-7.el9sso
  • rh-sso7-javapackages-filesystem red hat single sign on 7.6 6.0.0-7.el9sso
  • rh-sso7-keycloak red hat single sign on 7.6 18.0.3-1.redhat_00001.1.el7sso

red hat advisories RHSA-2022:7411RHSA-2022:7409RHSA-2022:7410RHSA-2022:6783RHSA-2022:6782

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-2022-2668 updated cvss 6.4

keycloak: Uploading of SAML javascript protocol mapper scripts through the admin console

  • Red Hat Single Sign-On 7
    fixed: vendor fix RHSA-2022:6787
  • Red Hat Single Sign-On 7.5 for RHEL 7 Server rh-sso7-keycloak 15.0.8-1.redhat_00001.1.el7sso, rh-sso7-keycloak-server 15.0.8-1.redhat_00001.1.el7sso
    fixed: vendor fix RHSA-2022:6782
  • Red Hat Single Sign-On 7.5 for RHEL 8 rh-sso7-keycloak 15.0.8-1.redhat_00001.1.el8sso, rh-sso7-keycloak-server 15.0.8-1.redhat_00001.1.el8sso
    fixed: vendor fix RHSA-2022:6783
  • Red Hat Single Sign-On 7.6 for RHEL 7 Server rh-sso7-keycloak 18.0.3-1.redhat_00001.1.el7sso, rh-sso7-keycloak-server 18.0.3-1.redhat_00001.1.el7sso
    fixed: vendor fix RHSA-2022:7409
  • Red Hat Single Sign-On 7.6 for RHEL 8 rh-sso7-keycloak 18.0.3-1.redhat_00001.1.el8sso, rh-sso7-keycloak-server 18.0.3-1.redhat_00001.1.el8sso
    fixed: vendor fix RHSA-2022:7410
  • Red Hat Single Sign-On 7.6 for RHEL 9 rh-sso7 1-5.el9sso, rh-sso7-runtime 1-5.el9sso, rh-sso7-javapackages-tools 6.0.0-7.el9sso, rh-sso7-python3-javapackages 6.0.0-7.el9sso, rh-sso7-javapackages-filesystem 6.0.0-7.el9sso, rh-sso7-keycloak 18.0.3-1.redhat_00001.1.el9sso, +1 more
    fixed: vendor fix RHSA-2022:7411
  • Red Hat Single Sign-On 7.6.1
    fixed: vendor fix RHSA-2022:7417

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

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

CVSS scores

assigned by version score vector
NVD 3.1 7.2 CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
GitHub 3.1 7.2 CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Affected packages

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

Affected products

  • n/a keycloak

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.