CVE-2023-36470

Description

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](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. 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.

Severity
CRITICAL
CVSS v3
10.0
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H · source cna
Exploit chance (EPSS)
1.916%
chance of exploitation in the next 30 days
higher than 80.2% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 2
Metasploit modules: 0
Nuclei templates: 0

Weakness

CISA SSVC decision points

Exploitationpoc
Automatableno
Technical impacttotal
Scored2024-11-26

Timeline

  1. 2023-06-29Published by the CNA20:31 UTC
  2. 2023-06-30GitHub advisory published (GHSA-fm68-j7ww-h9xf)1 day after publication
  3. 2024-11-26CISA SSVC decision recorded516 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-fm68-j7ww-h9xf, affected packages:

PackageVulnerable versionsFixed in
Maven org.xwiki.platform:xwiki-platform-icon-defaultfrom 15.0-rc-1 before 15.2-rc-115.2-rc-1
Maven org.xwiki.platform:xwiki-platform-icon-defaultfrom 6.2-milestone-1 before 14.10.614.10.6
Maven org.xwiki.platform:xwiki-platform-icon-scriptfrom 15.0-rc-1 before 15.2-rc-115.2-rc-1
Maven org.xwiki.platform:xwiki-platform-icon-scriptfrom 6.2-milestone-1 before 14.10.614.10.6
Maven org.xwiki.platform:xwiki-platform-icon-uifrom 15.0-rc-1 before 15.2-rc-115.2-rc-1

1 more affected packages in the advisory.

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
xwiki xwikifrom 6.2 before 14.10.6fixed in 14.10.615.0no fix listed15.1no fix listed14.10.6not listednot listed

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources