Patchfirst
CVE-2022-36099 Critical · 9.9 EPSS 76.3%

XWiki Platform Wiki UI Main Wiki Eval Injection vulnerability

xwiki · xwiki-platform

Summary

The XWiki Platform's Wiki UI Main Wiki component (xwiki-platform, from version 5.3-milestone-2 up to but not including 13.10.6 and 14.4) fails to neutralise wiki syntax injected through a request parameter processed by the XWikiServerClassSheet, allowing arbitrary Groovy, Python or Velocity script macros to be introduced. An attacker with view access to that sheet and a page saved with programming rights can exploit this, given a standard read-only public or private XWiki account setup, to execute arbitrary code that bypasses rights checks and can read, modify or disrupt all wiki content.

Official description · CVE.org

XWiki Platform Wiki UI Main Wiki is software for managing subwikis on XWiki Platform, a generic wiki platform. Starting with version 5.3-milestone-2 and prior to versions 13.10.6 and 14.4, it's possible to inject arbitrary wiki syntax including Groovy, Python and Velocity script macros via the request (URL parameter) using the `XWikiServerClassSheet` if the user has view access to this sheet and another page that has been saved with programming rights, a standard condition on a public read-only XWiki installation or a private XWiki installation where the user has an account. This allows arbitrary Groovy/Python/Velocity code execution which allows bypassing all rights checks and thus both modification and disclosure of all content stored in the XWiki installation. Also, this could be used to impact the availability of the wiki. This has been patched in versions 13.10.6 and 14.4. As a workaround, edit the affected document `XWiki.XWikiServerClassSheet` or `WikiManager.XWikiServerClassSheet` and manually perform the changes from the patch fixing the issue. On XWiki versions 12.0 and later, it is also possible to import the document `XWiki.XWikiServerClassSheet` from the xwiki-platform-wiki-ui-mainwiki package version 14.4 using the import feature of the administration application as there have been no other changes to this document since XWiki 12.0.

Breakdown
26.8 / 100
Exploited
Not confirmed
Reports
0
Tactics
0/15

Disclosed on 8 Sep 2022. No public exploit code or confirmed exploitation is recorded.

4 fixes in xwiki-platform-wiki-ui-mainwiki over 11 months. The latest fix listed for xwiki-platform-wiki-ui-mainwiki is 14.10.

Fixes in xwiki-platform-wiki-ui-mainwikiMaven package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 13.10.3CVE-2022-2925225 May 2022
  2. 14.4CVE-2022-360998 Sep 2022
  3. 14.7-rc-1CVE-2023-264762 Mar 2023
  4. 14.10CVE-2023-2921116 Apr 2023Latest listed

techniques

No techniques linked

No ATT&CK techniques are linked to this CVE yet. MITRE CTID has not mapped it, and no report passage in the corpus ties it to a technique.

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: org.xwiki.platform:xwiki-platform-wiki-ui-mainwiki.

Mavenorg.xwiki.platform:xwiki-platform-wiki-ui-mainwikiGHSA-xr6m-2p4m-jvqf

Upgrade to 14.4 or later

Set the version to 14.4 or later in your pom.xml or build.gradle.

The first fix for CVE-2022-36099. No other CVE tracked by Patchfirst affects this package.

Affected versions, by release line

If you runUpgrade to
14.0 up to 14.414.4
5.3-milestone-2 up to 13.10.613.10.6

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

References

3 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close