CVE-2022-2668
Java vulnerability analysis and mitigation

Overview

A security vulnerability (CVE-2022-2668) was discovered in Keycloak that allows arbitrary Javascript to be uploaded for the SAML protocol mapper even when the UPLOAD_SCRIPTS feature is disabled. The vulnerability was disclosed on August 5, 2022, and affects Keycloak installations, including Red Hat Single Sign-On 7.6 implementations (NVD, CVE Mitre).

Technical details

The vulnerability specifically relates to the SAML protocol mapper functionality in Keycloak, where the security control for script uploads could be bypassed. This security issue persists even when the UPLOAD_SCRIPTS feature is explicitly disabled, indicating a bypass of intended security controls (Red Hat Advisory).

Impact

The vulnerability could potentially allow attackers to upload and execute arbitrary JavaScript code through the SAML protocol mapper, bypassing the intended security restrictions. This could lead to unauthorized script execution within the Keycloak environment (Debian Tracker).

Mitigation and workarounds

Red Hat has released security updates to address this vulnerability in Red Hat Single Sign-On 7.6.1. The fix is included in a comprehensive security update that addresses multiple vulnerabilities. Users are advised to upgrade to the latest version of the software (Red Hat Advisory).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-43814MEDIUM6.9
  • JavaJava
  • com.liferay:com.liferay.portal.security.audit.event.generators.user.management
NoYesSep 22, 2025
CVE-2025-59822MEDIUM6.3
  • JavaJava
  • org.http4s:http4s-ember-core_2.12
NoYesSep 23, 2025
CVE-2025-43810MEDIUM5.3
  • JavaJava
  • cpe:2.3:a:liferay:liferay_portal
NoYesSep 22, 2025
CVE-2025-4760MEDIUM4.8
  • JavaJava
  • org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.api
NoYesSep 23, 2025
CVE-2024-6429MEDIUM4.3
  • JavaJava
  • org.wso2.identity.apps:authentication-portal
NoYesSep 23, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management