CVE-2022-41931
Java vulnerability analysis and mitigation

Overview

xwiki-platform-icon-ui was found to be vulnerable to Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection'). The vulnerability, identified as CVE-2022-41931, was discovered in versions from 6.4-milestone-2 onwards and affects any user with view rights on commonly accessible documents including the icon picker macro. The vulnerability allows execution of arbitrary Groovy, Python, or Velocity code in XWiki due to improper neutralization of the macro parameters of the icon picker macro (GitHub Advisory).

Technical details

The vulnerability stems from improper parameter escaping in IconPickerMacro, specifically in the handling of macro parameters. The issue allows attackers to inject and execute arbitrary code through the 'id' and 'class' parameters of the icon picker macro. The vulnerability has been assigned a Critical severity with a CVSS v3.1 score of 10.0, indicating the highest level of severity. The attack vector is Network-based, with low attack complexity and requiring low privileges (GitHub Advisory).

Impact

The vulnerability allows attackers with view rights to execute arbitrary Groovy, Python, or Velocity code in XWiki, effectively enabling a privilege escalation from basic view rights to programming rights. This could potentially lead to unauthorized access to sensitive data, system manipulation, and compromise of the XWiki platform's integrity (GitHub Advisory, XWIKI Jira).

Mitigation and workarounds

The vulnerability has been patched in XWiki versions 13.10.7, 14.4.2, and 14.5. For users unable to update immediately, two workarounds are available: manually applying the patch by editing IconThemesCode.IconPickerMacro in the object editor, or replacing the whole document by importing it from the XAR archive of a fixed version (GitHub 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-65091CRITICAL10
  • JavaJava
  • org.xwiki.contrib:macro-fullcalendar-pom
NoYesJan 10, 2026
CVE-2025-70974CRITICAL10
  • JavaJava
  • com.alibaba:fastjson
NoYesJan 09, 2026
CVE-2026-22244HIGH8.5
  • JavaJava
  • org.open-metadata:platform
NoYesJan 08, 2026
CVE-2025-65090MEDIUM5.3
  • JavaJava
  • org.xwiki.contrib:macro-fullcalendar-pom
NoYesJan 10, 2026
CVE-2026-0707MEDIUM5.3
  • JavaJava
  • org.keycloak:keycloak-parent
NoNoJan 08, 2026

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