Skip to main content

CVE-2023-36470 — Vulnerability in xwiki-platform-icon-script

CRITICAL

XWiki Platform vulnerable to Code Injection in icon themes

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

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.

Check my pom.xml

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

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.

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, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (6)

Affects 1 ecosystem: Maven (3).

PackageFixed In
org.xwiki.platform:xwiki-platform-icon-script Maven · Affected: All versions14.10.6
org.xwiki.platform:xwiki-platform-icon-default Maven · Affected: All versions15.2-rc-1
org.xwiki.platform:xwiki-platform-icon-ui Maven · Affected: All versions14.10.6
org.xwiki.platform:xwiki-platform-icon-script Maven · Affected: All versions15.2-rc-1
org.xwiki.platform:xwiki-platform-icon-default Maven · Affected: All versions14.10.6
org.xwiki.platform:xwiki-platform-icon-ui Maven · Affected: 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. 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

CVSS Score
9.9

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
4.03%
EPSS percentile: 91.4

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

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-45137
    CRITICAL

    XWiki Platform vulnerable to XSS with edit right in the create document form for existing pages

  • CVE-2023-29514
    CRITICAL

    XWiki vulnerable to Code Injection in template provider administration

  • CVE-2023-45134
    CRITICAL

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

  • 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

  • CVE-2025-66472
    MEDIUM

    XWiki vulnerable to a reflected XSS via xredirect parameter in DeleteApplication

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my pom.xml