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).

Exploitability

The vulnerability is exploitable by any user with view rights on commonly accessible documents that include the icon picker macro. The exploitation can be achieved through manipulated macro parameters, specifically targeting the 'id' and 'class' parameters of the icon picker macro. The vulnerability has been present since XWiki version 6.4-milestone-2, making it a long-standing security issue (GitHub Advisory).

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-2026-10050HIGH8.7
  • Java logoJava
  • jetty9
NoYesAug 04, 2026
CVE-2026-56818MEDIUM6.5
  • Java logoJava
  • netty-tcnative
NoYesAug 07, 2026
CVE-2026-48047MEDIUM5.9
  • Java logoJava
  • org.xwiki.platform:xwiki-platform-webjars-api
NoYesAug 07, 2026
CVE-2026-53573MEDIUM4.8
  • Java logoJava
  • org.geonetwork-opensource:geonetwork
NoYesJul 31, 2026
CVE-2026-71497MEDIUM4.7
  • Java logoJava
  • javapackages-tools:201801::maven-wagon-ftp
NoYesAug 06, 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