CVE-2023-36470 — Vulnerability in xwiki-platform-icon-script
XWiki Platform vulnerable to Code Injection in icon themes
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (4.03%). Schedule for your next planned update.
Does your project use an affected org.xwiki.platform:xwiki-platform-icon-script version?
Paste your pom.xml to check it for CVE-2023-36470 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
By either creating a new or editing an existing document with an icon set, an attacker can inject XWiki syntax and Velocity code that is executed with programming rights and thus allows remote code execution. There are different attack vectors, the simplest is the Velocity code in the icon set's HTML or XWiki syntax definition. The icon picker can be used to trigger the rendering of any icon set. The XWiki syntax variant of the icon set is also used without any escaping in some documents, allowing to inject XWiki syntax including script macros into a document that might have programming right, for this the currently used icon theme needs to be edited. Further, the HTML output of the icon set is output as JSON in the icon picker and this JSON is interpreted as XWiki syntax, allowing again the injection of script macros into a document with programming right and thus allowing remote code execution. This impacts the confidentiality, integrity and availability of the whole XWiki instance.
Patches
This has been patched in XWiki 14.10.6 and 15.1. Icon themes now require script right and the code in the icon theme is executed within the context of the icon theme, preventing any rights escalation. A macro for displaying icons has been introduced to avoid injecting the raw wiki syntax of an icon set into another document.
Workarounds
There are no workarounds apart from upgrading to a version containing the fix.
References
- https://jira.xwiki.org/browse/XWIKI-20524
- https://github.com/xwiki/xwiki-platform/commit/b0cdfd893912baaa053d106a92e39fa1858843c7
- https://github.com/xwiki/xwiki-platform/commit/46b542854978e9caa687a5c2b8817b8b17877d94
- https://github.com/xwiki/xwiki-platform/commit/79418dd92ca11941b46987ef881bf50424898ff4
Advisory Timeline
- First published June 30, 2023 (1245 days ago).
- Last revised November 8, 2023 — 130 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 14.10.6 for org.xwiki.platform:xwiki-platform-icon-script -->
<!-- Update pom.xml dependency version to 15.2-rc-1 for org.xwiki.platform:xwiki-platform-icon-default -->
<!-- Update pom.xml dependency version to 14.10.6 for org.xwiki.platform:xwiki-platform-icon-ui -->
<!-- Update pom.xml dependency version to 15.2-rc-1 for org.xwiki.platform:xwiki-platform-icon-script -->
<!-- Update pom.xml dependency version to 14.10.6 for org.xwiki.platform:xwiki-platform-icon-default -->
<!-- Update pom.xml dependency version to 15.2-rc-1 for org.xwiki.platform:xwiki-platform-icon-ui -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (6)
Affects 1 ecosystem: Maven (3).
| Package | Fixed In |
|---|---|
| org.xwiki.platform:xwiki-platform-icon-script Maven · Affected: All versions | 14.10.6 |
| org.xwiki.platform:xwiki-platform-icon-default Maven · Affected: All versions | 15.2-rc-1 |
| org.xwiki.platform:xwiki-platform-icon-ui Maven · Affected: All versions | 14.10.6 |
| org.xwiki.platform:xwiki-platform-icon-script Maven · Affected: All versions | 15.2-rc-1 |
| org.xwiki.platform:xwiki-platform-icon-default Maven · Affected: All versions | 14.10.6 |
| org.xwiki.platform:xwiki-platform-icon-ui Maven · Affected: All versions | 15.2-rc-1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-74
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.9 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-fm68-j7ww-h9xfWEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-36470ADVISORY
- https://github.com/xwiki/xwiki-platform/commit/46b542854978e9caa687a5c2b8817b8b17877d94WEB
- https://github.com/xwiki/xwiki-platform/commit/79418dd92ca11941b46987ef881bf50424898ff4WEB
- https://github.com/xwiki/xwiki-platform/commit/b0cdfd893912baaa053d106a92e39fa1858843c7WEB
- https://github.com/xwiki/xwiki-platformPACKAGE
- https://jira.xwiki.org/browse/XWIKI-20524WEB
Frequently Asked Questions
- What is CVE-2023-36470?
- XWiki Platform vulnerable to Code Injection in icon themes. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.9/10).
- How do I check if my project is affected by CVE-2023-36470?
- CVE-2023-36470 affects org.xwiki.platform:xwiki-platform-icon-script, org.xwiki.platform:xwiki-platform-icon-default and org.xwiki.platform:xwiki-platform-icon-ui. It has a 4.0% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-36470 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top 10% of EPSS-scored vulnerabilities — 91.4% of tracked vulnerabilities score at or below it, so it is substantially more likely to be exploited than most tracked vulnerabilities.
Also Known As
Related CVEs
- CVE-2022-41931CRITICAL
Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in xwiki-platform-icon-ui
- CVE-2023-45137CRITICAL
XWiki Platform vulnerable to XSS with edit right in the create document form for existing pages
- CVE-2023-29514CRITICAL
XWiki vulnerable to Code Injection in template provider administration
- CVE-2023-45134CRITICAL
XWiki Platform XSS vulnerability from account in the create page form via template provider
- CVE-2023-26472CRITICAL
XWiki Platform vulnerable to privilege escalation via async macro and IconThemeSheet from the user profile
- CVE-2023-29207HIGH
Improper Neutralization of Script-Related HTML Tags (XSS) in the LiveTable Macro
- CVE-2025-49582HIGH
XWiki's required right warnings for macros are incomplete
- CVE-2025-66472MEDIUM
XWiki vulnerable to a reflected XSS via xredirect parameter in DeleteApplication