Loading...
Skip to main content

CVE-2023-36470 — Vulnerability in...

CRITICAL

XWiki Platform vulnerable to Code Injection in icon themes

Published June 30, 2023Updated November 8, 2023Source: osv

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](https://extensions.xwiki.org/xwiki/bin/view/Extension/Icon%20Theme%20Application#HIconPicker) 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 (1200 days ago).
  • Last revised November 8, 2023 — 130 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.xwiki.platform:xwiki-platform-icon-script to 14.10.6 or later
<!-- Update pom.xml dependency version to 14.10.6 for org.xwiki.platform:xwiki-platform-icon-script -->
Maven
Update org.xwiki.platform:xwiki-platform-icon-default to 15.2-rc-1 or later
<!-- Update pom.xml dependency version to 15.2-rc-1 for org.xwiki.platform:xwiki-platform-icon-default -->
Maven
Update org.xwiki.platform:xwiki-platform-icon-ui to 14.10.6 or later
<!-- Update pom.xml dependency version to 14.10.6 for org.xwiki.platform:xwiki-platform-icon-ui -->
Maven
Update org.xwiki.platform:xwiki-platform-icon-script to 15.2-rc-1 or later
<!-- Update pom.xml dependency version to 15.2-rc-1 for org.xwiki.platform:xwiki-platform-icon-script -->
Maven
Update org.xwiki.platform:xwiki-platform-icon-default to 14.10.6 or later
<!-- Update pom.xml dependency version to 14.10.6 for org.xwiki.platform:xwiki-platform-icon-default -->
Maven
Update org.xwiki.platform:xwiki-platform-icon-ui to 15.2-rc-1 or later
<!-- Update pom.xml dependency version to 15.2-rc-1 for org.xwiki.platform:xwiki-platform-icon-ui -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (6)

Affects 1 ecosystem: maven (3).

PackageEcosystemAffectedFixed In
org.xwiki.platform:xwiki-platform-icon-script
maven
All versions14.10.6
org.xwiki.platform:xwiki-platform-icon-default
maven
All versions15.2-rc-1
org.xwiki.platform:xwiki-platform-icon-ui
maven
All versions14.10.6
org.xwiki.platform:xwiki-platform-icon-script
maven
All versions15.2-rc-1
org.xwiki.platform:xwiki-platform-icon-default
maven
All versions14.10.6
org.xwiki.platform:xwiki-platform-icon-ui
maven
All versions15.2-rc-1

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.9 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

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. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-36470 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.9

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-fm68-j7ww-h9xf

Related CVEs

  • CVE-2022-41931
    CRITICAL

    Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in xwiki-platform-icon-ui

  • CVE-2023-29514
    CRITICAL

    XWiki vulnerable to Code Injection in template provider administration

  • CVE-2023-34464
    CRITICAL

    XWiki vulnerable to stored cross-site scripting via any wiki document and the displaycontent/rendercontent template

  • CVE-2023-45134
    CRITICAL

    XWiki Platform XSS vulnerability from account in the create page form via template provider

  • CVE-2025-55747
    CRITICAL

    XWiki configuration files can be accessed through the webjars API

  • CVE-2023-26472
    CRITICAL

    XWiki Platform vulnerable to privilege escalation via async macro and IconThemeSheet from the user profile

  • CVE-2023-29207
    HIGH

    Improper Neutralization of Script-Related HTML Tags (XSS) in the LiveTable Macro

  • CVE-2025-49582
    HIGH

    XWiki's required right warnings for macros are incomplete

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies