Arbitrary Code Execution Affecting org.xwiki.platform:xwiki-platform-localization-source-wiki package, versions [,14.10.2)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.91% (83rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGXWIKIPLATFORM-5431310
  • published20 Apr 2023
  • disclosed19 Apr 2023
  • creditUnknown

Introduced: 19 Apr 2023

CVE-2023-29510  (opens in a new tab)
CWE-74  (opens in a new tab)

How to fix?

Upgrade org.xwiki.platform:xwiki-platform-localization-source-wiki to version 14.10.2 or higher.

Overview

org.xwiki.platform:xwiki-platform-localization-source-wiki is a generic wiki platform offering runtime services for applications

Affected versions of this package are vulnerable to Arbitrary Code Execution via code injected into any document, including a user's own profile. Translations are not escaped and can be included in privileged contexts without escaping.

PoC

Insert a line like the following into a user profile

error={{/html}} {{async async="true" cached="false" context="doc.reference"}}{{groovy}}println("hello from groovy!"){{/groovy}}{{/async}}

Then use the object editor to add an object of type XWiki.TranslationDocumentClass with scope USER.

CVSS Scores

version 3.1