CVE-2022-36099: XWiki Platform Wiki UI Main Wiki Eval Injection vulnerability

Summary

16/09/2022
Yes i
Critical
9.9

CVE-2022-36099: XWiki Platform Wiki UI Main Wiki Eval Injection vulnerability. Affects org.xwiki.platform:xwiki-platform-wiki-ui-mainwiki across 2 version ranges.

>= 5.3-milestone-2, < 13.10.6 >= 14.0, < 14.4

Fixed in 13.10.6 or 14.4, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The XWiki Platform Wiki UI Main Wiki is an open-source software package that provides a user interface for managing and editing wikis. It allows users to create, modify, and view wiki pages, as well as perform various administrative tasks. The package is widely used in both public read-only XWiki installations and private installations where users have accounts. However, a vulnerability has been discovered in the package that allows for arbitrary code execution and potential disclosure of sensitive information.

Vulnerability Detail

The vulnerability in the XWiki Platform Wiki UI Main Wiki allows an attacker to inject arbitrary wiki syntax, including Groovy, Python, and Velocity script macros, via a specially crafted request. This can be done by manipulating the URL parameters and exploiting the XWikiServerClassSheet component. If the user has view access to this sheet and another page with programming rights, the attacker can execute arbitrary code, bypassing all rights checks. This can lead to the modification and disclosure of all content stored in the XWiki installation, as well as potential impact on the availability of the wiki. The vulnerability has a CVSS score of 9.9, indicating its critical severity.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 5.3-milestone-2, < 13.10.6 13.10.6
  • >= 14.0, < 14.4 14.4

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

For versions below 7.1 milestone 1, where the required escaping function is not available, a different fix would need to be developed. However, for XWiki versions 12.0 and later, users can import the document XWiki.XWikiServerClassSheet from the xwiki-platform-wiki-ui-mainwiki package version 14.4 using the import feature of the administration application. This will ensure that the necessary changes are applied to mitigate the vulnerability.

Conclusion

The XWiki Platform Wiki UI Main Wiki is vulnerable to an eval injection vulnerability that allows for arbitrary code execution and potential disclosure of sensitive information. It is critical to update your XWiki installation to the patched versions 13.10.6 or 14.4 to mitigate this vulnerability. Alternatively, you can apply the necessary changes manually or import the updated document from the provided XAR file. If you have any further questions or need assistance with vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.xwiki.platform:xwiki-platform-wiki-ui-mainwiki →

Share this vulnerability

FAQ

The vulnerability allows an attacker to execute arbitrary code and bypass all rights checks in the XWiki installation. This can lead to the modification and disclosure of all content stored in the wiki, as well as potential impact on its availability.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your XWiki installation is affected by this vulnerability. Simply enter the URL of your installation and the playground will analyze it for any known vulnerabilities.

At the time of this advisory, there are no known public exploits for this vulnerability. However, it is important to patch your XWiki installation as soon as possible to prevent any potential attacks.

Yes, this vulnerability can be exploited remotely by sending a specially crafted request to the XWiki installation. However, the attacker would need to have view access to the XWikiServerClassSheet and another page with programming rights.

Yes, there is a workaround available for XWiki versions 12.0 and later. You can import the updated document XWiki.XWikiServerClassSheet from the xwiki-platform-wiki-ui-mainwiki package version 14.4 using the import feature of the administration application.

Related vulnerabilities

Recent vulnerabilities recorded for org.xwiki.platform:xwiki-platform-wiki-ui-mainwiki.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 5.3-milestone-2, < 13.10.6 13.10.6
  • >= 14.0, < 14.4 14.4

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback