Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in xwiki-platform-icon-ui
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-95.
Summary
xwiki-platform-icon-ui is vulnerable to Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection'). Any user with view rights on commonly accessible documents including the icon picker macro can execute arbitrary Groovy, Python or Velocity code in XWiki due to improper neutralization of the macro parameters of the icon picker macro. The problem has been patched in XWiki 13.10.7, 14.5 and 14.4.2. Workarounds: The [patch](https://github.com/xwiki/xwiki-platform/commit/47eb8a5fba550f477944eb6da8ca91b87eaf1d01) can be manually applied by editing `IconThemesCode.IconPickerMacro` in the object editor. The whole document can also be replaced by the current version by importing the document from the XAR archive of a fixed version as the only changes to the document have been security fixes and small formatting changes.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| XWiki | xwiki-platform | 6.4-milestone-2 to before 13.10.7; 14.0.0 to before 14.4.2 | 13.10.7, 14.4.2 | Patch available | CNA |
| — | org.xwiki.platform:xwiki-platform-icon-ui (Maven) | 6.4-milestone-2 to before 13.10.7 | 13.10.7 | Patch available | GHSA-5j7g-cf6r-g2h7 |
| — | org.xwiki.platform:xwiki-platform-icon-ui (Maven) | 14.0.0 to before 14.4.2 | 14.4.2 | Patch available | GHSA-5j7g-cf6r-g2h7 |
- xwiki-platform VendorXWiki Affected 6.4-milestone-2 to before 13.10.7; 14.0.0 to before 14.4.2 Fixed in 13.10.7, 14.4.2 Patch available CNA
- org.xwiki.platform:xwiki-platform-icon-ui (Maven) Vendor— Affected 6.4-milestone-2 to before 13.10.7 Fixed in 13.10.7 Patch available GHSA-5j7g-cf6r-g2h7
- org.xwiki.platform:xwiki-platform-icon-ui (Maven) Vendor— Affected 14.0.0 to before 14.4.2 Fixed in 14.4.2 Patch available GHSA-5j7g-cf6r-g2h7
CPE configurations NVD · 5
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:* | after 6.4, before 13.10.7; 14.0.0 to before 14.4.2 | Vulnerable | XWiki |
| cpe:2.3:a:xwiki:xwiki:6.4:milestone2:*:*:*:*:*:* | 6.4 milestone2 | Vulnerable | XWiki |
| cpe:2.3:a:xwiki:xwiki:6.4:milestone3:*:*:*:*:*:* | 6.4 milestone3 | Vulnerable | XWiki |
| cpe:2.3:a:xwiki:xwiki:14.4.3:*:*:*:*:*:*:* | 14.4.3 | Vulnerable | XWiki |
| cpe:2.3:a:xwiki:xwiki:14.4.4:*:*:*:*:*:*:* | 14.4.4 | Vulnerable | XWiki |
- cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:* Versions after 6.4, before 13.10.7; 14.0.0 to before 14.4.2 Vulnerable ·XWiki
- cpe:2.3:a:xwiki:xwiki:6.4:milestone2:*:*:*:*:*:* Versions 6.4 milestone2 Vulnerable ·XWiki
- cpe:2.3:a:xwiki:xwiki:6.4:milestone3:*:*:*:*:*:* Versions 6.4 milestone3 Vulnerable ·XWiki
- cpe:2.3:a:xwiki:xwiki:14.4.3:*:*:*:*:*:*:* Versions 14.4.3 Vulnerable ·XWiki
- cpe:2.3:a:xwiki:xwiki:14.4.4:*:*:*:*:*:*:* Versions 14.4.4 Vulnerable ·XWiki
Remediation
- Fix · CNA xwiki-platform (xwiki) Fixed in 13.10.7, 14.4.2
- Fix · GHSA-5j7g-cf6r-g2h7 org.xwiki.platform:xwiki-platform-icon-ui (Maven) Fixed in 13.10.7 Advisory →
- Fix · GHSA-5j7g-cf6r-g2h7 org.xwiki.platform:xwiki-platform-icon-ui (Maven) Fixed in 14.4.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-41931
- 2026-10-03 Alias added: GHSA-5j7g-cf6r-g2h7
References
Exploit 2
More Xwiki vulnerabilities
- TI-2025-18595 Remote code execution as guest via SolrSearchMacros request in xwiki KEVCVSS 3.1CRITICAL 9.8
- TI-2023-25214 Remote code execution through the section parameter in Administration as guest in XWiki Platform CVSS 3.1CRITICAL 10.0
- TI-2025-23500 XWiki Platform vulnerable to SQL injection through getdeleteddocuments.vm template sort parameter CVSS 4.0CRITICAL 9.3
- TI-2025-23979 org.xwiki.platform:xwiki-platform-rest-server allows SQL injection in query endpoint of REST API CVSS 4.0CRITICAL 9.3
- TI-2024-20829 XWiki Platform: Remote code execution from account via SearchSuggestSourceSheet CVSS 3.1CRITICAL 10.0
- TI-2024-14375 XWiki Remote Code Execution vulnerability via user registration CVSS 3.1CRITICAL 10.0
Sources
- CVE-2022-41931 · CVE Program
- CVE-2022-41931 · NVD
- FIRST EPSS
- GHSA-5j7g-cf6r-g2h7 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences