CVE-2023-36470: Code injection in icon themes of XWiki Platform

Published Jun 29, 2023
·
Updated

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

Other sources

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. 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. This issue 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. Users are advised to upgrade. There are no known workarounds for this vulnerability.

MITRE

Affected Software

11 affected componentsFixes available
maven/org.xwiki.platform:xwiki-platform-icon-ui>=15.0-rc-1<15.2-rc-1
15.2-rc-1
maven/org.xwiki.platform:xwiki-platform-icon-ui>=6.2-milestone-1<14.10.6
14.10.6
maven/org.xwiki.platform:xwiki-platform-icon-default>=15.0-rc-1<15.2-rc-1
15.2-rc-1
maven/org.xwiki.platform:xwiki-platform-icon-script>=15.0-rc-1<15.2-rc-1
15.2-rc-1
maven/org.xwiki.platform:xwiki-platform-icon-script>=6.2-milestone-1<14.10.6
14.10.6
maven/org.xwiki.platform:xwiki-platform-icon-default>=6.2-milestone-1<14.10.6
14.10.6
XWiki xwiki>=6.2<14.10.6
XWiki xwiki=15.0
XWiki xwiki=15.0-rc1
XWiki xwiki=15.1
XWiki xwiki=15.1-rc1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/org.xwiki.platform:xwiki-platform-icon-ui to a version that resolves this vulnerability.

    Fixed in 15.2-rc-1
  2. Upgrade

    Upgrade maven/org.xwiki.platform:xwiki-platform-icon-ui to a version that resolves this vulnerability.

    Fixed in 14.10.6
  3. Upgrade

    Upgrade maven/org.xwiki.platform:xwiki-platform-icon-default to a version that resolves this vulnerability.

    Fixed in 15.2-rc-1
  4. Upgrade

    Upgrade maven/org.xwiki.platform:xwiki-platform-icon-script to a version that resolves this vulnerability.

    Fixed in 15.2-rc-1
  5. Upgrade

    Upgrade maven/org.xwiki.platform:xwiki-platform-icon-script to a version that resolves this vulnerability.

    Fixed in 14.10.6
  6. Upgrade

    Upgrade maven/org.xwiki.platform:xwiki-platform-icon-default to a version that resolves this vulnerability.

    Fixed in 14.10.6
  7. Upgrade

    Upgrade XWiki Platform to a version that resolves this vulnerability.

    Fixed in 14.10.6
  8. Upgrade

    Upgrade XWiki Platform to a version that resolves this vulnerability.

    Fixed in 15.1

Event History

Jun 29, 2023
CVE Published
via MITRE·08:31 PM
Data Sourced
via MITRE·08:31 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jun 30, 2023
Advisory Published
08:41 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-36470?

The severity of CVE-2023-36470 is critical with a CVSS score of 8.8.

2

How does CVE-2023-36470 affect XWiki Platform?

CVE-2023-36470 affects XWiki Platform versions 6.2 through 14.10.6, as well as versions 15.0, 15.0-rc1, 15.1, and 15.1-rc1.

3

What is the CWE classification of CVE-2023-36470?

The CWE classification of CVE-2023-36470 is CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component).

4

How can an attacker exploit CVE-2023-36470?

An attacker can exploit CVE-2023-36470 by injecting XWiki syntax and Velocity code into a document with an icon set, allowing remote code execution.

5

Are there any available fixes for CVE-2023-36470?

Yes, fixes for CVE-2023-36470 are available in the following GitHub commits: [commit 1](https://github.com/xwiki/xwiki-platform/commit/46b542854978e9caa687a5c2b8817b8b17877d94), [commit 2](https://github.com/xwiki/xwiki-platform/commit/79418dd92ca11941b46987ef881bf50424898ff4), [commit 3](https://github.com/xwiki/xwiki-platform/commit/b0cdfd893912baaa053d106a92e39fa1858843c7).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203